基于telnet的NAT负载均衡
原创
©著作权归作者所有:来自51CTO博客作者相儒以沫的原创作品,请联系作者获取转载授权,否则将追究法律责任
基于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
上一篇:××× 配置
下一篇:OSPF的虚链路配置
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
haproxy基于Nat模型实现负载均衡
haproxy基于Nat模型实现负载均衡
haproxy基于Nat模型实现负载均衡 -
NAT负载均衡的搭建
一个简单的NAT负载均衡的服务器搭建 基于 ip地址 端口的
易懂负载均衡 NAT