- 论坛徽章:
- 0
|
参考ospf命令与手册实验做了好多次,一直没有成功,把路由a上的ospf再分布成rip,但只允许标记88的路由再分布
将各路由关键配置和top贴上来,希望大家能帮忙看看,谢谢
rc
interface Serial0/0
ip address 10.1.1.10 255.255.255.252
serial restart-delay 0
clock rate 64000
no fair-queue
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router rip
version 2
network 10.0.0.0
!
ip http server
实验结果
rc#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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 not set
2.0.0.0/32 is subnetted, 1 subnets
R 2.2.2.2 [120/1] via 10.1.1.9, 00:00:01, Serial0/0
156.16.0.0/27 is subnetted, 2 subnets
R 156.16.32.32 [120/1] via 10.1.1.9, 00:00:01, Serial0/0
R 156.16.32.0 [120/1] via 10.1.1.9, 00:00:01, Serial0/0
10.0.0.0/30 is subnetted, 2 subnets
C 10.1.1.8 is directly connected, Serial0/0
R 10.1.1.0 [120/1] via 10.1.1.9, 00:00:01, Serial0/0
rc# !
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
ip address 10.1.1.1 255.255.255.252
serial restart-delay 0
clock rate 64000
no fair-queue
!
interface Serial0/1
ip address 10.1.1.9 255.255.255.252
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.1.1.0 0.0.0.3 area 0
!
router rip
version 2
redistribute ospf 1 metric 1 route-map checktags
passive-interface Serial0/0
network 10.0.0.0
no auto-summary
!
ip http server
!
!
!
!
route-map checktags permit 10
match tag 88
!
!
ra#sh ip os da
OSPF Router with ID (1.1.1.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 1628 0x80000004 0x00F88C 2
156.16.32.49 156.16.32.49 1616 0x80000002 0x009DEC 2
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
2.2.2.2 156.16.32.49 1615 0x80000001 0x008119 0
156.16.32.0 156.16.32.49 1486 0x80000002 0x00415A 88
156.16.32.32 156.16.32.49 1458 0x80000002 0x00C0E8 42
ra#
ra#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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 not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O E2 2.2.2.2 [110/20] via 10.1.1.2, 00:27:25, Serial0/0
156.16.0.0/27 is subnetted, 2 subnets
O E2 156.16.32.32 [110/20] via 10.1.1.2, 00:24:49, Serial0/0
O E2 156.16.32.0 [110/20] via 10.1.1.2, 00:25:16, Serial0/0
10.0.0.0/30 is subnetted, 2 subnets
C 10.1.1.8 is directly connected, Serial0/1
C 10.1.1.0 is directly connected, Serial0/0
ra# !
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Loopback1
ip address 156.16.32.1 255.255.255.240
!
interface Loopback2
ip address 156.16.32.17 255.255.255.240
!
interface Loopback3
ip address 156.16.32.33 255.255.255.240
!
interface Loopback4
ip address 156.16.32.49 255.255.255.240
!
interface Serial0/0
no ip address
shutdown
serial restart-delay 0
no fair-queue
!
interface Serial0/1
ip address 10.1.1.2 255.255.255.252
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
summary-address 156.16.32.0 255.255.255.224 tag 88
summary-address 156.16.32.32 255.255.255.224 tag 42
redistribute connected subnets
network 10.1.1.0 0.0.0.3 area 0
!
rb#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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 not set
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
156.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
C 156.16.32.32/28 is directly connected, Loopback3
O 156.16.32.32/27 is a summary, 00:26:14, Null0
C 156.16.32.48/28 is directly connected, Loopback4
C 156.16.32.0/28 is directly connected, Loopback1
O 156.16.32.0/27 is a summary, 00:26:14, Null0
C 156.16.32.16/28 is directly connected, Loopback2
10.0.0.0/30 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/1
rb# |
|