第1段:配置ISDN类型并查看其状态 R1#conft Enter configuration commands, one per line. End with CNTL/Z. R1(config)#isdn switch-type ? basic-1 tr6 1TR6 switch type for Germany basic-5ess LUCent 5ESS switch type for the U.S. basic-dms1OO Northern Telecom DMS-100 switch type for the U.S. basic-net3 NET3 switch type for UK,Europe,Asia and Australia basic-ni National ISDN switch type for the U.S. basic-qsig QSIG switch type basic-ts013 TS013 switch type for Australia (obsolete) ntt NTT switch type for Japan vn3 VN3 and VN4 switch types for France R1(config)#isdn switch-type basic-net3 R1(config)#int bri 0 R1(config-if)@iio shut R1(config-if)#^Z R1#sh isdn status Global ISDN Switchtype=basic-net3 ISDN BRIO interface dsL 0,interface ISDN Switchtype=basic-net3 Layer 1 Status: ACTIVE Layer 3,Status: TEI=70,Ces=1,SAPI=0,State=MULTIPLE_FRAME_ESTABLISHED Layer 3 Status: 0 Active Layer 3 Call(s) Active dsl 0 CCBs = 0 The Free Channel Mask: 0x80000003 Number of L2 Discards = 0, L2 session ID = 5 Total Allocated ISDN CCBs = 0 R1# [Resuming connection 1 R2] R2#conft Enter configuration commands, one per line. End with CNTL/Z. R2(config)#isdn switch-type basic-net3 R2(config)#int bri 0 R2(config-if)#no sh R2(config-if)#^Z R2# R2#sh isdn status Global ISDN Switchtype = basic-net3 ISDN BRIO interface dsl 0, interface ISDN Switchtype = basic-net3 Layer 1 Status: ACTIVE Layer 2 Status: TEI=66,Ces=1,SAPI=0,State=MULTIPLE_FRAME_ESTABLISHED Layer 3 Status: 0 Active Layer 3 Call(s) Active dsl 0 CCBs = 0 The Free Channel Mask: 0x80000003 Total Allocated ISDN CCBs = 0 R2#conft 第2段:配置R1路由器 R1#conft Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int bri 0 R1(config-if)#ip addr 192.168.1.1255.255.255.0 R1(config~if)#encapsulation ppp R1(config-if)#dialer string 80000002 R1(config-if)#dialer-group 1 R1(config-if)#exit R1(config)#diaaer-list 1 PRotocol ip permit R1(config)#^Z R1# 第3段:配置R2路由器 R2#conft Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int bri 0 R2(config-if)#ip addr 192.168.1.2 255.255.255.0 R2(config-if)#encap ppp R2(config-if)#dialer string 80000001 R2(config-if)#dialer-group 1 R2(config-if)#exit R2(config)#dialer-list 1 prot ip permit R2(config)#^Z R2# 第4段:测试配置结果 R1#sh int bri 0 BRIO is up,line protocol is up(spoofing) Hardware is BRI Internet address is 192.168.1.1/24 MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, reliability 255/255, txioad 1/255, rxioad 1/255 Encapsulation PPP, loopback not set Last input 00:00:05, output 00:00:05, output hang never Last clearing of "show interface" counters 02:25:35 Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueisig strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/16 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input,0 bytes,0 no buffer Received 0 broadcasts,0 runts,0 giants,0 throttles 0 input errors,0 CRC,0 frame,0 overrun,0 ignored,0 abort 0 packets output,0 bytes,0 underruns 0 output errors,0 collisions,0 interface resets 0 output buffer failures,0 output buffers swapped out 0 carrier transitions R1#sh int bri 0:1 BRIO:1 is down, Stise protocol is dowN Hardware is BRI MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, reliability 255/255, txioad 1/255, rxioad 1/255 Encapsulation PPP, loopbacfe not set Keepalive set (10 see) LCP Closed Closed:IPCP Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue :0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 3 interface resets 0 output buffer failures, 0 output buffers swapped out 0 carrier transitions R1#conft Enter configuration commands, one per line. End with CNTL/Z. R1(config)#logg con R1(config)#^Z R1# R1#debug dialer Dial on demand events debugging is on R1#ping 192.168.1.2
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
02:27:36:BRO DDR:Dialing cause ip(s=192.168.1..1,d=192.168.1.2) 02:27:36:BRO DDR:Attemptiong to dial 80000002. 02:27:38:%LINK-3-UPDOWN:Interface BRIO:1,changed state to up 02:27:38:%ISDN-6CONNECT:Interface BRIO:1 is now connected to 80000002 !!! Success rate is 60 percent (3/5), round-trip min/avg/max = 36/37/40 ms 02:27:40:BRO:1 DDR:dialer protocol up 02:27:41: