注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 科普系列之-使用Windows的..
 帮助

cisco的pat,nat配置


2008-03-10 20:00:46
 标签:cisco 配置 nat pat    [推送到技术圈]

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




    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: