NAT地址转换

静态NAT:
ip nat inside
ip nat outside
ip nat inside source static lolal grobal
 
动态NAT:
ip nat inside
ip nat outside
ip nat pool ?start end (公网地址){netmark netmark|prefix-length ?}
access-list ? permit source-ip(私网地址) wildcard
ip nat inside source list ? pool ?
 
PAT:
0~511,512~1023,1024~65535 (overload)
ip nat inside
ip nat outside
access-list ? permint source-ip wildcard
ip nat inside source list ? interface ?(本地全局地址)overload=
 
 
ip nat inside source list ? pool ? overload
例 ip nat pool ? 209.165.201.2 209.165.201.2 netmask 255.255.255.224
 
检查NAT,PAT
show ip nat statistics排错
show ip nat translations
debug ip nat
clear ip nat translation * 清除所有动态NAT转换条目
clear ip nat translation inside global_ip local_ip{outside local_ip global_ip}  清除某一条动态转换条目
clear ip nat translation protocol inside global_ip global_port local_ip local_port{outside local_ip local_port global_ip global_port}清除扩展动态条目
 
 

本文出自 “欢迎光临” 博客,转载请与作者联系!

你可能感兴趣的:(职场,NAT,地址转换,休闲,广域网)