R1配置如下: interface Serial1/0
ip address 10.1.2.2 255.255.255.0
no ip directed-broadcast
ip ospf network point-to-point
! interface Serial1/1
no ip address
no ip directed-broadcast
shutdown
! interface Ethernet0/0
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast
ip ospf priority 0
ip ospf network point-to-point
! interface Ethernet0/1
no ip address
no ip directed-broadcast
shutdown
! router ospf 10
network 10.1.2.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
!
!
! ip classless no ip http server R1路由表如图: Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
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, * - candidate default
U - per-user static route
Gateway of last resort is not set C
192.168.1.0 is directly connected, Ethernet0/0
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.2.0 is directly connected, Serial1/0 O
10.2.3.0 [110/64] via 10.2.3.1, 00:51:10, Serial1/0 R2配置如下: interface Serial1/0
ip address 10.1.2.1 255.255.255.0
no ip directed-broadcast
ip ospf network point-to-point
! interface Serial1/1
ip address 10.2.3.1 255.255.255.0
no ip directed-broadcast
ip ospf network point-to-point
! interface Ethernet0/0
no ip address
no ip directed-broadcast
shutdown
! interface Ethernet0/1
no ip address
no ip directed-broadcast
shutdown
! router ospf 10
network 10.1.2.0 0.0.0.255 area 0
network 10.2.3.0 0.0.0.255 area 0
! !
!
ip classless no ip http server R2路由表: Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.2.0 is directly connected, Serial1/0 C
10.2.3.0 is directly connected, Serial1/1 O
192.168.1.0 [110/64] via 192.168.1.1, 00:52:52, Serial1/0 O
192.168.3.0 [110/64] via 192.168.3.1, 00:47:52, Serial1/1 R3配置如下: interface Serial1/0
no ip address
no ip directed-broadcast
shutdown
! interface Serial1/1
ip address 10.2.3.2 255.255.255.0
no ip directed-broadcast
ip ospf network point-to-point
! interface Ethernet0/0
ip address 192.168.3.1 255.255.255.0
no ip directed-broadcast
ip ospf priority 0
ip ospf network point-to-point
! interface Ethernet0/1
no ip address
no ip directed-broadcast
shutdown
! router ospf 10
network 10.2.3.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0
!
!
! ip classless no ip http server R3路由表: Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
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, * - candidate default
U - per-user static route
Gateway of last resort is not set C
192.168.3.0 is directly connected, Ethernet0/0
10.0.0.0/24 is subnetted, 2 subnets
C
10.2.3.0 is directly connected, Serial1/1 O
10.1.2.0 [110/64] via 10.2.3.1, 00:55:17, Serial1/1 问题R1、R3路由表中没有pc机所在网段,但是R2路由表中却有其路由表项。(即R1和R3向R2发送路由表但是R2没有向R1和R3发送其路由表)请问该如何配置。 |