实验内容:通过NAT转换,将局域网内192.168.1.0网段转换为202.119.249.250访问公网
通过PAT技术,使外部访问202.119.249.250的链接全部转到内网服务器的80端口上
R1:
en
conf t
host R1
int f0/1
ip add 192.168.1.254 255.255.255.0
no sh
ip nat inside
int s1/0
ip add 202.119.249.250 255.255.255.0
clock rate 64000
ip nat outside
no sh
exit
ip route 0.0.0.0 0.0.0.0 202.119.249.2
ip nat pool spunix 202.119.249.250 202.119.249.250 255.255.255.0
ip nat inside source list 1 pool spunix overload
ip nat inside source static 192.168.1.10 202.119.249.250 extend
ip nat inside source static tcp 192.168.1.10 80 202.119.249.250 80
access-list 1 permit 192.168.1.0 0.0.0.255
R2:
en
conf
int s1/0
ip add 202.119.249.2 255.255.255.0
no sh
阅读(973) | 评论(0) | 转发(1) |