拓扑图及IP地址规划如图:
R1的配置
R1
:
interface FastEthernet0
/0
ip nat inside
!
interface FastEthernet1
/0
ip nat outside
!
ip access
-list standard NAT
permit
192.168.1.0 0.0.0.255
!
ip nat inside source list NAT interface FastEthernet1
/0 overload
ip route
0.0.0.0 0.0.0.0 172.16.1.2
!
查看转换结果
PC0 ping PC1的地址
转载请注明原文地址:https://tech.qufami.com/read-439.html