Show Bgp Neighbors - Cisco ASR 9000 Series Routing Configuration Manual

Aggregation services router
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Implementing BGP

show bgp neighbors

Use the show bgp neighbors command to display information about the BGP configuration for neighbors.
• Use the configuration keyword to display the effective configuration for the neighbor, including any
settings that have been inherited from session groups, neighbor groups, or address family groups used
by this neighbor.
• Use the inheritance keyword to display the session groups, neighbor groups, and address family groups
from which this neighbor is capable of inheriting configuration.
The show bgp neighbors command examples that follow are based on this sample configuration:
RP/0/RSP0/CPU0:router(config)# router bgp 142
RP/0/RSP0/CPU0:router(config-bgp)# af-group GROUP_3 address-family ipv4 unicast
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# next-hop-self
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# route-policy POLICY_1 in
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# exit
RP/0/RSP0/CPU0:router(config-bgp)# session-group GROUP_2
RP/0/RSP0/CPU0:router(config-bgp-sngrp)# advertisement-interval 15
RP/0/RSP0/CPU0:router(config-bgp-sngrp)# exit
RP/0/RSP0/CPU0:router(config-bgp)# neighbor-group GROUP_1
RP/0/RSP0/CPU0:router(config-bgp-nbrgrp)# use session-group GROUP_2
RP/0/RSP0/CPU0:router(config-bgp-nbrgrp)# ebgp-multihop 3
RP/0/RSP0/CPU0:router(config-bgp-nbrgrp)# address-family ipv4 unicast
RP/0/RSP0/CPU0:router(config-bgp-nbrgrp-af)# weight 100
RP/0/RSP0/CPU0:router(config-bgp-nbrgrp-af)# send-community-ebgp
RP/0/RSP0/CPU0:router(config-bgp-nbrgrp-af)# exit
RP/0/RSP0/CPU0:router(config-bgp-nbrgrp)# exit
RP/0/RSP0/CPU0:router(config-bgp)# neighbor 192.168.0.1
RP/0/RSP0/CPU0:router(config-bgp-nbr)# remote-as 2
RP/0/RSP0/CPU0:router(config-bgp-nbr)# use neighbor-group GROUP_1
RP/0/RSP0/CPU0:router(config-bgp-nbr)# address-family ipv4 unicast
RP/0/RSP0/CPU0:router(config-bgp-nbr-af)# use af-group GROUP_3
RP/0/RSP0/CPU0:router(config-bgp-nbr-af)# weight 200
The following example displays sample output from the show bgp neighbors command using the inheritance
keyword. The example shows that the neighbor inherits session parameters from neighbor group GROUP_1,
which in turn inherits from session group GROUP_2. The neighbor inherits IPv4 unicast parameters from
address family group GROUP_3 and IPv4 multicast parameters from neighbor group GROUP_1:
RP/0/RSP0/CPU0:router# show bgp neighbors 192.168.0.1 inheritance
Session:
IPv4 Unicast:
IPv4 Multicast: n:GROUP_1
The following example displays sample output from the show bgp neighbors command using the
configuration keyword. The example shows from where each item of configuration was inherited, or if it
was configured directly on the neighbor (indicated by [ ]). For example, the ebgp-multihop 3 command was
inherited from neighbor group GROUP_1 and the next-hop-self command was inherited from the address
family group GROUP_3:
RP/0/RSP0/CPU0:router# show bgp neighbors 192.168.0.1 configuration
neighbor 192.168.0.1
remote-as 2
advertisement-interval 15
ebgp-multihop 3
address-family ipv4 unicast
next-hop-self
route-policy POLICY_1
n:GROUP_1 s:GROUP_2
a:GROUP_3
[]
[n:GROUP_1 s:GROUP_2]
[n:GROUP_1]
[]
[a:GROUP_3]
in
[a:GROUP_3]
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
BGP Configuration
25

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents