我所做的:
A. 正常的示踪剂。
一切都在 / no shutdown,我tracert从PC0| 192.168.1.2到PC1| 172.16.1.2:
C:\>tracert 172.16.1.2
Tracing route to 172.16.1.2 over a maximum of 30 hops:
1 0 ms 0 ms 0 ms 192.168.1.1
2 0 ms 0 ms 0 ms 10.10.10.2
3 1 ms 1 ms 0 ms 172.16.1.2
Trace complete.
没关系。
B.关机g0/0的router0,和做tracert。
关机界面g0/0:
router0>en
router0#conf t
Enter configuration commands, one per line. End with CNTL/Z.
router0(config)#int g0/0
router0(config-if)#shut
router0(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down
02:40:32: %OSPF-5-ADJCHG: Process 10, Nbr 172.16.1.1 on GigabitEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
router0(config-if)#
tracert来自PC0| 192.168.1.2到PC1| 172.16.1.2:
C:\>tracert 172.16.1.2
Tracing route to 172.16.1.2 over a maximum of 30 hops:
1 0 ms 0 ms 0 ms 192.168.1.1
2 0 ms * 0 ms 192.168.1.1
3 * 0 ms * Request timed out.
4 0 ms * 0 ms 192.168.1.1
5 * 3 ms * Request timed out.
6 0 ms * 0 ms 192.168.1.1
7 * 0 ms * Request timed out.
8 0 ms * 0 ms 192.168.1.1
9 * 0 ms * Request timed out.
10 0 ms * 0 ms 192.168.1.1
Control-C
^C
无论我等多久,它都失败了。
C.开启g0/0在router0再次做tracert。
打开g0/0:
router0(config-if)#no shut
router0(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
router0(config-if)#
tracert来自PC0| 192.168.1.2到PC1| 172.16.1.2:
C:\>tracert 172.16.1.2
Tracing route to 172.16.1.2 over a maximum of 30 hops:
1 1 ms 0 ms 0 ms 192.168.1.1
2 1 ms 0 ms 32 ms 10.10.11.2
3 1 ms 1 ms 3 ms 10.10.12.1
4 2 ms 1 ms 1 ms 172.16.1.2
Trace complete.
它最终将路由更改为10.10.11.2和10.10.12.1
一段时间后router0出现文本:
02:53:30: %OSPF-5-ADJCHG: Process 10, Nbr 172.16.1.1 on GigabitEthernet0/0 from LOADING to FULL, Loading Done
所以当我tracert再次这样做时,它又回到了原来的路线:
C:\>tracert 172.16.1.2
Tracing route to 172.16.1.2 over a maximum of 30 hops:
1 8 ms 0 ms 0 ms 192.168.1.1
2 1 ms 0 ms 1 ms 10.10.10.2
3 0 ms 0 ms 13 ms 172.16.1.2
Trace complete.
应该是正常的吧?
当in状态为时,我如何制作PC0can ping/ tracertto ?PC1g0/0router0shutdown
编辑:
如果您需要查看配置和 pkt 文件
router0 配置:
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname router0
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX15244356
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 10.10.10.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.10.11.1 255.255.255.0
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 10
log-adjacency-changes
network 10.10.10.0 0.0.0.255 area 0
network 10.10.11.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
!
router ospf 1
log-adjacency-changes
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
router1 配置:
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname router1
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX15243RGR
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 10.10.10.2 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/0/1
ip address 10.10.12.1 255.255.255.0
clock rate 64000
!
interface Vlan1
no ip address
shutdown
!
router ospf 10
log-adjacency-changes
network 10.10.12.0 0.0.0.255 area 0
network 10.10.10.0 0.0.0.255 area 0
network 172.16.1.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
router2 配置:
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname router2
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX15249JA2
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 10.10.11.2 255.255.255.0
clock rate 64000
!
interface Serial0/0/1
ip address 10.10.12.2 255.255.255.0
!
interface Vlan1
no ip address
shutdown
!
router ospf 10
log-adjacency-changes
network 10.10.12.0 0.0.0.255 area 0
network 10.10.11.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
