Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1398169
  • 博文数量: 254
  • 博客积分: 4173
  • 博客等级: 中校
  • 技术积分: 3400
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-03 21:24
个人简介

不为失败找借口,只为成功找方法!

文章分类

全部博文(254)

文章存档

2021年(3)

2020年(1)

2019年(2)

2017年(10)

2016年(6)

2015年(19)

2014年(24)

2013年(19)

2012年(52)

2011年(118)

分类:

2011-05-05 21:05:05

原文地址:NAT地址转换和PAT接口转换 作者:spunix

实验内容:通过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
 
阅读(939) | 评论(0) | 转发(0) |
0

上一篇:frame-relay

下一篇:英语介词用法

给主人留下些什么吧!~~