发布者:上海IT外包来源:http://www.lanmon.net点击数:4314
ebackup功能举例
一、 方案特点:
1. 本方案采用“远程线路狀态侦测”和“按需动态路由发送”,实现线路的自动备份功能。
2. 支持RIP ,RIP2,OSPF等路由协议。
3. 节约通信资源,不需在主通信线路上运行动态路由协议。
4. 切换时间短。
二、 网络拓扑:
三、 配置说明:
(一)中心是其他厂商路由器,下面网点是BDCOM路由器。
1.中心路由器CISCO的配置
interface Ethernet0
ip address 1.0.0.10 255.0.0.0
!
interface Serial1
ip address 130.130.1.1 255.255.0.0
no ip mroute-cache
encapsulation x25
x25 address 1111
x25 htc 16
x25 map ip 130.130.1.3 3333
!
interface Async1
ip address 140.140.1.1 255.255.0.0
encapsulation ppp
async default routing
async dynamic routing
async mode dedicated
dialer in-band
no cdp enable
!
router rip
version 2
redistribute connected
network 140.140.0.0
!
no ip classless
ip route 10.0.0.0 255.0.0.0 130.130.1.3 130
!
line 1
modem InOut
flowcontrol hardware
2.网点路由器BDCOM的配置
rip enable
e0
ip add 10.1.1.1 255.0.0.0
quit
s0
encapsulate x25
ip add 130.130.1.3 255.255.0.0
x25 addr 3333
map add 130.130.1.1 svc 1111 ebackup ;需要侦测的端口.
ebackup enable 30 ;30秒进行1次远程线路狀态侦测.
quit
s1
encapsulate ppp
ip add 140.140.1.3 255.255.0.0
line dial
map add 140.140.1.1 1 broadcast
rip version 2
quit
route add 1.0.0.0 255.0.0.0 130.130.1.1 1
route add 1.0.0.0 255.0.0.0 140.140.1.1 3
rip net add 140.140.0.0
rip redistribute connected
hosts add 127.0.0.1 localhost
3.说明
网点路由器BDCOM可侦测远程线路狀态,当中心线路出故障时,自动启动备份线路,通过RIP 协议重新和中心建立通讯。中心线路正常时,切换回主线路。
(二)中心和网点都是BDCOM的路由器
1.中心路由器的配置
e0
ip add 1.0.0.10 255.0.0.0
quit
s0
encapsulate x25
ip add 130.130.1.1 255.255.0.0
x25 addr 1111
map add 130.130.1.3 svc 3333 ebackup ;中心侦测网点线路状态,
ebackup enable 30 ;如有故障,改走备份线路。
quit
s1
encapsulate ppp
ip add 140.140.1.1 255.255.0.0
line dial
map add 140.140.1.3
quit
route add 10.0.0.0 255.0.0.0 140.140.1.3 3
route add 10.0.0.0 255.0.0.0 130.130.1.3 2
hosts add 127.0.0.1 localhost
2.网点路由器的配置
e0
ip add 10.1.1.1 255.0.0.0
quit
s0
encapsulate x25
ip add 130.130.1.3 255.255.0.0
x25 addr 3333
map add 130.130.1.1 svc 1111 ebackup
ebackup enable 30
quit
s1
encapsulate ppp
ip add 140.140.1.3 255.255.0.0
line dial
map add 140.140.1.1 1 broadcast
quit
s2
encapsulate none
quit
x25switch
destination add default s0
quit
route add 1.0.0.0 255.0.0.0 130.130.1.1 1
route add 1.0.0.0 255.0.0.0 140.140.1.1 2
hosts add 127.0.0.1 localhost
3 说明
中心和下面网点均为BDCOM路由器时,同时使用远程线路狀态侦测,可以不使用任何动态路由协议实现备份,降低了通行费用。
说明:
分享到: