免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3257 | 回复: 11
打印 上一主题 下一主题

配置静态NAT遇到的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-24 15:12 |只看该作者 |倒序浏览
具体配置如下:



Router1 Serial0 : 10.1.1.1/24
Router1 Ethernet0 : 192.168.1.1/24

Router2 Serial0: 10.1.1.2/24

Router3 Ethernet0: 192.168.1.2/24


三个路由器已经设置RIP/Clock Rate,并且三个路由器可以任意PING的通:)

这个实验的目的是在Router1上设置了Router2被NAT过的IP,从而从Router2上Telnet到Router3时,在Router3上面看到的是被NAT过的Router2的IP:)

具体在ROUTER1上的NAT设置:

R1#show ip nat translations
Pro Inside global Inside local Outside local Outside global
--- 172.172.172.172 10.1.1.2 --- ---

R1#show ip nat statistics
Total active translations: 5 (0 static, 5 dynamic; 5 extended)
Outside interfaces: Ethernet0
Inside interfaces: Serial0
Hits: 5 Misses: 5
Expired translations: 5
Dynamic mappings:
-- Inside Source
Access list + 0interface refcount 0

******************************


可是无论是从Router2上Telnet 到Router3上,还是从Router3上Telnet到Router2上,都显示:“Telnet not available”,求专家们帮忙~!~!

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
2 [报告]
发表于 2009-04-24 15:20 |只看该作者
帖配置。3台都要。

论坛徽章:
0
3 [报告]
发表于 2009-04-24 15:26 |只看该作者
原帖由 ssffzz1 于 2009-4-24 15:20 发表
帖配置。3台都要。

OK,马上到

论坛徽章:
0
4 [报告]
发表于 2009-04-24 15:32 |只看该作者
原帖由 ssffzz1 于 2009-4-24 15:20 发表
帖配置。3台都要。


3台路由器都是CISCO的2501型


R1的配置:


R1#show version

Boson Operating Simulation Software
BOSS (tm) C2500 Software (C2500-Enterprise), Version 12.1, RELEASE SOFTWARE
Copyright (c) 1998-2003 by Boson Software, Inc.

BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARE
R1 Uptime Is 0 days, 0 hours, 0 minutes
System restarted by power-on
System image file is ""flash:c2500-enterprise.12.1.boss"", booted via flash
Boson 2500 (BOSS) processor (revision 5.0)
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
3 ISDN Basic Rate interface(s)
32K bytes of simulated non-volatile configuration memory.
8192K bytes of simulated System flash (Read/Write)


Configuration register is 0X2102

R1#show running-config
Building configuration...

!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
!
!
ip subnet-zero
spanning-tree vlan 1 priority
!
!
!
!
!
!
!
!
interface Serial0
ip address 10.1.1.1 255.255.255.0
no ip directed-broadcast
clock rate 64000
ip nat inside
!
interface Serial1
no ip address
no ip directed-broadcast
shutdown
!
interface Ethernet0
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast
ip nat outside
!
interface Bri0
no ip address
no ip directed-broadcast
shutdown
!
!
router rip
network 10.0.0.0
network 192.168.1.0
!
ip nat inside source static 10.1.1.2 172.172.172.172
ip classless
no ip http server
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end




***************************

R2的配置:

R2#show version

Boson Operating Simulation Software
BOSS (tm) C2500 Software (C2500-Enterprise), Version 12.1, RELEASE SOFTWARE
Copyright (c) 1998-2003 by Boson Software, Inc.

BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARE
R2 Uptime Is 0 days, 0 hours, 4 minutes
System restarted by power-on
System image file is ""flash:c2500-enterprise.12.1.boss"", booted via flash
Boson 2500 (BOSS) processor (revision 5.0)
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
3 ISDN Basic Rate interface(s)
32K bytes of simulated non-volatile configuration memory.
8192K bytes of simulated System flash (Read/Write)


Configuration register is 0X2102

R2#show running-config
Building configuration...

!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
!
!
ip subnet-zero
spanning-tree vlan 1 priority
!
!
!
!
!
!
!
!
interface Serial0
ip address 10.1.1.2 255.255.255.0
no ip directed-broadcast
!
interface Serial1
no ip address
no ip directed-broadcast
shutdown
!
interface Ethernet0
no ip address
no ip directed-broadcast
shutdown
!
interface Bri0
no ip address
no ip directed-broadcast
shutdown
!
!
router rip
network 10.0.0.0
!
ip classless
no ip http server
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end



************************

R3的配置:

R3#show version

Boson Operating Simulation Software
BOSS (tm) C2500 Software (C2500-Enterprise), Version 12.1, RELEASE SOFTWARE
Copyright (c) 1998-2003 by Boson Software, Inc.

BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARE
R3 Uptime Is 0 days, 0 hours, 5 minutes
System restarted by power-on
System image file is ""flash:c2500-enterprise.12.1.boss"", booted via flash
Boson 2500 (BOSS) processor (revision 5.0)
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
3 ISDN Basic Rate interface(s)
32K bytes of simulated non-volatile configuration memory.
8192K bytes of simulated System flash (Read/Write)


Configuration register is 0X2102

R3#show running-config
Building configuration...

!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R3
!
!
!
ip subnet-zero
spanning-tree vlan 1 priority
!
!
!
!
!
!
!
!
interface Serial0
no ip address
no ip directed-broadcast
shutdown
!
interface Serial1
no ip address
no ip directed-broadcast
shutdown
!
interface Ethernet0
ip address 192.168.1.2 255.255.255.0
no ip directed-broadcast
!
interface Bri0
no ip address
no ip directed-broadcast
shutdown
!
!
router rip
network 192.168.1.0
!
ip classless
no ip http server
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
5 [报告]
发表于 2009-04-24 15:36 |只看该作者
R3添加:

ip route 172.172.172.172 0.0.0.0 192.168.1.1
语法有错误的话自己改。

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
6 [报告]
发表于 2009-04-24 15:49 |只看该作者
哦。也许是ip route 172.172.172.172 255.255.255.255 192.168.1.1
忘记了。

论坛徽章:
0
7 [报告]
发表于 2009-04-24 15:56 |只看该作者
原帖由 ssffzz1 于 2009-4-24 15:36 发表
R3添加:

ip route 172.172.172.172 0.0.0.0 192.168.1.1
语法有错误的话自己改。

添加了,还是不好用啊

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
8 [报告]
发表于 2009-04-24 16:01 |只看该作者
你用的模拟器,还是真机。

论坛徽章:
0
9 [报告]
发表于 2009-04-24 16:43 |只看该作者
原帖由 ssffzz1 于 2009-4-24 16:01 发表
你用的模拟器,还是真机。

模拟机,用的是Boson的。。。。

是不是只要有我的那些设置,应该telnet 不成问题吧?

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
10 [报告]
发表于 2009-04-24 17:19 |只看该作者
组要不要用模拟器来做。这个只适合于你熟悉命令行。

已经验证,上述配置无问题。R3可以通过172.172.172.172来访问R2.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP