您的位置:首页 > 职场人生

cisco的pat,nat配置

2010-02-23 15:33 375 查看
NAT的配置
int s0
ip add 220.113.14.40 255.255.255.224
no sh
int e0
ip add 192.168.1.0 255.255.255.0
no sh
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat pool test 220.113.14.40 220.113.14.50 netmask 255.255.255.224
ip nat inside source list 1 pool test overload
int s0
ip nat outside
int e0
ip nat inside
验证
sh ip nat translations
sh ip nat statistics
no debug all
debug ip nat
PAT的配置
int s0
ip add 61.159.62.129 255.255.255.248
int e0
ip add 10.1.1.1 255.255.255.0
access-list 1 permit 10.1.1.0 0.0.0.255
ip nat pool onlyone 61.159.62.130 61.159.62.130 netmask 255.255.255.248
ip nat inside source list 1 pool onlyone overload
ip route 0.0.0.0 0.0.0.0 61.159.62.130(网关)
int s0
ip nat outside
int e0
ip nat inside
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  cisco 职场 nat