分类: | | | 2010-07-07 13:58:14
双线路备份---急!!!
大家好:
我们公司总部数据中心有一台CISCO2811路由器,广州中心这边也有一台CISCO2811路由器,现公司传输数据是用的一条2M的网通专线,过几天又会拉一条联通的2M专线,因为数据比较重要,要保证网络时时畅通,所以要做双线路备份,
请教大家,对双线路备份有什么好的意见没,
我知道可以用CISCO的BACKUP可以做线路备份,但是我从来没有做过,命令也就知道个大概,具体怎么配置也不清楚,不知道那位做过BACKUP线路备份,请指教!!
最好能把命令写一下,谢谢
急,麻烦大家了
给你发份自己模拟的希望对lz有用:
拓扑:r1的f0/0接isp1,f0/1接isp2,f0/2接lan:。目的试验负载均衡和备份并实现nat,正常情况下192.168.1.0-126往isp走,192.168.1.128-254往isp2走。
第一种方法:
interface FastEthernet0/0
description To-isp1
no switchport
ip address 100.1.1.1 255.255.255.0
ip nat outside
ip nat enable
ip virtual-reassembly
!
interface FastEthernet0/1
description To-isp2
no switchport
ip address 200.1.1.1 255.255.255.0
ip nat outside
ip nat enable
ip virtual-reassembly
shutdown
!
interface FastEthernet0/2
no switchport
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip nat enable
ip virtual-reassembly
ip policy route-map isp
ip route 0.0.0.0 0.0.0.0 100.1.1.2
ip route 0.0.0.0 0.0.0.0 200.1.1.2
!
!
ip nat pool isp1pool 100.1.1.3 100.1.1.10 netmask 255.255.255.0
ip nat pool isp2pool 200.1.1.3 200.1.1.10 netmask 255.255.255.0
ip nat inside source route-map isp1 pool isp1pool overload
ip nat inside source route-map isp2 pool isp2pool overload
access-list 1 permit 192.168.1.0 0.0.0.127
access-list 2 permit 192.168.1.128 0.0.0.127
route-map isp permit 10
match ip address 1
match interface FastEthernet0/0
set interface FastEthernet0/0
!
route-map isp permit 20
match ip address 2
match interface FastEthernet0/1
set interface FastEthernet0/1
!
route-map isp permit 30
match ip address 1
match interface FastEthernet0/1
set interface FastEthernet0/1
!
route-map isp permit 40
match ip address 2
match interface FastEthernet0/0
set interface FastEthernet0/0
route-map isp2 permit 10
match interface FastEthernet0/1
!
!
route-map isp1 permit 10
match interface FastEthernet0/0
第2种配置方法:
nterface FastEthernet0/0
description To-isp1
no switchport
ip address 100.1.1.1 255.255.255.0
ip nat outside
ip nat enable
ip virtual-reassembly
!
interface FastEthernet0/1
description To-isp2
no switchport
ip address 200.1.1.1 255.255.255.0
ip nat outside
ip nat enable
ip virtual-reassembly
shutdown
!
interface FastEthernet0/2
no switchport
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip nat enable
ip virtual-reassembly
ip route 0.0.0.0 0.0.0.0 100.1.1.2
ip route 0.0.0.0 0.0.0.0 200.1.1.2
!
!
ip nat pool isp1pool 100.1.1.3 100.1.1.10 netmask 255.255.255.0
ip nat pool isp2pool 200.1.1.3 200.1.1.10 netmask 255.255.255.0
ip nat inside source route-map isp1 pool isp1pool overload
ip nat inside source route-map isp2 pool isp2pool overload
ip nat inside source route-map isp3 pool isp2pool overload
ip nat inside source route-map isp4 pool isp1pool overload
!
access-list 1 permit 192.168.1.0 0.0.0.127
access-list 2 permit 192.168.1.128 0.0.0.127
!
route-map isp2 permit 10
match ip address 2
match interface FastEthernet0/1
!
route-map isp3 permit 10
match ip address 1
match interface FastEthernet0/1
!
route-map isp1 permit 10
match ip address 1
match interface FastEthernet0/0
!
route-map isp4 permit 10
match ip address 2
match interface FastEthernet0/0
2008-9-16
谢谢,我们是两地互联,不用做NAT的,也不连Internet
只是内部传输数据
2007-6-17
2006-3-13
我记得在以前CCNP的BCRAN那本远程的书上有说过使用Backup链路的...