1.show ip interface brief
2.show ip interface fastethernet 1/0
3.ip nat inside source static tcp 192.168.1.111 53026 interface FastEthernet 1/0 53026
4.ip nat pool pool_name start_IP end_IP netmask
5.show ip nat static per_user //查看进程数命令
6.show ip nat translation //查看地址转换情况
7.ip nat translation per_user 192.168.1.0 150 //对IP段限制进程数,普通浏览网页200个连接数已经足够,P2P可以轻易达到700以上
8.clear ip nat translation * 配置一条静态NAT项目(必须在全局配置模式下执行)
.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, “Courier New”, courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }
R2632(config)# ip nat inside source static tcp 192.168.1.125 12345 interface fastethernet 1/0 12345
反操作,删除一条静态NAT项目:
必须在全局配置模式(config)或者接口配置模式(config-if)下执行
全局配置模式(config):
R2632(config)# no ip nat inside source static tcp 192.168.1.125 12345 interface fastethernet 1/0 12345
接口配置模式(config-if):
R2632(config-if)# no ip nat inside
或者
R2632(config-if)# no ip nat inside
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:玩转路由网,转转请注明出处:https://www.chuangxiangniao.com/wifi/22154.html
微信扫一扫
支付宝扫一扫