nat负载均衡
原创
©著作权归作者所有:来自51CTO博客作者zhang_jun1990的原创作品,请联系作者获取转载授权,否则将追究法律责任
基于telnet的NAT负载均衡
一、路由器配置
R1#sh run
interface Ethernet0/0
ip address 192.168.1.1 255.255.255.0
ip route 0.0.0.0 0.0.0.0 192.168.1.2
R2#sh run
interface Ethernet0/0
ip address 192.168.1.2 255.255.255.0
ip nat outside
ip virtual-reassembly
half-duplex
interface Ethernet0/1
ip address 192.168.2.1 255.255.255.0
ip nat inside
ip virtual-reassembly
half-duplex
ip route 192.168.0.0 255.255.255.0 192.168.1.1
ip nat pool p01 192.168.2.2 192.168.2.3 prefix-length 24 type rotary
ip nat inside destination list 101 pool p01
access-list 101 permit ip any host 192.168.1.2
R3#sh run
interface Ethernet0/0
ip address 192.168.2.2 255.255.255.0
ip route 0.0.0.0 0.0.0.0 192.168.2.1
interface Ethernet0/0
ip address 192.168.2.3 255.255.255.0
ip route 0.0.0.0 0.0.0.0 192.168.2.1
二、验证
R1#telnet 192.168.1.2
Trying 192.168.1.2 ... Open
User Access Verification
Password:
R4>exit
[Connection to 192.168.1.2 closed by foreign host]
R1#telnet 192.168.1.2
Trying 192.168.1.2 ... Open
User Access Verification
Password:
R3>
R2#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 192.168.1.2:23 192.168.2.2:23 192.168.1.1:26129 192.168.1.1:26129
tcp 192.168.1.2:23 192.168.2.3:23 192.168.1.1:26543 192.168.1.1:26543
上一篇:Linux下架设LAMP服务器
下一篇:我的友情链接
![](https://ucenter.51cto.com/images/noavatar_middle.gif)
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
NAT负载均衡_ftp
NAT负载均衡_ftp配置参数:R2:ip nat pool 1 10.1.2.2 10.1.2.3 netmask 255.255.255.0 type rotary //内网服务器地址池ip nat inside destination list 1 pool 1 //目标NAT绑定access-list 1 permit 192.168.1.2 //路由器外网接口IP地址interface FastEthernet1/0ip nat inside //内网接口interface FastEthernet2/0ip nat outside //外网接口
ccnp 路由器 nat tcp NAT负载均衡 TCP负载均衡 -
NAT负载均衡的搭建
一个简单的NAT负载均衡的服务器搭建 基于 ip地址 端口的
易懂负载均衡 NAT