Ospf路由重分部到rip

Ospf路由重分部到rip  Route3为自制系统路由协议ASBR,通过Route0进行路由重分布,Route0、Route1、Route2为骨干区域area0.网段划分:Route0-route1 172.16.0.0/24Route1-route2 172.16.1.0/24Route0-route2 172.16.2.0/24Route3-route0 10.0.0.0/24Route0配置:基本借口配置:Int f0/0 ip add 172.16.0.1 255.255.255.0         No shut(此命令在配置中只显示一次)Int f0/1 ip add 10.0.0.2 255.255.255.0Int f1/0 ip add 172.16.2.1 255.255.255.0Ospf配置:Conf)router ospf 100Net 172.16.0.0 0.0.0.255 area 0Net 172.16.2.0 0.0.0.255 area 0Net 10.0.0.0 0.0.0.255 area 0Route 1和Route 2配置类似,在此不再显示。接下来配置Route 3 Rip路由器:基本接口配置:Int f0/0 ip add 192.168.0.1 255.255.255.0Int f0/1 ip add 10.0.0.1 255.255.255.0重分部Ospf配置:Conf)router ospf 20Net 172.16.0.0 0.0.0.255 area 0Net 172.16.2.0 0.0.0.255 area 0Redistribute rip subents路由重分部到Rip:Conf)route ripVersion 2Net 10.0.0.0Net 192.168.0.0添加一条到ASBR路由器的默认路由:Conf)ip route 0.0.0.0 0.0.0.0 10.0.0.0.2 _______________________________配置信息:R0: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 routeGateway of last resort is not set     10.0.0.0/24 is subnetted, 1 subnetsC       10.0.0.0 is directly connected, FastEthernet0/1     172.16.0.0/24 is subnetted, 3 subnetsC       172.16.0.0 is directly connected, FastEthernet0/0O       172.16.1.0 [110/2] via 172.16.0.2, 01:17:50, FastEthernet0/0C       172.16.2.0 is directly connected, Ethernet1/0 ___________________ show ip ospf int FastEthernet0/0 is up, line protocol is up  Internet address is 172.16.0.1/24, Area 0  Process ID 100, Router ID 172.16.2.1, Network Type BROADCAST, Cost: 1  Transmit Delay is 1 sec, State DR, Priority 1  Designated Router (ID) 172.16.2.1, Interface address 172.16.0.1  Backup Designated Router (ID) 172.16.1.1, Interface address 172.16.0.2  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5    Hello due in 00:00:07  Index 1/1, flood queue length 0  Next 0x0(0)/0x0(0)  Last flood scan length is 1, maximum is 1  Last flood scan time is 0 msec, maximum is 0 msec  Neighbor Count is 1, Adjacent neighbor count is 1    Adjacent with neighbor 172.16.1.1  (Backup Designated Router)  Suppress hello for 0 neighbor(s)Ethernet1/0 is up, line protocol is up  Internet address is 172.16.2.1/24, Area 0  Process ID 100, Router ID 172.16.2.1, Network Type BROADCAST, Cost: 10  Transmit Delay is 1 sec, State DR, Priority 1  Designated Router (ID) 172.16.2.1, Interface address 172.16.2.1  Backup Designated Router (ID) 172.16.2.2, Interface address 172.16.2.2  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5    Hello due in 00:00:03  Index 2/2, flood queue length 0  Next 0x0(0)/0x0(0)  Last flood scan length is 1, maximum is 1  Last flood scan time is 0 msec, maximum is 0 msec  Neighbor Count is 1, Adjacent neighbor count is 1    Adjacent with neighbor 172.16.2.2  (Backup Designated Router)  Suppress hello for 0 neighbor(s)FastEthernet0/1 is up, line protocol is up  Internet address is 10.0.0.2/24, Area 0  Process ID 100, Router ID 172.16.2.1, Network Type BROADCAST, Cost: 1  Transmit Delay is 1 sec, State DR, Priority 1  Designated Router (ID) 172.16.2.1, Interface address 10.0.0.2  No backup designated router on this network  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5    Hello due in 00:00:03  Index 3/3, flood queue length 0  Next 0x0(0)/0x0(0)  Last flood scan length is 1, maximum is 1  Last flood scan time is 0 msec, maximum is 0 msec  Neighbor Count is 0, Adjacent neighbor count is 0  Suppress hello for 0 neighbor(s)_________________________R1:____________________Show ip routeCodes: 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 not set      10.0.0.0/24 is subnetted, 1 subnetsO       10.0.0.0 [110/2] via 172.16.0.1, 00:48:00, FastEthernet0/0     172.16.0.0/24 is subnetted, 3 subnetsC       172.16.0.0 is directly connected, FastEthernet0/0C       172.16.1.0 is directly connected, FastEthernet0/1O       172.16.2.0 [110/11] via 172.16.0.1, 01:26:34, FastEthernet0/0                   [110/11] via 172.16.1.2, 01:25:27, FastEthernet0/1 ____________________show ip ospf intFastEthernet0/0 is up, line protocol is up  Internet address is 172.16.0.2/24, Area 0  Process ID 200, Router ID 172.16.1.1, Network Type BROADCAST, Cost: 1  Transmit Delay is 1 sec, State BDR, Priority 1  Designated Router (ID) 172.16.2.1, Interface address 172.16.0.1  Backup Designated Router (ID) 172.16.1.1, Interface address 172.16.0.2  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5    Hello due in 00:00:04  Index 1/1, flood queue length 0  Next 0x0(0)/0x0(0)  Last flood scan length is 1, maximum is 1  Last flood scan time is 0 msec, maximum is 0 msec  Neighbor Count is 1, Adjacent neighbor count is 1    Adjacent with neighbor 172.16.2.1  (Designated Router)  Suppress hello for 0 neighbor(s)FastEthernet0/1 is up, line protocol is up  Internet address is 172.16.1.1/24, Area 0  Process ID 200, Router ID 172.16.1.1, Network Type BROADCAST, Cost: 1  Transmit Delay is 1 sec, State DR, Priority 1  Designated Router (ID) 172.16.1.1, Interface address 172.16.1.1  Backup Designated Router (ID) 172.16.2.2, Interface address 172.16.1.2  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5    Hello due in 00:00:04  Index 2/2, flood queue length 0  Next 0x0(0)/0x0(0)  Last flood scan length is 1, maximum is 1  Last flood scan time is 0 msec, maximum is 0 msec  Neighbor Count is 1, Adjacent neighbor count is 1    Adjacent with neighbor 172.16.2.2  (Backup Designated Router)  Suppress hello for 0 neighbor(s) _________________________R3:__________________show ip route     10.0.0.0/24 is subnetted, 1 subnetsC       10.0.0.0 is directly connected, FastEthernet0/1S*   0.0.0.0/0 [1/0] via 10.0.0.2 _______________show ip ospfRouting Process "ospf 20" with ID 192.168.0.1 Supports only single TOS(TOS0) routes Supports opaque LSA It is an area border router SPF schedule delay 5 secs, Hold time between two SPFs 10 secs Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs Number of external LSA 2. Checksum Sum 0x013118 Number of opaque AS LSA 0. Checksum Sum 0x000000 Number of DCbitless external and opaque AS LSA 0 Number of DoNotAge external and opaque AS LSA 0 Number of areas in this router is 2. 2 normal 0 stub 0 nssa External flood list length 0    Area BACKBONE(0) (Inactive)        Number of interfaces in this area is 0        Area has no authentication        SPF algorithm executed 2 times        Area ranges are        Number of LSA 1. Checksum Sum 0x00feff        Number of opaque link LSA 0. Checksum Sum 0x000000        Number of DCbitless LSA 0        Number of indication LSA 0        Number of DoNotAge LSA 0        Flood list length 0 

推荐阅读