您現(xiàn)在的位置: test4exam >> 計(jì)算機(jī)考試 >> CISCO認(rèn)證 >> 正文
環(huán)境:兩臺(tái)路由器,由BRI口相連。
要求:通過ISDN線路實(shí)現(xiàn)兩個(gè)網(wǎng)段的互通,使用PPP CHAP驗(yàn)證,定義所有的IP流為感興趣流。
步驟1、初始化配置
r1的配置:
r1(config)#no ip domain-lookup
r1(config)#line console 0
r1(config-line)#logging synchronous
r1(config-line)#exec-timeout 0 0
r1(config-line)#
r2的配置:
r2(config)#no ip domain-lookup
r2(config)#line console 0
r2(config-line)#logging synchronous
r 2(config-line)#exec-timeout 0
r2(config-line)#
步驟二、ISDN的配置
r1的配置:
r1(config)#isdn switch-type basic-net3 à交換機(jī)類型
r1(config)#username r2 password cisco à驗(yàn)證用戶名及密碼
r1(config)#dialer-list 1 protocol ip permit à定義興趣流
r2的配置:
r2(config)#isdn switch-type basic-net3
r2(config)#username r1 password cisco
r2(config)#dialer-list 1 protocol ip permit
步驟三、配置驗(yàn)證
r1的配置:
r1(config)#interface loopback 0
r1(config-if)#ip address
r1(config-if)#interface bri0
r1(config-if)#encapsulation ppp à封裝PPP
r1(config-if)#ppp authentication chap à啟用CHAP驗(yàn)證
r1(config-if)#ip address 30.1.1.1 255.255.255.0
r1(config-if)#dialer-group 1 à加載感興趣流
r1(config-if)#dialer map ip 30.1.1.2 name r2 1102 à撥號(hào)映射
r1(config-if)#dialer idle-time 180 à定義超時(shí)
r1(config-if)#no fair-queue à關(guān)閉公平對(duì)列
r1(config-if)#no shutdown
r2的配置:
r2(config)#interface loopback 0
r2(config-if)#ip address
r2(config-if)#interface bri0
r2(config-if)#encapsulation ppp
r2(config-if)#ppp authentication chap
r2(config-if)#ip address 30.1.1.2 255.255.255.0
r2(config-if)#dialer-group 1
r2(config-if)#dialer map ip 30.1.1.1 name r1 1101
r2(config-if)#dialer idle-time 180
r2(config-if)#no fair-queue
r2(config-if)#no shutdown
步驟四、定義靜態(tài)路由
r1(config)#ip route
r2(config)#ip route
步驟五、測(cè)試
r1#ping à觸發(fā)感興趣流
Protocol [ip]:
Target IP address:
Extended commands [n]: y
Source address or interface:
.!!!!
步驟六、查看相應(yīng)狀態(tài)
r1#show isdn status à查看ISDN狀態(tài)
Global ISDN Switchtype = basic-net3
ISDN BRI0 interface
dsl 0, interface ISDN Switchtype = basic-net3
Layer 1 Status:
ACTIVE
Layer 2 Status:
TEI = 71, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
Layer 3 Status:
1 Active Layer 3 Call(s)
CCB:callid=8003, sapi=0, ces=1, B-chan=2, calltype=DATA
Active dsl 0 CCBs = 1
The Free Channel Mask: 0x80000001
Total Allocated ISDN CCBs = 1
Total Allocated ISDN CCBs = 1
r1#show isdn active à此命令可以顯示當(dāng)前活躍的連接
--------------------------------------------------------------------------------
ISDN ACTIVE CALLS
--------------------------------------------------------------------------------
Call Calling Called Remote Seconds Seconds Seconds Charges
Type Number Number Name Used Left Idle Units/Currency
--------------------------------------------------------------------------------
Out ---N/A--- 1101 r1 11 170 9 0
--------------------------------------------------------------------------------
r1#show interface bri0:1 à查看接口狀態(tài)
BRI0:1 is down, line protocol is down
r1#show interface bri0:2 à占用了一個(gè)B信道
BRI0:2 is up, line protocol is up
步驟七、顯示當(dāng)前配置
r1的當(dāng)前配置:
r1#show running-config
hostname r1
!
username r2 password 0 cisco
no ip domain-lookup
isdn switch-type basic-net3
!
interface Loopback0
ip address
!
interface BRI0
ip address 30.1.1.1 255.255.255.0
encapsulation ppp
dialer idle-timeout 180
dialer map ip 30.1.1.2 name r2 2202
dialer-group 1
isdn switch-type basic-net3
no fair-queue
ppp authentication chap
!
ip route
!
dialer-list 1 protocol ip permit
!
end
r2的當(dāng)前配置:
r2#show running-config
!
hostname r2
!
!
username r1 password 0 cisco
no ip domain-lookup
!
isdn switch-type basic-net3
!
interface Loopback0
ip address
!
interface BRI0
ip address 30.1.1.2 255.255.255.0
encapsulation ppp
dialer idle-timeout 180
dialer map ip 30.1.1.1 name r1 2201
dialer-group 1
isdn switch-type basic-net3
no fair-queue
ppp authentication chap
!
ip route
!
dialer-list 1 protocol ip permit
!
end
Copyright ©2013-2015 江浙滬招生考試網(wǎng) All Rights Reserved.
地址: 蘇州市姑蘇區(qū)閶胥路483號(hào)(工投創(chuàng)業(yè)園) 電話:0512-85551931 郵編: 214000
郵箱: [email protected] 版權(quán)所有:蘇州邁峰教育科技有限公司 蘇ICP備15050684號(hào)-2