Implementing BGP
weight 200
address-family ipv4 multicast [n:GROUP_1]
default-originate
show bgp af-group
Use the show bgp af-group command to display address family groups:
• Use the configuration keyword to display the effective configuration for the address family group,
including any settings that have been inherited from address family groups used by this address family
group.
• Use the inheritance keyword to display the address family groups from which this address family group
is capable of inheriting configuration.
• Use the users keyword to display the neighbors, neighbor groups, and address family groups that inherit
configuration from this address family group.
The show bgp af-group sample commands that follow are based on this sample configuration:
RP/0/RSP0/CPU0:router(config)# router bgp 140
RP/0/RSP0/CPU0:router(config-bgp)# af-group GROUP_3 address-family ipv4 unicast
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# remove-private-as
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)# af-group GROUP_1 address-family ipv4 unicast
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# use af-group GROUP_2
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# maximum-prefix 2500 75 warning-only
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# default-originate
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# exit
RP/0/RSP0/CPU0:router(config-bgp)# af-group GROUP_2 address-family ipv4 unicast
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# use af-group GROUP_3
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# send-community-ebgp
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# send-extended-community-ebgp
RP/0/RSP0/CPU0:router(config-bgp-afgrp)# capability orf prefix both
The following example displays sample output from the show bgp af-group command using the
configuration keyword. This example shows from where each configuration item was inherited. The
default-originate command was configured directly on this address family group (indicated by [ ]). The
remove-private-as command was inherited from address family group GROUP_2, which in turn inherited
from address family group GROUP_3:
RP/0/RSP0/CPU0:router# show bgp af-group GROUP_1 configuration
af-group GROUP_1 address-family ipv4 unicast
capability orf prefix-list both
default-originate
maximum-prefix 2500 75 warning-only
route-policy POLICY_1 in
remove-private-AS
send-community-ebgp
send-extended-community-ebgp
The following example displays sample output from the show bgp af-group command using the users
keyword:
RP/0/RSP0/CPU0:router# show bgp af-group GROUP_2 users
IPv4 Unicast: a:GROUP_1
OL-30423-03
[]
[n:GROUP_1]
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
[a:GROUP_2]
[]
[]
[a:GROUP_2 a:GROUP_3]
[a:GROUP_2 a:GROUP_3]
[a:GROUP_2]
[a:GROUP_2]
BGP Configuration
27