文本版|topic 高级搜索
   名人堂 帮助 论坛制度 意见反馈 | 首页 博客 周新贴 专题 求职 读书
RSS 底部
 
社区导航: 专家门诊   网络技术   操作系统   数据库   程序设计   系统应用   考试认证   CIO及信息化   站长交流   综合交流   下载基地  51CTO产品服务 设为首页 | 收藏本站
51CTO技术论坛» 思科技术 » 大家帮忙呀,路由器不知道哪里设置错了       [ 打印]  [ 订阅]  [ 收藏]  [ 推荐给朋友]   [ 本帖文本页]

论坛跳转:
     
标题: [求助] 大家帮忙呀,路由器不知道哪里设置错了  ( 查看:295  回复:10 )   
 
victory_99
新新人类  点击可查看详细



帖子 8
精华 0
无忧币 58
积分 12
阅读权限 20
注册日期 2007-12-19
最后登录 2008-1-14 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-19 22:32   标题:大家帮忙呀,路由器不知道哪里设置错了
上一帖 |
请教,我的思科路由器里面ping上一级路由及外网都没有问题,路由器无法ping通其下的主机,路由器下dhcp分配的主机无法ping通外网
说明一下,我的路由器是挂在192.168.1.1的路由器下面实验

Router#show interface                     
Ethernet0 is up, line protocol is up                                    
  Hardware is PQUICC Ethernet, address is 0004.dc0c.b516 (bia 0004.dc0c.b516)                                                                             
  Internet address is 192.168.2.7/24                                    
  MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,                                               
     reliability 255/255, txload 1/255, rxload 1/255                                                   
  Encapsulation ARPA, loopback not set                                      
  Keepalive set (10 sec)                        
  Half-duplex, 10BaseT                     
  ARP type: ARPA, ARP Timeout 04:00:00                                      
  Last input 00:00:20, output 00:00:00, output hang never                                                         
  Last clearing of "show interface" counters never                                                  
  Input queue: 0/75/6/0 (size/max/drops/flushes); Total output drops: 0                                                                       
  Queueing strategy: fifo                        
  Output queue :0/40 (size/max)                              
  5 minute input rate 0 bits/sec, 0 packets/sec                                               
  5 minute output rate 0 bits/sec, 0 packets/sec                                                
     326052 packets input, 42388103 bytes, 0 no buffer                                                      
     Received 6492 broadcasts, 0 runts, 0 giants, 0 throttles                                                            
     20 input errors, 0 CRC, 0 frame, 0 overrun, 20 ignored                                                           
     0 input packets with dribble condition detected                                                   
     12621 packets output, 1302181 bytes, 0 underruns                                                     
     62 output errors, 94 collisions, 1 interface resets                                                        
     0 babbles, 0 late collision, 0 deferred                                            
     20 lost carrier, 0 no carrier                                 
     0 output buffer failures, 0 output buffers swapped out                                                           
FastEthernet0 is up, line protocol i                                 
  Hardware is PQUICC_FEC, address is 0009.f84d.2498 (bia 0009.f84d.2498)                                                                        
  Internet address is 192.168.1.71/24                                    
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,                                               
     reliability 255/255, txload 1/255, rxload 1/255                                                   
  Encapsulation ARPA, loopback not set                                      
  Keepalive set (10 sec)                        
  Full-duplex, 100Mb/s, 100BaseTX/FX                                    
  ARP type: ARPA, ARP Timeout 04:00:00                                      
  Last input 00:00:22, output 00:00:02, output hang never                                                         
  Last clearing of "show interface" counters never                                                  
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total                                                        
  Queueing strategy: fifo                        
  Output queue :0/40 (size/max)                              
  5 minute input rate 0 bits/sec, 0 packets/sec                                               
  5 minute output rate 0 bits/sec, 0 packets/sec                                                
     8808 packets input, 1086958 bytes                                      
     Received 6293 broadcasts, 0 runts, 0 giants, 0 throttles                                                            
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored                                                         
     0 watchdog               
     0 input packets with dribble condition detected                                                   
     289686 packets output, 38870550 bytes, 0 underruns                                                      
     2 output errors, 0 collisions, 2 interface resets                                                      
     0 babbles, 0 late c                     
     2 lost carrier, 0 no carrier                                 
     0 output buffer failures, 0 output buffers swapped out                                                           
Serial0 is down, line protocol is down                                      
  Hardware is PowerQUICC Serial                              
  Internet address is 192.168.3.1/24                                    
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,                                               
     reliability 255/255, txload 1/255, rxload 1/255                                                   
  Encapsulation HDLC, loopback not set                                      
  Keepalive set (10 sec)                        
  Last input never, output never, output hang never                                                   
  Last clearing of "show interface" counters never                                                  
  Input queue: 0/75/0/0 (size/max/drops/flushes)                                             
  Queueing strategy: fifo                        
  Output queue :0/40 (size/max)                              
  5 minute input rate 0 bits/sec, 0 packets/sec                                               
  5 minute output rate 0 bits/sec, 0 packets/sec                                                
     0 packets input, 0 bytes, 0 no buffer                                          
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles                                                         
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort                                                                  
     0 packets output, 0 bytes, 0 underruns                                          
     0 output errors, 0 collisions, 2 interface resets                                                      
     0 output buffer failures, 0 output buffers swapped out                                                           
     0 carrier transitions                          
     DCD=up  DSR=up  DTR=down  RTS=down  CTS=up                                               
以下是show ip route的结果Router#show ip route                    
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP                                                                        
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area                                                                     
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2                                                                     
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP                                                                    
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area                                                                              
       * - candidate default, U - per-user static route, o - ODR                                                               
       P - periodic downloaded static route                                          
Gateway of last resort is 192.168.1.1 to network 0.0.0.0                                                        
C    192.168.1.0/24 is directly connected, FastEthernet0                                                        
C    192.168.2.0/24 is directly connected, Ethernet0                                                   
S*   0.0.0.0/0 [1/0] via 192.168.1.1   
以下是show run的结果Router#show run               
Building configuration...                        
Current configuration : 745 bytes                                 
!
version 12.2            
service timestamps debug uptime                              
service timestamps log uptime                             
no service password-encryption                              
!
hostname Router               
!
enable secret 5 $1$./uY$IaudBhOSYvGopWjlb1.C7.                                             
!
ip subnet-zero              
ip name-server 202.106.0.20                           
!
ip dhcp pool global                  
   network 192.168.2.0 255.255.255.0                                    
   dns-server 202.106.0.20                          
   default-router 192.168.2.7                             
   lease 30           
!
!
!
!
!
interface Ethernet0                  
ip address 192.168.2.7 255.255.255.0                                    
half-duple         
!
interface FastEthernet0                       
ip address 192.168.1.71 255.255.255.0                                      
speed auto           
!
interface Serial0                 
ip address 192.168.3.1 255.255.255.0                                    
no fair-queue              
!
ip classless            
ip route 0.0.0.0 0.0.0.0 192.168.1.1                                    
ip http server              
!
!
access-list 20 permit any                        
!
line con 0         
line aux 0         
line vty 0 4            
password cisco               
login      
!
end               
ip route
Router#show ip route                    
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP                                                                        
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area                                                                     
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2                                                                     
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP                                                                    
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area                                                                              
       * - candidate default, U - per-user static route, o - ODR                                                               
       P - periodic downloaded static route                                          
Gateway of last resort is 192.168.1.1 to network 0.0.0.0                                                        
C    192.168.1.0/24 is directly connected, FastEthernet0                                                        
C    192.168.2.0/24 is directly connected, Ethernet0                                                   
S*   0.0.0.0/0 [1/0]   

另外,附ping的结果
               
Router#ping 192.168.1.1                       
Type escape sequence to abort.                              
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:                                                                    
!!!!!     
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms                                                                    
Router#ping 211.23.57.108                        
Type escape sequence to abort.                              
Sending 5, 100-byte ICMP Echos to 211.23.57.108, timeout is 2 seconds:                                                                     
!!!!!     
Success rate is 100 percent (5/5), round-trip min/avg/max = 124/126/128 ms                  Router#ping www.163.com
Translating "www.163.com"...domain server (202.106.0.20) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 220.181.28.51, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/6/8 ms                                                        
Router#ping 192.168.2.3(我的电脑主机为双网卡,ip地址分别为 192.168.1.71和192.168.2.3)                       
Type escape sequence to abort.                              
Sending 5, 100-byte ICMP Echos to 192.168.2.3, timeout is 2 seconds:
Success rate is 0 percent (0/5)
Router#ping 192.168.2.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
Router#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)



网络虽虚拟,技术无边界,来看看大家“真面目”!
2007-12-19 22:321楼
[ 顶部 ]
 
qq674258
技术员  点击可查看详细


帖子 249
精华 0
无忧币 309
积分 326
阅读权限 30
来自 (保密)
注册日期 2007-4-2
最后登录 2008-4-28 离线

[查看资料]  [发短消息]  [Blog
[个人主页]    QQ       
发表于:2007-12-20 01:29 
比编程还头疼!!!!!



【每日必读】头条新闻大扫荡
2007-12-20 01:292楼
[ 顶部 ]
 
jimboychen
新新人类  点击可查看详细



帖子 67
精华 0
无忧币 75
积分 74
阅读权限 20
注册日期 2007-4-10
最后登录 2008-9-6 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-20 10:43 
帮顶!!!!!!!!!!!!!!!



网络虽虚拟,技术无边界,来看看大家“真面目”!
2007-12-20 10:433楼
[ 顶部 ]
 
jayly
新新人类  点击可查看详细



帖子 133
精华 0
无忧币 954
积分 150
阅读权限 20
注册日期 2007-1-22
最后登录 2008-9-7 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-20 12:08 
如果可以。你把你的拓扑发上来
这样方便分析



【专家门诊】Linux网络管理实战解疑
2007-12-20 12:084楼
[ 顶部 ]
 
夕阳流水
副版主  点击可查看详细


帖子 1257
精华 1
无忧币 2636
积分 1351
阅读权限 140
来自 (保密)
注册日期 2007-3-21
最后登录 2008-9-6 离线

[查看资料]  [发短消息]  [Blog
[个人主页]    QQ       
发表于:2007-12-20 12:53 
你的电脑确定是路由器给你分的地址?
你主机ping的时候指定下源试试



QQ191820815提供远程技术协助
2007-12-20 12:535楼
[ 顶部 ]
 
victory_99
新新人类  点击可查看详细



帖子 8
精华 0
无忧币 58
积分 12
阅读权限 20
注册日期 2007-12-19
最后登录 2008-1-14 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-21 16:44 
能确定是路由器分配的
用ipconfig /all查看的。没错
如果用主机trace外面,也是到路由器就断了

主机目前的情况就是不能出路由器



网络虽虚拟,技术无边界,来看看大家“真面目”!
2007-12-21 16:446楼
[ 顶部 ]
 
cavisguo
新新人类  点击可查看详细



帖子 54
精华 0
无忧币 47
积分 58
阅读权限 20
注册日期 2007-9-7
最后登录 2008-8-29 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-21 17:34 
是不是2 网段没有到1 网段的路由啊



网络虽虚拟,技术无边界,来看看大家“真面目”!
2007-12-21 17:347楼
[ 顶部 ]
 
wingking84
高级工程师  点击可查看详细


十二生肖之鼠   天秤座   行业勋章   技术勋章   诚信兄弟  
帖子 2467
精华 15
无忧币 8576
积分 11432
阅读权限 70
来自 (保密)
注册日期 2005-12-24
最后登录 2008-7-16 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-21 22:23 
需要拓扑图才好分析..



网络虽虚拟,技术无边界,来看看大家“真面目”!
2007-12-21 22:238楼
[ 顶部 ]
 
victory_99
新新人类  点击可查看详细



帖子 8
精华 0
无忧币 58
积分 12
阅读权限 20
注册日期 2007-12-19
最后登录 2008-1-14 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-22 09:02 
上面所有的设备都连接在一个hub上。
上面是草图,因为手头没有visio,只能用word的画了一个
不知道是否画明白了。

另外,*作的时候曾经反复测试关闭网卡,没有效果,所以应该不是冲突造成的

[ 本帖最后由 victory_99 于 2007-12-22 09:04 编辑 ]



网络虽虚拟,技术无边界,来看看大家“真面目”!
2007-12-22 09:029楼
[ 顶部 ]
 
victory_99
新新人类  点击可查看详细



帖子 8
精华 0
无忧币 58
积分 12
阅读权限 20
注册日期 2007-12-19
最后登录 2008-1-14 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-22 10:06 
不能ping通主机的原因找到了,我用的xp主机
防火墙搞的鬼

可还是不能通过路由器
是不是我需要指定接口路由呢?如果是的话我又应该怎么设置呢?
谢谢大家

[ 本帖最后由 victory_99 于 2007-12-22 11:38 编辑 ]



网络虽虚拟,技术无边界,来看看大家“真面目”!
2007-12-22 10:0610楼
[ 顶部 ]
 
victory_99
新新人类  点击可查看详细



帖子 8
精华 0
无忧币 58
积分 12
阅读权限 20
注册日期 2007-12-19
最后登录 2008-1-14 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-22 12:58 
全部解决了
哈哈
网路上找的
我的配置文件:


  !
  !
  !
  interface FastEthernet0/0     --------------------假设该端口为I 1接入端口
  ip addre 192.168.1.71 255.255.255.0     --------分配地址
  ip nat outside                --------指定为NAT Outside端口
  
  !
  interface Ethernet1/0       --------------------假设该端口为内部网络端口
  ip addre 192.168.2.7 255.255.0.0    --------分配地址
  ip nat i ide                --------指定为NAT I ide端口
  ip policy route-map t0     --------在该端口上使用route-map t0进行策略控制
  half-duplex
  !
  ip nat i ide source list 1 interface FastEthernet0/0 overload  ------Nat转换
  
 
 
  ip route 0.0.0.0 0.0.0.0 192.168.1.1    ------静态路由,对Internet的访问通过192.168.1.1链路
  
  
  
  ip http server
  !
  accss-list 1 permit 192.168.2.0 0.0.255.255 ----访问控制列表1,用于过滤原地址,允许192.168.2.0网段主机流量通过
  

  
  route-map t0 permit 10           ----定义route-map t0,permit序列为10
  match ip addre 1   
  
         ----检查原地址,允许192.168.2.0网段地址
  set interface FastEthernet 1        ----指定出口为Fastethetnet 0/0
  !
  
  !
  end
  

[ 本帖最后由 victory_99 于 2007-12-23 01:51 编辑 ]



网络虽虚拟,技术无边界,来看看大家“真面目”!
2007-12-22 12:5811楼
[ 顶部 ]
     
论坛跳转:  

| | |

| | |

| | |

标记已读 · 删除论坛Cookies · 文本版 · WAP
 
| 诚征版主 | 版主堂 | 意见建议 | 大史记 | 论坛地图
Copyright©2005-2008 51CTO.COM  Powered by Discuz!
本论坛言论纯属发布者个人意见,不代表51CTO网站立场!如有疑义,请与管理员联系。
京ICP备05051492号