思科路由器静态NAT配置

版权声明:本文为博主原创文章,转载请附带此文链接。 https://blog.csdn.net/ever_peng/article/details/89496998

1、拓扑图

2、R5配置SNAT命令行

#进入config节点
R5#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.

#配置接口IP
R5(config)#interface Ethernet 1/0
R5(config-if)#ip address 11.11.11.2 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface Ethernet 1/1
R5(config-if)#ip address 13.13.13.1 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#exit

#配置静态源NAT策略
R5(config)#ip nat inside source static 11.11.11.1 13.13.13.1

#进入接口E1/1
R5(config)#interface ethernet 1/1

#配置接口属性为NAT出接口
R5(config-if)#ip nat outside
R5(config-if)#exit

#进入接口E1/2
R5(config)#interface ethernet 1/2

#配置接口属性为NAT入接口
R5(config-if)#ip nat inside

3、结果验证:

R2 ping R3,在R3端debug查看

猜你喜欢

转载自blog.csdn.net/ever_peng/article/details/89496998