Dynamic routing protocols: BGP, OSPF, RIP
U
SER
G
UIDE
218
The BGP configuration of the
router B
is similar to that one of the
router A
, while the OSPF
configuration is as follows:
set ospf router ospf router-id 10.45.15.221
set ospf network 10.45.15.192/27 area 0
set ospf default-information originate metric 40
set ospf on
where the default route is announced with metric
40
(less important than the router
A
).
On
router 0
, the default route is acquired from
router A
(
10.45.15.221
) with metric
20
:
root@IMOLA>
show ip route ospf
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route
O>* 0.0.0.0/0 [110/20] via 10.45.15.221, eth0, 00:13:31
O 10.45.15.192/27 [110/10] is directly connected, eth0, 00:13:32
O 172.20.1.219/32 [110/10] is directly connected, dummy0, 00:22:01
O 192.168.1.0/24 [110/10] is directly connected, eth1, 00:21:56
While there are two OSPF neighbor of the same area:
root@IMOLA> show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL
10.45.15.220 1 Full/DR 39.670s 10.45.15.220 eth0:10.45.15.219 0 0 0
10.45.15.221 1 Full/Backup 37.140s 10.45.15.221 eth0:10.45.15.219 0 0 0
When the connection with
router A
is interrupted, the routing table will be:
root@LIPARI>
show ip route ospf
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route
O>* 0.0.0.0/0 [110/40] via 10.45.15.220, eth0, 00:00:11
O 10.45.15.192/27 [110/10] is directly connected, eth0, 00:16:23
O 172.20.1.219/32 [110/10] is directly connected, dummy0, 00:24:52
O 192.168.1.0/24 [110/10] is directly connected, eth1, 00:24:47