一 内部地址转换外部地址
二 NAT 功能:
① 内部网络地址转换
② TCP 负载均衡
③解决网络地址重叠
④复用内部的全局地址
三 私有地址:
10.0.0.0 ---10.255.255.255
172.16.0.0-----172.32.255.255
192.168.0.0------192.168.255.255
四 NAT 类型:
静态NAT
NAT 池(动态)
端口NAT
实验 :动态NAT
Router>enable
Router#conf
Router(config)#int f 0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no shu
Router(config-if)#int f 0/1
Router(config-if)#ip add 23.1.1.1 255.255.255.0
Router(config-if)#no shu
Router(config-if)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#ping 23.1.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 23.1.1.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms
Router#
Router(config)#ip nat pool xxx 192.168.2.1 192.168.2.1 netmask 255.255.255.0
Router(config)#ip nat inside source list 1 pool xxx overload
Router(config)#int f 0/0
Router(config-if)#ip nat in
Router(config-if)#ip nat inside
Router(config-if)#int f 0/1
Router(config-if)#ip nat ou
Router(config-if)#ip nat outside
Router(config-if)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
ping 全网互通