配置清单7-3配置及监测ISDN备份接口 第1段:R1的配置 R1#conft Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int s0 R1(config-if)#ip add 200.1.1.1.255.255.255.0 R1(config-if)#clock rate 2000000 R1(config-if)#no sh R1(config-if)#backiip interface bri 0 R1(config-if)#backup delay 5 20 R1(config)#int bri 0 R1(config-if)#no ppp multilink R1(config-if)#^Z R1# R1(config)#roister rip R1(config-router)#versioii 2 R1 (config-router)#no auto-summary R1(config-router)#netw 200.1.1.0 R1(config-router#netw 192.168.1.0 R1(config-router)#netw 10.0.0.0 R1(config-router)#exit R1(config)#iio ip route 10.1.2.0 R1# 第2段:R2的配置 R2#conft Enter configuration commands, one per line. End with CNTL/Z. R2(config)#int s0 R2(config-if)#ip addr 200.1.1.2 255.255.255.0 R2(config-if)#no sh R2(config-if)#int bri 0 R2(config-if)#no dialer map ip 192.168.1.1 name R1 R2(config-if)#dialer map ip 192.168.1.1 name R1 broadcast R1(config-if)#no ppp multilink R2(config-if)#exit R2(config)# R2(config)#roiater rip R2(config-router)#netw 200.1.1.0 R2(config-router)#netw R2(config-router)#2ietw 10.0.0.0 R2(config-router)#versloii 2 R2(config-router)#no auto-summary R2(config-router)#exit R2(config)#no ip route 10.1.1.0 200.255.255.0 192.168.1.1 第3段:查看正常连接时路由表及接口信息 R1#sh ip route rip 10.0.0.0/24 is subnetted, 2 subnets R 10.1.2.0[120/1]via 200.1.1.2,00:00:18,Serial0 R 192.168.1.0/24[120/1]via 200.1.1.2,00:00:18,Serial0
R1#sh ip int brief Interface IP-Address OK? Method Status PRotocol BRIO 192.168.1.1 YESNVRAM standby mode down BRIO: 1 unassigned YES unset administratively down BRIO:2 unassigned YES unset administratively down Loopback0 10.1.1.1 YESNVRAM up up Serial0 200. 1.1.1 YES manual up up Serial 1 unassigned YES NVRAM down down
R1#sh int s0 Serial0 is up,line protocol is up Hardware is HD64570 Internet address is 200.1.1.1/24 Backup interface BRIO,failure delay 5 sec,secondary disable delay 20 sec, kickin load not set, kickout load not set MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txioad 1/255, rxioad 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) Last input 00:00:07, output 00:00:00, 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 200 packets input, 7698 bytes, 0 no buffer Received 148 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 239 packets output, 15882 bytes, 0 underruns 0 output errors, 0 collisions, 7 interface resets 0 output buffer failures, 0 output buffers swapped out 8 carrier transitions 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: !!!!! SUCcess tate is 100 percent(5/5),round-trip min/avg/max=4/5/8ms R1#ping 10.1.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent(5/5),round-trip min/avg/max=4/5/8ms (以下为R2上的测试结果) R2#sh ip route rip 10.0.0.0/24 is subnetted, 2 subnets R 10.1.1.0[120/1]via 200.1.1.1,00:00:19,Serial0 R2#sh ip int brief Interface IP-Address OK? Method Status Protocol BRIO 192.168.1.2 YES NVRAM up up BRIO: 1 unassigned YES unset down down BRIO:2 unassigned YES unset down down Loopback0 10.1.2.1 YES NVRAM up up Serial0 200.1.1.2 YES manual up up Serial 1 unassigned YES NVRAM administratively down down R2# R2#pmg 10.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: !!!!! Success rate is: R2#ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: R2#