TTEP.CN > 手机 >

Ospf路由重分部到rip

Ospf路由重分部到rip



Route3为自制系统路由协议ASBR,通过Route0进行路由重分布,Route0、Route1、Route2为骨干区域area0.
网段划分:
Route0-route1 172.16.0.0/24
Route1-route2 172.16.1.0/24
Route0-route2 172.16.2.0/24
Route3-route0 10.0.0.0/24
Route0配置:
基本借口配置:
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.0
Int f1/0 ip add 172.16.2.1 255.255.255.0
Ospf配置:
Conf)router ospf 100
Net 172.16.0.0 0.0.0.255 area 0
Net 172.16.2.0 0.0.0.255 area 0
Net 10.0.0.0 0.0.0.255 area 0
Route 1和Route 2配置类似,在此不再显示。
接下来配置Route 3 Rip路由器:
基本接口配置:
Int f0/0 ip add 192.168.0.1 255.255.255.0
Int f0/1 ip add 10.0.0.1 255.255.255.0
重分部Ospf配置:
Conf)router ospf 20
Net 172.16.0.0 0.0.0.255 area 0
Net 172.16.2.0 0.0.0.255 area 0
Redistribute rip subents
路由重分部到Rip:
Conf)route rip
Version 2
Net 10.0.0.0
Net 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 route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, FastEthernet0/1
172.16.0.0/24 is subnetted, 3 subnets
C 172.16.0.0 is directly connected, FastEthernet0/0
O 172.16.1.0 [110/2] via 172.16.0.2, 01:17:50, FastEthernet0/0
C 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 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 not set

10.0.0.0/24 is subnetted, 1 subnets
O 10.0.0.0 [110/2] via 172.16.0.1, 00:48:00, FastEthernet0/0
最近发表
赞助商链接