首页 > 其他 > 详细

nat的翻译类型(1)--静态nat

时间:2017-12-24 21:58:13      阅读:258      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

目的:在1.1 1.2 1.3 三台内网的服务器访问外网的服务器(202.1.1.2)时,将内网ip转换为外网ip。

1.设置内网三台服务器的Ip ,网关,以及外网服务器的ip网关

分别为:192.168.1.1 192.168.1.254

    192.168.1.2 192.168.1.254

    192.168.1.3 192.168.1.254

    202.1.1.2     202.1.1.1

2.设置路由器端口ip

Router(config-if)#inter f 0/0
Router(config-if)#ip add 192.168.1.254 255.255.255.0
Router(config-if)#inter f 1/0 
Router(config-if)#ip add 202.1.1.1 255.255.255.0

3.标明内外网借口

Router(config-if)#inter f 1/0 
Router(config-if)#ip nat out
Router(config-if)#inter f 0/0
Router(config-if)#ip nat in

4.配置nat

Router(config)#ip nat in sour  static 192.168.1.1 202.1.1.3 
Router(config)#ip nat in sour  static 192.168.1.2 202.1.1.4
Router(config)#ip nat in sour  static 192.168.1.3 202.1.1.5

5.查看

Router#sh ip nat t
Pro  Inside global     Inside local       Outside local      Outside global
---  202.1.1.3         192.168.1.1        ---                ---
---  202.1.1.4         192.168.1.2        ---                ---
---  202.1.1.5         192.168.1.3        ---                ---

 

nat的翻译类型(1)--静态nat

原文:http://www.cnblogs.com/excellencesy/p/8099228.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!