BGP Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

Viewing inherited configurations

Want to summarize with AI?

Log in

Overview

Guides users through methods to view inherited BGP configurations, including examining neighbor inheritance, address family group inheritance, session group inheritance, and neighbor group inheritance for comprehensive monitoring.

After applying configuration templates, it's important to verify which settings are active and inherited, using dedicated show commands such as show bgp neighbors configuration, show bgp af-group, and others. These sections provide sample outputs and tips for interpreting results.


Viewing BGP neighbor inheritance

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.


Viewing BGP address family group inheritance

Use the show bgp af-group command to view details about BGP address family groups, including details about configuration inheritance, the sources of inherited settings, and related entities that share configuration.

Command options

You can specify one of these keywords to refine the command output.

Keywords Description
configuration Displays the effective configuration for the address family group, including parameters inherited from other groups.
inheritance Shows the address family groups from which the current group inherits configuration settings.
users Lists the neighbors, neighbor groups, and address family groups that inherit configuration from the specified address family group.

Sample BGP address family groups configuration


  Router(config)# router bgp 140
  Router(config-bgp)# af-group GROUP_3 address-family ipv4 unicast
  Router(config-bgp-afgrp)# remove-private-as
  Router(config-bgp-afgrp)# route-policy POLICY_1 in
  Router(config-bgp-afgrp)# exit
  Router(config-bgp)# af-group GROUP_1 address-family ipv4 unicast
  Router(config-bgp-afgrp)# use af-group GROUP_2
  Router(config-bgp-afgrp)# maximum-prefix 2500 75 warning-only
  Router(config-bgp-afgrp)# default-originate
  Router(config-bgp-afgrp)# exit
  Router(config-bgp)# af-group GROUP_2 address-family ipv4 unicast
  Router(config-bgp-afgrp)# use af-group GROUP_3
  Router(config-bgp-afgrp)# send-community-ebgp
  Router(config-bgp-afgrp)# send-extended-community-ebgp
  Router(config-bgp-afgrp)# capability orf prefix both
      

Example command outputs

  • configuration keyword:

    
      Router# show bgp af-group GROUP_1 configuration 
      
      af-group GROUP_1 address-family ipv4 unicast
        capability orf prefix-list both           [a:GROUP_2]
        default-originate                         []
        maximum-prefix 2500 75 warning-only       []
        route-policy POLICY_1 in                  [a:GROUP_2 a:GROUP_3]
        remove-private-AS                         [a:GROUP_2 a:GROUP_3]
        send-community-ebgp                       [a:GROUP_2]
        send-extended-community-ebgp              [a:GROUP_2]
      
      

    This example shows the source of each configuration item. The default-originate command was configured directly on this address family group, as indicated by the brackets [ ]. The remove-private-as command was inherited from address family group GROUP_2, which itself inherited the setting from address family group GROUP_3.

  • users keyword:

    
      Router# show bgp af-group GROUP_2 users
      
      IPv4 Unicast: a:GROUP_1
      
      
  • inheritance keyword:

    
      Router# show bgp af-group GROUP_1 inheritance 
      
      IPv4 Unicast: a:GROUP_2 a:GROUP_3
      

    This example shows that the address family group GROUP_1 inherits settings directly from GROUP_2, which in turn inherits from GROUP_3.


Viewing BGP session group inheritance

Use the show bgp session-group command with the inheritance keyword to view how BGP session groups inherit configuration.

Command options

You can specify one of these keywords to refine the command output.

Keywords Description
configuration Displays the effective configuration for a session group, including inherited settings.
inheritance Shows the session groups from which a given session group inherits configuration.
users Lists the session groups, neighbor groups, and neighbors that inherit configuration from a specified session group.

Sample BGP session group configuration


  Router(config)# router bgp 113
  Router(config-bgp)# session-group GROUP_1
  Router(config-bgp-sngrp)# use session-group GROUP_2
  Router(config-bgp-sngrp)# update-source Loopback 0
  Router(config-bgp-sngrp)# exit
  Router(config-bgp)# session-group GROUP_2
  Router(config-bgp-sngrp)# use session-group GROUP_3
  Router(config-bgp-sngrp)# ebgp-multihop 2
  Router(config-bgp-sngrp)# exit
  Router(config-bgp)# session-group GROUP_3
  Router(config-bgp-sngrp)# dmz-link-bandwidth
  

Example command outputs

  • configuration keyword:

    
      Router# show bgp session-group GROUP_1 configuration 
      
      session-group GROUP_1
       ebgp-multihop 2         [s:GROUP_2]
       update-source Loopback0 []
       dmz-link-bandwidth      [s:GROUP_2 s:GROUP_3]
      
  • users keyword:

    
      Router# show bgp session-group GROUP_3 users 
      
      Session: s:GROUP_1 s:GROUP_2
      

    This example shows that both the GROUP_1 and GROUP_2 session groups inherit session parameters from the GROUP_3 session group.

  • inheritance keyword:

    
      Router# show bgp session-group GROUP_1 inheritance 
      
      Session: s:GROUP_2 s:GROUP_3
      

    This example shows that the session group GROUP_1 inherits session parameters from the GROUP_3 and GROUP_2 session groups.


Viewing BGP neighbor group inheritance

Use the show bgp neighbor-group command to display detailed information about BGP neighbor group configurations, including inheritance and user relationships.

Command options

You can specify one of these keywords to refine the command output.

Keywords Description
configuration Displays the effective configuration for the neighbor group, including settings inherited from other groups.
inheritance Displays the sources of configuration inheritance (address family groups, session groups, and neighbor groups) for the specified neighbor group.
users Lists the neighbors and neighbor groups that inherit configuration from the specified neighbor group.

Sample BGP neighbor group configuration


  Router(config)# router bgp 140
  Router(config-bgp)# af-group GROUP_3 address-family ipv4 unicast
  Router(config-bgp-afgrp)# remove-private-as
  Router(config-bgp-afgrp)# soft-reconfiguration inbound
  Router(config-bgp-afgrp)# exit
  Router(config-bgp)# af-group GROUP_2 address-family ipv4 unicast
  Router(config-bgp-afgrp)# use af-group GROUP_3
  Router(config-bgp-afgrp)# send-community-ebgp
  Router(config-bgp-afgrp)# send-extended-community-ebgp
  Router(config-bgp-afgrp)# capability orf prefix both
  Router(config-bgp-afgrp)# exit
  Router(config-bgp)# session-group GROUP_3
  Router(config-bgp-sngrp)# timers 30 90
  Router(config-bgp-sngrp)# exit
  Router(config-bgp)# neighbor-group GROUP_1
  Router(config-bgp-nbrgrp)# remote-as 1982
  Router(config-bgp-nbrgrp)# use neighbor-group GROUP_2
  Router(config-bgp-nbrgrp)# address-family ipv4 unicast
  Router(config-bgp-nbrgrp-af)# exit
  Router(config-nbrgrp)# exit
  Router(config-bgp)# neighbor-group GROUP_2
  Router(config-bgp-nbrgrp)# use session-group GROUP_3
  Router(config-bgp-nbrgrp)# address-family ipv4 unicast
  Routerconfig-bgp-nbrgrp-af)# use af-group GROUP_2
  Router(config-bgp-nbrgrp-af)# weight 100
   

Example command outputs

  • configuration keyword:

    
      Router# show bgp neighbor-group GROUP_1 configuration 
      
         neighbor-group GROUP_1
          remote-as 1982                   []
          timers 30 90                     [n:GROUP_2 s:GROUP_3]
          address-family ipv4 unicast      []
           capability orf prefix-list both [n:GROUP_2 a:GROUP_2]
           remove-private-AS               [n:GROUP_2 a:GROUP_2 a:GROUP_3]
           send-community-ebgp             [n:GROUP_2 a:GROUP_2]
           send-extended-community-ebgp    [n:GROUP_2 a:GROUP_2]
           soft-reconfiguration inbound    [n:GROUP_2 a:GROUP_2 a:GROUP_3]
           weight 100                      [n:GROUP_2]
      
      

    This example shows that the remote autonomous system is configured directly on neighbor group GROUP_1, and the send community setting is inherited from neighbor group GROUP_2, which in turn inherits the setting from address family group GROUP_3

  • users keyword:

    
      Router# show bgp neighbor-group GROUP_2 users 
      
      Session:      n:GROUP_1
      IPv4 Unicast: n:GROUP_1
      

    This example shows that the neighbor group GROUP_1 inherits both session-level (address family-independent) and IPv4 unicast configuration parameters from the neighbor group GROUP_2.

  • inheritance keyword:

    
      Router# show bgp neighbor-group GROUP_1 inheritance 
      
          Session:      n:GROUP-2 s:GROUP_3
          IPv4 Unicast: n:GROUP_2 a:GROUP_2 a:GROUP_3
      
      

    This example shows that the neighbor group GROUP_1 inherits session-level (address family-independent) configuration parameters from neighbor group GROUP_2, which in turn inherits its session parameters from session group GROUP_3. Additionally, GROUP_1 inherits IPv4 unicast configuration parameters from GROUP_2. GROUP_2, in turn, inherits these IPv4 unicast parameters from the GROUP_2 address family group, which itself inherits them from the GROUP_3 address family group.