第十五章 网络地址转换NAT配置

2022-07-05  本文已影响0人  孙广宁

实验目标

实验背景

技术原理

实验步骤

实验设备

架构图
192.168.1.2
255.255.255.0
192.168.1.1
222.0.2.2
255.255.255.0
222.0.2.1
en
conf t
host r0
int fa 0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
int s 2/0
ip address 222.0.1.1 255.255.255.0
no shutdown 
clock rate 64000
en
conf t
host r1
int s 2/0
ip address 222.0.1.2 255.255.255.0
no shutdown
int fa 0/0
ip address 222.0.2.1 255.255.255.0
no shutdown
exit
ip route 222.0.2.0 255.255.255.0 222.0.1.2
exit 
ip route 192.168.1.0 255.255.255.0 222.0.1.1
end
show ip route
ping 192.168.1.2 success
http://192.168.1.2 success
int fa 0/0
ip nat inside
int s 2/0
ip nat outside
exit
ip nat inside source static 192.168.1.2 222.0.1.3
end
show ip nat translations
http://222.0.1.3
show ip nat translations
上一篇下一篇

猜你喜欢

热点阅读