
```
左边的路由
ip access-list standard 1 #文件访问控制列表
permit 192.168.3.0 0.0.0.255 #允许这个网段通过
exit
ip nat pool dcc 172.16.1.1 172.16.1.100 netmask 255.255.255.0
ip nat inside source list 1 pool dcc
int f0/0
ip nat inside #指定内部接口
int f0/1
ip nat outside #指定外部接口
静态路由
ip route 192.168.1.0 255.255.255.0 172.16.1.2
右边的路由
ip access-list standard 1
permit 172.16.2.0 0.0.0.255
exit
ip nat pool dcc 192.168.1.5 192.168.1.6 netmask 255.255.255.0
ip nat inside source list 1 pool dcc
int f0/0
ip nat inside
int f0/1
ip nat outside
静态路由
ip route 192.168.1.0 255.255.255.0 172.16.1.2
```
查看NAT转换
```
show ip nat translations
```
最后修改:2021 年 11 月 14 日
© 允许规范转载