Dynamic routing protocols: BGP, OSPF, RIP
U
SER
G
UIDE
208
set no-bgp
The route acquisition between the two systems can be verified by:
show ip route bgp
More commands are available to check the router work, like:
show ip bgp neighbor
show ip bgp summary
show ip bgp neighbor X.Y.Z.T advertised-routes
show ip bgp neighbor X.Y.Z.T received-routes
For example:
set bgp neighbor 172.151.2.5 override-capability
You can enable the debug function using:
debug bgp <option>
C
ONFIGURATION EXAMPLES
Let‟ss consider the following scenario, without losing generality: there are two routers,
A
and
PE
,
connected to a WAN network. The router called
A
is configured with following IP address:
loopback
:
172.20.1.221
LAN
:
10.45.15.192/27
The following examples show some common BGP configurations and some interactions with OSPF
protocol also.
BGP protocol
With the following configuration, the
A
router can announce, using BGP protocol, its LAN and
loopback address:
set bgp local-as 65201
set bgp remote-as 3269
set bgp network 172.20.1.221/32
set bgp network 10.45.15.192/27
set bgp neighbor 88.58.10.245 remote-as 3269
set bgp on
The command
show ip bgp neighbor
shows the status of the connection with the neighbor
router. If no session is active, the result is: