NAT可提帮助的个各种情形:
1、需要连接到因特网;
2、更换的IS要求对网络进行重新编址
3、需要合并两个使用相同编址方案的内联网;
interface Ethernet2/0
ip address 10.1.1.10 255.255.255.0
ip nat inside
interface Serial3/0
ip address 172.46.2.1 255.255.255.0
ip nat outside
ip nat pool todd 170.168.2.3 170.168.2.254 netmask 255.255.255.0
ip nat inside source list 1 pool todd
interface Ethernet2/0
ip address 10.1.1.10 255.255.255.0
ip nat inside
interface Serial3/1
ip address 170.168.2.1 255.255.255.0
ip nat outside
access-list 1 permit 10.1.1.0 0.0.0.255
配置PAT
ip nat pool golbalnet 170.168.2.1 170.168.2.1 netmask 255.255.255.0
ip nat inside source list 1 pool globalnet overload
interface Ethernet2/1
ip address 10.1.1.10 255.255.255.0
ip nat inside
interface Serial3/0
ip address 170.168.2.1 255.255.255.0
ip nat outside
access-list 1 permit 10.1.1.0 0.0.0.255