[Gw]acl 2000
#创建简单ACL 编号2000
[Gw-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255
#创建规则 允许匹配 地址 192.168.0.0/16
[Gw]interface g0/0/0
#进入接口g0/0/0(接口G0/0/0应该是出口)
[Gw-GigabitEthernet0/0/0]nat outbound 2000
#开启Easy NAT ACL编号2000
Easy NAT 是基于外口IP所以无需设置地址池,如拓扑他的IP应是202.1.1.1,他启用了端口映射
所以可以多个IP公用一个IP通信
PC1与PC2 Ping 2.2.2.2的抓包
![](https://i-blog.csdnimg.cn/blog_migrate/508204b1be5dd8881a9a14da2112581e.jpeg)
源地址不变