Dynamic routing protocols: BGP, OSPF, RIP
U
SER
G
UIDE
215
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop Metric LocPrf Weight Path
*> 10.45.15.192/27 88.58.10.246 1
32768 ?
*> 44.44.0.0/16 88.58.10.246 0
32768 ?
*> 55.55.0.0/16 88.58.10.246 0
32768 ?
*> 172.20.1.221/32 88.58.10.246 1
32768 ?
Deleting the static routes, previously configured, you have:
set no-route net 55.55.0.0 netmask 255.255.0.0 gw 10.45.15.219
set no-route net 44.44.0.0 netmask 255.255.0.0 gw 10.45.15.219
root@IMOLA>
show ip bgp neighbor 88.58.10.245 advertised-routes
BGP table version is 0, local router ID is 172.20.1.221
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop Metric LocPrf Weight Path
*> 10.45.15.192/27 88.58.10.246 1
32768 ?
*> 172.20.1.221/32 88.58.10.246 1
32768 ?
Total number of prefixes 2
OSPF routes redistribuition with BGP
In the previous scenario we can add a new router named
0
, connected via LAN to the router
A
and
exchanging routes via OSPF protocol.
Router A
announces a default route to the
router 0
,
while router
O
announces its active LANs and
router A
redistributes them via BGP:
On router
O
, a common OSPF configuration is:
set ospf router ospf router-id 10.45.15.219
set ospf network 10.45.15.192/27 area 0
set ospf network 172.20.1.219/32 area 0
set ospf network 192.168.1.0/24 area 0
set ospf on