
The following is sample output from the
show bgp session-group
command with the
users
keyword showing
that both the GROUP_1 and GROUP_2 session groups inherit session parameters from the GROUP_3 session
group:
RP/0/RP0/CPU0:router#
show bgp session-group GROUP_3 users
Session: s:GROUP_1 s:GROUP_2
show bgp neighbor-group
Use the
show bgp neighbor-group
command to display neighbor groups:
• Use the
configuration
keyword to display the effective configuration for the neighbor group, including
any settings that have been inherited from neighbor groups used by this neighbor group.
• Use the
inheritance
keyword to display the address family groups, session groups, and neighbor groups
from which this neighbor group is capable of inheriting configuration.
• Use the
users
keyword to display the neighbors and neighbor groups that inherit configuration from this
neighbor group.
The examples are based on the following group configuration:
RP/0/RP0/CPU0:router(config)#
router bgp 140
RP/0/RP0/CPU0:router(config-bgp)#
af-group GROUP_3 address-family ipv4 unicast
RP/0/RP0/CPU0:router(config-bgp-afgrp)#
remove-private-as
RP/0/RP0/CPU0:router(config-bgp-afgrp)#
soft-reconfiguration inbound
RP/0/RP0/CPU0:router(config-bgp-afgrp)#
exit
RP/0/RP0/CPU0:router(config-bgp)#
af-group GROUP_2 address-family ipv4 unicast
RP/0/RP0/CPU0:router(config-bgp-afgrp)#
use af-group GROUP_3
RP/0/RP0/CPU0:router(config-bgp-afgrp)#
send-community-ebgp
RP/0/RP0/CPU0:router(config-bgp-afgrp)#
send-extended-community-ebgp
RP/0/RP0/CPU0:router(config-bgp-afgrp)#
capability orf prefix both
RP/0/RP0/CPU0:router(config-bgp-afgrp)#
exit
RP/0/RP0/CPU0:router(config-bgp)#
session-group GROUP_3
RP/0/RP0/CPU0:router(config-bgp-sngrp)#
timers 30 90
RP/0/RP0/CPU0:router(config-bgp-sngrp)#
exit
RP/0/RP0/CPU0:router(config-bgp)#
neighbor-group GROUP_1
RP/0/RP0/CPU0:router(config-bgp-nbrgrp)#
remote-as 1982
RP/0/RP0/CPU0:router(config-bgp-nbrgrp)#
use neighbor-group GROUP_2
RP/0/RP0/CPU0:router(config-bgp-nbrgrp)#
address-family ipv4 unicast
RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)#
exit
RP/0/RP0/CPU0:router(config-nbrgrp)#
exit
RP/0/RP0/CPU0:router(config-bgp)#
neighbor-group GROUP_2
RP/0/RP0/CPU0:router(config-bgp-nbrgrp)#
use session-group GROUP_3
RP/0/RP0/CPU0:router(config-bgp-nbrgrp)#
address-family ipv4 unicast
RP/0/RP0/CPU0:routerconfig-bgp-nbrgrp-af)#
use af-group GROUP_2
RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)#
weight 100
The following is sample output from the
show bgp neighbor-group
command with the
configuration
keyword. The configuration setting source is shown to the right of each command. In the output shown
previously, 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:
RP/0/RP0/CPU0:router#
show bgp neighbor-group GROUP_1 configuration
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
18
Implementing BGP
show bgp neighbor-group