Use the show bgp neighbors command to view inherited configuration details for BGP neighbors. This table summarizes primary keywords, and their functions:
Command options
You can specify one of these keywords to refine the command output.
| Keyword |
Description |
| configuration |
Displays the effective configuration for a BGP neighbor, including any inherited settings from session groups, neighbor groups, or address family groups. |
| inheritance |
Shows the session groups, neighbor groups, or address family groups from which a neighbor can inherit configuration properties. |
Sample BGP neighbor configuration
Router(config)# router bgp 142
Router(config-bgp)# af-group GROUP_3 address-family ipv4 unicast
Router(config-bgp-afgrp)# next-hop-self
Router(config-bgp-afgrp)# route-policy POLICY_1 in
Router(config-bgp-afgrp)# exit
Router(config-bgp)# session-group GROUP_2
Router(config-bgp-sngrp)# advertisement-interval 15
Router(config-bgp-sngrp)# exit
Router(config-bgp)# neighbor-group GROUP_1
Router(config-bgp-nbrgrp)# use session-group GROUP_2
Router(config-bgp-nbrgrp)# ebgp-multihop 3
Router(config-bgp-nbrgrp)# address-family ipv4 unicast
Router(config-bgp-nbrgrp-af)# weight 100
Router(config-bgp-nbrgrp-af)# send-community-ebgp
Router(config-bgp-nbrgrp-af)# exit
Router(config-bgp-nbrgrp)# exit
Router(config-bgp)# neighbor 192.16.0.1
Router(config-bgp-nbr)# remote-as 2
Router(config-bgp-nbr)# use neighbor-group GROUP_1
Router(config-bgp-nbr)# address-family ipv4 unicast
Router(config-bgp-nbr-af)# use af-group GROUP_3
Router(config-bgp-nbr-af)# weight 200
Command usage details
These commands allow you to view BGP neighbor configuration and inheritance details:
-
show bgp neighbors configuration : Displays the active configuration for the specified neighbor, including inherited settings.
-
show bgp neighbors inheritance : Shows which groups or templates provide inherited settings for the specified neighbor.