hanboying18e435 2008-4-15 11:36
[技巧]双出口nat负载均衡加备份
以前bbs里面也是关于双出口nat的配置方法,但是我觉得那种配置方法只能做[url=http://storage.ctocio.com.cn/tt-storage-bfrz/]备份[/url],不能做到负载均衡。
以下这种配置方法可以做到负载均衡加备份
[[url=http://whatis.ctocio.com.cn/searchwhatis/456/6028456.shtml]table[/url]=95%][tr][td]r2#show running-config
Building [url=http://whatis.ctocio.com.cn/searchwhatis/388/5947388.shtml]configuration[/url]...
Current configuration : 1717 bytes
!
version 12.1
no service singl[url=http://whatis.ctocio.com.cn/searchwhatis/246/5947746.shtml]e-[/url]slot-[url=http://whatis.ctocio.com.cn/searchwhatis/98/6093598.shtml]reload[/url]-enable
service timestamps [url=http://whatis.ctocio.com.cn/searchwhatis/168/5947668.shtml]debug[/url] uptime
service timestamps log uptime
no service [url=http://whatis.ctocio.com.cn/searchwhatis/435/6025935.shtml]password[/url]-encryption
!
hostname r2
!
!
!
!
!
!
ip [url=http://whatis.ctocio.com.cn/searchwhatis/416/6026416.shtml]subnet[/url]-zero
no ip domain-lookup
!
!
!
!
[url=http://whatis.ctocio.com.cn/searchwhatis/103/6025603.shtml]interface[/url] Ethernet0
ip [url=http://whatis.ctocio.com.cn/searchwhatis/255/6025255.shtml]address[/url] 192.168.4.254 255.255.255.0
ip nat inside
ip [url=http://whatis.ctocio.com.cn/searchwhatis/177/6026177.shtml]policy[/url] route-map load
!
interface Serial0
ip address 192.168.12.2 255.255.255.0
ip nat outside
shutdown
!
interface Serial1
ip address 192.168.23.2 255.255.255.0
ip nat outside
clockrate 64000
!
ip nat inside source route-map net1 interface Serial0 overload
ip nat inside source route-map net2 interface Serial1 overload
ip nat inside source route-map net3 interface Serial1 overload
ip nat inside source route-map net4 interface Serial0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0
ip route 0.0.0.0 0.0.0.0 Serial1
ip route 192.168.1.0 255.255.255.0 192.168.24.4
ip route 192.168.2.0 255.255.255.0 192.168.24.4
ip route 192.168.3.0 255.255.255.0 192.168.24.4
ip http [url=http://whatis.ctocio.com.cn/searchwhatis/497/5948997.shtml]server[/url]
!
[url=http://database.ctocio.com.cn/databaseprogramme/tt-database-dpa/]access[/url]-list 1 permit 192.168.1.0 0.0.0.255
access-list 1 permit 192.168.3.0 0.0.0.255
access-list 2 permit 192.168.2.0 0.0.0.255
access-list 2 permit 192.168.4.0 0.0.0.255
route-map load permit 10
match ip address 1
match interface Serial0
[url=http://whatis.ctocio.com.cn/searchwhatis/23/5949023.shtml]set[/url] interface Serial0
!
route-map load permit 20
match ip address 2
match interface Serial1
set interface Serial1
!
route-map net4 permit 10
match ip address 2
!
route-map net3 permit 10
match ip address 2
match interface Serial1
!
route-map net2 permit 10
match ip address 1
!
route-map net1 permit 10
match ip address 1
match interface Serial0
!
!
line con 0
logging [url=http://whatis.ctocio.com.cn/searchwhatis/480/6026480.shtml]synchronous[/url]
line aux 0
line vty 0 4
login
no editing [/td][/tr][/table]
wglin1228b1390 2008-4-15 14:26
学习了~顶起来
figo_figo 2008-5-15 14:56
楼主辛苦了
谢谢啊!