首页 > 其他 > 详细

NAT配置

时间:2018-01-13 00:06:57      阅读:252      评论:0      收藏:0      [点我收藏+]
1,实验名称:NAT配置内网访问外网

2,实验目的:不同网络的路由器进行访问

3,实验拓扑:

技术分享图片

4,配置步骤:

R3:

R3(config)#INTerface GI0/0

R3(config-if)#ip address 192.168.10.254 255.255.255.0

R3(config-if)#no shutdown

R3(config)#interface gi0/1

R3(config-if)#ip address 100.1.1.254 255.255.255.0

R3(config-if)#no shutdown

R3(config)#route rip

R3(config-router)#version 2

R3(config-router)#no auto-summary

R3(config-router)#network 192.168.10.0

R3(config-router)#network 100.1.1.0

R3(config)#ip route 0.0.0.0 0.0.0.0 100.1.1.254

R3(config)#ip nat inside source static 192.168.10.1 100.1.1.254

R4:

R4(config)#interface gi0/1

R4(config-if)#ip address 100.1.1.254 255.255.255.0

R4(config-if)#no shutdown

R4(config-if)#interface gi0/0

R4(config-if)#ip address 200.1.1.1 255.255.255.0

R4(config-if)#no shutdown

R4(config)#route rip

R4(config-router)#version 2

R4(config-router)#no auto-summary

R4(config-router)#network 100.1.1.0

R4(config-router)#network 200.1.1.0

R4(config-router)#passive-interface gi0/1

R4(config-router)#exit

R5:

R5(config)#interface gi0/1

R5(config-if)#ip address 200.1.1.254 255.255.255.0

R5(config-if)#no shutdown

R5(config)#route rip

R5(config-router)#version 2

R5(config-router)#no auto-summary

R5(config-router)#network 200.1.1.0



5,验证及测试:

技术分享图片

技术分享图片技术分享图片

6,配置思路:

(1)配置PC机IP地址,内网路由器网关,配置中继IP地址,外网网关地址

(2)外网配置rip

(3)内网配置下一跳,


NAT配置

原文:http://blog.51cto.com/13560878/2060447

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