Chinaunix首页 | 论坛 | 博客

qsh

  • 博客访问: 3943747
  • 博文数量: 1015
  • 博客积分: 15904
  • 博客等级: 上将
  • 技术积分: 8572
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-04 19:16
文章分类

全部博文(1015)

文章存档

2019年(1)

2017年(1)

2016年(19)

2015年(27)

2014年(30)

2013年(95)

2012年(199)

2011年(72)

2010年(109)

2009年(166)

2008年(296)

分类:

2010-07-13 20:37:11

 

分类: | | | 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链路的...
阅读(1650) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~