地址转换(NAT)的配置

上传人:飞*** 文档编号:40451707 上传时间:2018-05-26 格式:DOC 页数:5 大小:31.50KB
返回 下载 相关 举报
地址转换(NAT)的配置_第1页
第1页 / 共5页
地址转换(NAT)的配置_第2页
第2页 / 共5页
地址转换(NAT)的配置_第3页
第3页 / 共5页
地址转换(NAT)的配置_第4页
第4页 / 共5页
地址转换(NAT)的配置_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《地址转换(NAT)的配置》由会员分享,可在线阅读,更多相关《地址转换(NAT)的配置(5页珍藏版)》请在金锄头文库上搜索。

1、【路由】如果不太懂地址转换(NAT)的配置就进来看看(原创)作者:浩海孤帆2003-8-14如果不太懂地址转换(NAT)就进来看看 偶然发现以前学习 nat 时的东西。对这个配置有问题可以跟帖*全部采用端口*ISP 分配的 IP202.99.160.129interface fastethernet0/0ip address 192.168.1.1 255.255.255.0duplex autospeed autoin nat insideno shutdowninterface fastethernet0/1ip address 192.168.2.1 255.255.255.0duple

2、x autospeed autoin nat outsideno shutdownip nat pool OnlyYou 202.99.160.130 202.99.160.130 netmask 255.255.255.252/OnlyYou 代表地址池的名称。 2 个 202.99.160.130 是代表只用一个 ip 做转换后 ip.access-list 1 permit 192.168.1.0 0.0.0.255access-list 1 permit 192.168.2.0 0.0.0.255ip nat inside source list1 pool OnlyYou overl

3、oad*动态地址转换+端口*ISP 分配的 IP 有:202.99.160.130190 255.255.255.192Interface fastethernet0/1Ip address 192.168.1.1 255.255.255.0Ip address 192.168.2.1 255.255.255.0 secondaryDuplex autoSpeed autoIp nat insideNo shutdownInterface serial 0/0Ip address 202.99.160.129 255.255.255.192Duplex autoSpeed autoIp nat

4、 outsideNo shutdwonIp nat pool OutPort 202.99.160.190 202.99.160.190 netmask 255.255.255.192Ip nat pool OutPool 202.99.160.130 202.99.160.190 netmask 255.255.255.192Ip nat inside source list1 pool OutPort /192.168.1.0 段主机全部转成202.99.160.190Ip nat inside source list2 pool OutPool/出于访问 ftp 站点等考虑:192.16

5、8.2.0 和 192.168.3.0 段主机全部/转成 202.99.160.130 到 202.99.160.189 中的所有地址。Access-list1 permit 192.168.1.0 0.0.0.255Access-list2 permit 192.168.2.0 0.0.0.255Access-list2 permit 192.168.3.0 0.0.0.255*静态地址转换*ISP 分配的 IP 地址是:211.82.220.80211.82.220.87211.82.220.81 255.255.255.248要求 Intranet 上的 Web.E-mail.Ftp.M

6、edia 可以被外部访问.Interface fastethernet0/0Ip address 192.168.1.1 255.255.255.0Duplex autoSpeed autoIp nat insideNo shutdownInterface fastethernet0/1Ip address 211.82.220.81 255.255.255.248Speed autoDuplex autoIp nat outsideNo shutdownIp nat pool Outpool 211.82.220.86 211.82.20.86 netmask 255.255.255.248

7、Access-list 1 permit 192.168.1.2 0.0.0.255Access-list 1 permit 192.168.1.3 0.0.0.255Access-list 1 permit 192.168.1.4 0.0.0.255Access-list 1 permit 192.168.1.5 0.0.0.255Ip nat inside source list1 pool Outpool overloadIp nat inside source static 192.168.1.2 211.82.220.82Ip nat inside source static 192

8、.168.1.3 211.82.220.83Ip nat inside source static 192.168.1.4 211.82.220.84Ip nat inside source static 192.168.1.5 211.82.220.85*NAT 影射*如果 ISP 提供的 IP 地址比较多还可以,但如果不是的时候(如就两个时),一个用于内网地址转换,另一个用于对外网提供服务.ISP 提供的内网上网 IPInterface ethernet0Ip address 192.168.1.1 255.255.255.0Duplex autoSpeed autoIp nat insi

9、deNo shutdownInterface fastethernet0/0Ip address 211.82.220.129 255.255.255.248Duplex autoSpeed autoIp nat outsideNo shutdown Access-list 1 permit 192.168.1.0 0.0.0.255Ip nat pool Everybody 211.82.220.130 211.82.220.130 network 255.255.255.252Ip nat inside source list1 pool Everybody overloadIp nat

10、inside source static tcp 192.168.1.2 80 202.99.220.130 80Ip nat inside source static tcp 192.168.1.3 21 202.99.220.130 21Ip nat inside source static tcp 192.168.1.4 25 202.99.220.130 25Ip nat inside source static tcp 192.168.1.5 110 202.99.220.130 110*利用地址转换实现负载均衡*;当有如象腾讯公司似的多服务器时,使用路由器实现负载平衡,可以使它们有

11、平等的访问机会.Interface fastethernet0/1Ip address 192.168.1.1 255.255.255.0Duplex autoSpeed autoIp nat insideNo shutdownInterface fastethernet0/0Ip address 202.110.198.81 255.2555.255.248Duplex autoSpeed autoIp nat outsideAccess-list 1 permit 202.110.198.82Access-list 2 permit 202.110.198.83Access-list 3

12、permit 192.168.1.0 0.0.0.255Ip nat pool Webser 192.168.1.2 192.168.1.3 255.255.255.248 type rotaryIp nat pool Ftpser 192.168.1.4 192.168.1.5 255.255.255.248 type rotaryIp nat pool normal 202.110.198.84 202.110.198.84 netmask 255.255.255.248Ip nat inside destination list 1 pool WebserIp nat inside destination list 2 pool Ftpser

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 资格认证/考试 > 其它考试类文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号