victory_99
新新人类
帖子
8
精华
0
无忧币 58
积分 12
阅读权限 20
|
发表于: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)
|
 网络虽虚拟,技术无边界,来看看大家“真面目”! |
|