取消
显示结果 
搜索替代 
您的意思是: 
cancel
11875
查看次数
58
有帮助
9
回复

思科2911路由器nat及负载均衡 求教各位大神

995011402
Level 1
Level 1
各位大神,请教一下问题:
1.2911接入电信和联通两条专线来实现链路冗余及负载均衡,负载均衡如何配置
2.内网ip做NAT转换如何配置
3.其中一条专线down后,nat如何变化
1 个已接受解答

已接受的解答

yanzha4
Spotlight
Spotlight
给你一个 配置吧,GNS测过好用,应该没啥问题,具体细化自己做做
GW路由器配置
实现双出口双NAT + SLA监控链路有效性实验
GW#sh run
Building configuration...
Current configuration : 1871 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname GW
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
no ip dhcp use vrf connected
ip dhcp excluded-address 10.1.1.1 10.1.1.10
ip dhcp excluded-address 10.1.2.1 10.1.2.20
!
ip dhcp pool P1
network 10.1.1.0 255.255.255.0
default-router 10.1.1.1
!
ip dhcp pool P2
network 10.1.2.0 255.255.255.0
default-router 10.1.2.1 255.255.255.0
!
!
ip sla monitor 10
type echo protocol ipIcmpEcho 60.30.1.2 source-interface FastEthernet1/0
frequency 10
ip sla monitor schedule 10 start-time now recurring
!
track 100 rtr 10 reachability
!
interface FastEthernet0/0
ip address 202.100.1.1 255.255.255.252
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 60.30.1.1 255.255.255.252
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet2/0
ip address 10.1.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
no ip http server
no ip http secure-server
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 FastEthernet1/0 track 100
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 2
!
ip nat inside source route-map LianTong interface FastEthernet1/0 overload
ip nat inside source route-map Yidong interface FastEthernet0/0 overload
!
access-list 100 permit ip 10.1.0.0 0.0.255.255 any
!
route-map LianTong permit 10
match ip address 100
match interface FastEthernet1/0
!
route-map LianTong permit 20
!
route-map Yidong permit 10
match ip address 100
match interface FastEthernet0/0
!
route-map Yidong permit 20
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

在原帖中查看解决方案

9 条回复9

yanzha4
Spotlight
Spotlight
给你一个 配置吧,GNS测过好用,应该没啥问题,具体细化自己做做
GW路由器配置
实现双出口双NAT + SLA监控链路有效性实验
GW#sh run
Building configuration...
Current configuration : 1871 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname GW
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
no ip dhcp use vrf connected
ip dhcp excluded-address 10.1.1.1 10.1.1.10
ip dhcp excluded-address 10.1.2.1 10.1.2.20
!
ip dhcp pool P1
network 10.1.1.0 255.255.255.0
default-router 10.1.1.1
!
ip dhcp pool P2
network 10.1.2.0 255.255.255.0
default-router 10.1.2.1 255.255.255.0
!
!
ip sla monitor 10
type echo protocol ipIcmpEcho 60.30.1.2 source-interface FastEthernet1/0
frequency 10
ip sla monitor schedule 10 start-time now recurring
!
track 100 rtr 10 reachability
!
interface FastEthernet0/0
ip address 202.100.1.1 255.255.255.252
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 60.30.1.1 255.255.255.252
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet2/0
ip address 10.1.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
no ip http server
no ip http secure-server
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 FastEthernet1/0 track 100
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 2
!
ip nat inside source route-map LianTong interface FastEthernet1/0 overload
ip nat inside source route-map Yidong interface FastEthernet0/0 overload
!
access-list 100 permit ip 10.1.0.0 0.0.255.255 any
!
route-map LianTong permit 10
match ip address 100
match interface FastEthernet1/0
!
route-map LianTong permit 20
!
route-map Yidong permit 10
match ip address 100
match interface FastEthernet0/0
!
route-map Yidong permit 20
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

suzhouxiaoniu
Spotlight
Spotlight
我写过专门的案例视频,由于是付费的,就不提供链接了
网上有差不多的配置
你可以参考一下
http://wenku.baidu.com/link?url=TjEI3s-LRrRKfc9MNumJh7BFLDBR_oOg7gsp7nh1_MHPXnbsZ14Dp6GWKGVd1hNavlDVR2Qlgs_I0986jYLYkg55kvMndVXyKDv3movc7ru

995011402
Level 1
Level 1
suzhouxiaoniu 发表于 2015-9-20 12:43 back.gif
我写过专门的案例视频,由于是付费的,就不提供链接了
网上有差不多的配置

十分感谢啊 !

suzhouxiaoniu
Spotlight
Spotlight
995011402 发表于 2015-9-21 08:01 back.gif
十分感谢啊 !

:handshake不客气

995011402
Level 1
Level 1
yanzha4 发表于 2015-10-15 16:12 back.gif
给你一个 配置吧,GNS测过好用,应该没啥问题,具体细化自己做做
GW路由器配置

非常感谢大神的回复 也相当有帮助 再次感谢啊!

yssqt5211
Level 1
Level 1
楼主 这个方法可以解决问题吗?

yssqt5211
Level 1
Level 1
学习了、学习了、

yssqt5211
Level 1
Level 1
学习了、学习了、

zhdnetsec
Level 1
Level 1
论坛 还是个好地方呀
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接