思科路由器静态NAT配置

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查看

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值