Chinaunix首页 | 论坛 | 博客
  • 博客访问: 646250
  • 博文数量: 751
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4990
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-28 09:48
文章分类

全部博文(751)

文章存档

2011年(1)

2008年(750)

我的朋友

分类:

2008-10-28 09:54:56


  备份接口是一个指定的专用接口,它在主接口失效前一起处于关闭状态。当主接口出现故障时,备份接口启动,从而保证网络的连通性。
  本节演示有关使用ISDN接口作为备份接口的配置。
  
  1.实验目的
  
  通过本实验,读者可以掌握以下技能:
  ●配置备份接口;
  ●监测不同测试条件下主接口和备份接口的状态变化。
  
  2.设备需求
  
  本实验需要以下设备:
  ●器2台,分别命名为R1和R2,要求每台路由器具有1个ISDN BRI接口、1个串行接口。
  ●2条ISDN线路和相应的NT1;
  ●DTE和DCE电缆各1条;
  ●1台终端,如2509路由器,及用于反向Telnet的相应电缆;
  ●1台带有超级终端程序的PC机,以及Console电缆及转接器。
  
  3.拓扑结构及配置说明
  
  本实验的拓扑结构如图7.3所示,R1和R2路由器分别连接1条ISDN BRI线路,并且通过DCE和DTE电缆互相连接起来模拟DDN链路。
  为完成本实验的配置,在R1和R2上分别创建1个回送接口(LO)。在实际的网络环境中代替此处回送接口的最常见的接口是以太网接口。
  各路由器BRIO、SO、LO接口的IP网段或IP地址以及所连接线路的ISDN号码见图7-3中的标注。
  

  实验要求在实验2配置成功的基础上进一步配置R1和R2,定义DDN为主链路,ISDN链路为备份链路,使得在主链路断开的情况下,备份链路能够被激活来保证网络端到端的连通性。
  
  4.实验配置及监测结果
  
  在成功完成实验2配置的基础上,我们通过更改和增加配置语句来进行本实验。
  配置清单7-3是记录了实验的操作过程。
  
  配置清单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#
  
  (未完...待续)
  
  
  
【责编:admin】

--------------------next---------------------

阅读(263) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~