NAT可以自动将私有ip转换为全球唯一的公有ip,从而达到能够连接外网的目的

私有ip地址:

A:10.0.0.0~10.255.255.255

B:172.16.0.0~172.31.255.255

C:192.168.0.0~192.168.255.255

本地回环地址:127.0.0.1

配置nat 一定要进入外网接口进行配置:

nat static global 外网地址 inside 内网地址

nat static global 43.135.138.167 inside 192.168.2.1

删除

undo nat static global 43.135.138.167 inside 192.168.2.1

display this 查看