Chinaunix首页 | 论坛 | 博客
  • 博客访问: 440171
  • 博文数量: 96
  • 博客积分: 4594
  • 博客等级: 上校
  • 技术积分: 1130
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-30 19:56
文章分类
文章存档

2012年(8)

2011年(49)

2010年(18)

2009年(21)

分类:

2011-05-03 22:29:16

实验内容:通过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
 
阅读(929) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~