查看: 4073|回复: 16

向高手请教路由器问题

[复制链接]
发表于 2008-10-2 15:18:16 | 显示全部楼层 |阅读模式
QQ截图未命名.jpg

1 我配置了 路由器的  f0/0  ,  f0/1  口 , 两个口都激活了 ,          f0/0  f0/1 两个口都 up 了     /////         但pc 机器 host e 能 ping 通 10.65.0.1      /////         不能 ping 通 202.202.202.202 ,是什么原因呀?  
2  我对 f0/1 口 进行了 ip nat inside  设置,  但是 不知道是否设置成功 ,请问, 我用什么命令 查看呀 ?  我用了 show run 和 show int f0/1 都不行?
回复

使用道具 举报

发表于 2008-10-2 15:41:44 | 显示全部楼层
1、既然你说你的两个F口都UP了,那我觉得是你的HOST E设置的问题。给Ta配上默认网关即可。
2、#show ip nat s
      #show ip nat t
回复

使用道具 举报

 楼主| 发表于 2008-10-2 15:50:56 | 显示全部楼层
第一个问题,楼上已经解决了

第二个问题,
    #show ip nat s
    #show ip nat t
还是看不到, 有没有其他方法

我用的是 YS-RouteSim  模拟器呀
回复

使用道具 举报

发表于 2008-10-2 16:21:39 | 显示全部楼层
你有在全局模式下配置ip nat吗?
在接口模式下配置ip nat inside/outside,只是为了指定接口是外部的还是内部的。
回复

使用道具 举报

 楼主| 发表于 2008-10-2 16:30:43 | 显示全部楼层
我在全局模式下配置ip nat  老是出现 ?

在这一句
router(config)#ip nat pool onlyone 202.202.202.203 202.202.202.205 netmask 255.255.0.0
?
------------------------------------------------------------------------------------------------------------------------------------------

router>en
router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#int f0/1
router(config-if)#ip nat inside
router(config-if)#exit
router(config)#int f0/0
router(config-if)#ip nat outside
router(config-if)#exit
router(config)#ip nat pool onlyone 202.202.202.203 202.202.202.205 netmask 255.255.0.0
?

router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#ip nat pool onlyone 202.202.202.203 202.202.202.205 netmask 255.255.0.0
?

router#
回复

使用道具 举报

发表于 2008-10-2 18:11:09 | 显示全部楼层
原帖由 wwwxxb40000 于 2/10/2008 16:30 发表
我在全局模式下配置ip nat  老是出现 ?

在这一句
router(config)#ip nat pool onlyone 202.202.202.203 202.202.202.205 netmask 255.255.0.0
?
----------------------------------------------------------- ...

模拟器问题吧?
我用Cisco的Packet Tracer做一下,没有问题。
回复

使用道具 举报

发表于 2008-10-2 18:29:42 | 显示全部楼层
可能没有这个命令或者命令不同
这是PT的,有
1.png
回复

使用道具 举报

发表于 2008-10-2 18:33:35 | 显示全部楼层
这是在PT配置PAT的例子,感觉比你那个模拟器要简单
!
interface FastEthernet0/0
ip address 192.168.10.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Serial0/0/0
ip address 192.168.20.1 255.255.255.0
ip nat outside
!
ip nat inside source list 10 interface Serial0/0/0 overload
ip classless
!
!
access-list 10 permit 192.168.10.0 0.0.0.255
!
回复

使用道具 举报

发表于 2008-10-2 18:41:55 | 显示全部楼层

回复 5# 的帖子

PT也有类似的命令,但是输完掩码就结束了
1.png
回复

使用道具 举报

发表于 2008-10-2 21:16:51 | 显示全部楼层
刚才把真机开了给lz看一下。。。是2611
Router#show ver
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IK9O3S3-M), Version 12.3(26), RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by cisco Systems, Inc.
Compiled Mon 17-Mar-08 15:23 by dchih

ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)

Router uptime is 1 minute
System returned to ROM by power-on
System image file is "flash:c2600-ik9o3s3-mz.123-26.bin"
......(省略)
cisco 2611 (MPC860) processor (revision 0x203) with 56320K/9216K bytes of memory.
Processor board ID JAD050601RM (2225264936)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
2 Ethernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)

Configuration register is 0x2102

Router(config)#ip nat pool
Router(config)#ip nat pool ?
  WORD  Pool name

Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 n
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 ?
  type  Specify the pool type
  <cr>

Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 ty
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 type ?
  match-host  Keep host numbers the same after translation
  rotary      Rotary address pool

Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 type mat
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 type match-host ?
  <cr>

Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 type rotary ?   
  <cr>
回复

使用道具 举报

发表于 2008-10-2 22:44:25 | 显示全部楼层

回复 10# 的帖子

学习CCNA,果然有劲
回复

使用道具 举报

发表于 2008-10-27 11:51:29 | 显示全部楼层
机修大哥真是勤快啊 ~   做pat的时候别忘了在后面加个 ocerload 哦。
回复

使用道具 举报

发表于 2008-10-27 14:14:56 | 显示全部楼层
要复用和访问控制列表。
回复

使用道具 举报

发表于 2008-10-27 14:17:02 | 显示全部楼层
在接口模式下配置ip nat inside/outside,只是为了指定接口是外部的还是内部的。 [/quote]



若只用一个E口的话,可以不设置INSIDE/OUTSIDE。
回复

使用道具 举报

发表于 2008-10-27 14:37:22 | 显示全部楼层
可是我在配置ip nat inside/outside的时候,有时还是不能正常运行,不知道是什么回事
回复

使用道具 举报

发表于 2008-10-27 14:43:59 | 显示全部楼层

回复 15# 的帖子

在模拟软件上?是用PT吗?如果是,把PKT文件打包发上来看看
回复

使用道具 举报

发表于 2008-10-28 15:02:14 | 显示全部楼层
不应该啊,路由表应该有202。202.202。202的啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | CSNA会员注册

本版积分规则

快速回复 返回顶部 返回列表