linux如何实现端口复用nat,nat端口复用问题【已解决】

如下图,我在R1路由器上设置一条静态路由 ip route 200.1.1.0 255.255.255.0 100.1.1.2            实现R1的100网段可以ping通R2的200网段,

R2路由器上不做静态路由,所以192.168.100.0网段只可以ping到R1的100.1.1.1

这时我在R1做上nat端口复用

access-list 1 permit 192.168.100.0 0.0.0.255

ip nat source list 1 interface f1/0 overload

在R1的f0/0配置 ip nat inside      在f1/0配置 ip nat outside

这时如果用192.168.100. 0网段ping R2 IP地址应转化成100.1.1.1 因为R2的路由表有100.1.1.1

所以应该会ping通,可是为什么我就ping不通呢??请大家帮我排一下错.

模拟实验工具:模拟器:GNS3 0.8.2

IOS  : 3600 Software (C3640-IK9O3S-M), Version 12.4(10)

模拟PC:vpcs

以下是R1的路由器配置:

R1#show running-config

Building configuration...

Current configuration : 864 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R1

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

!

!

ip cef

no ip domain lookup

!

interface FastEthernet0/0

ip address 192.168.100.1 255.255.255.0

ip nat inside

ip virtual-reassembly

duplex auto

speed auto

!

interface FastEthernet1/0

ip address 100.1.1.1 255.255.255.0

ip nat outside

ip virtual-reassembly

duplex auto

speed auto

!

no ip http server

no ip http secure-server

!

ip route 200.1.1.0 255.255.255.0 100.1.1.2

!

ip nat source list 1 interface FastEthernet1/0 overload

!

access-list 1 permit 192.168.100.0 0.0.0.255

!

control-plane

!

line con 0

exec-timeout 0 0

logging synchronous

line aux 0

line vty 0 4

!

end

d86a14d709909a81d23c9d91fc1d2804.gif

111.bmp

(1.21 MB)

2012-9-11 15:21

59399625227dc41ea2dfee179373231a.bmp

本帖最后由 小侠唐在飞 于 2012-9-12 10:47 编辑

分享至:

90ed4b13fe016cebd9fe3df2ae3a899b.gif

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值