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; } .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
0 条