码迷,mamicode.com
首页 > 其他好文 > 详细

NAT

时间:2016-12-23 02:30:23      阅读:102      评论:0      收藏:0      [点我收藏+]

标签:路由器   source   动态   

路由器上ACL与NAT的组合实现

路由器上实现静态SNAT

config t

ip nat inside source static 192.168.0.211 211.0.0.211

ip nat inside source static 192.168.0.212 211.0.0.212

interface fa2/0

ip nat inside

interface s1/0

ip nat outside

end


show ip nat translations *


路由器上实现动态SNAT

config t

access-list 11 permit 192.168.0.0 0.0.0.255

ip nat pool TT 211.0.0.101 211.0.0.150 netmask 255.255.255.0

ip nat inside source list 11 pool TT

interface fa 2/0

ip nat inside

interface s1/4

ip nat outside

end

show ip nat translations *


超载配置

config t

access-list 11 permit 192.168.0.0 0.0.0.255

ip nat pool TT 211.0.0.101 211.0.0.150 netmask 255.255.255.0

ip nat inside source list 11 pool TT overload

interface fa 2/0

ip nat inside

interface s1/4

ip nat outside

end

show ip nat translations *


PAT配置

config t

config t

access-list 11 permit 192.168.0.0 0.0.0.255

ip nat pool TT 211.0.0.101 211.0.0.101 netmask 255.255.255.0

ip nat inside source list 11 pool TT overload

interface fa 2/0

ip nat inside

interface s1/4

ip nat outside

end

show ip nat translations *







NAT

标签:路由器   source   动态   

原文地址:http://zhengfei.blog.51cto.com/1617522/1885166

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!