Configuring BGP4 confederations

BGP4 confederations, composed of multiple sub-autonomous systems, can be created.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the local-as command to configure the autonomous system number (ASN) in which your device resides.
    device(config-bgp-router)# local-as 65520
  4. Enter the confederation identifier command and specify an ASN to configure a BGP confederation identifier.
    device(config-bgp-router)# confederation identifier 100
  5. Enter the confederation peers command and specify as many ASNs as needed to list all BGP peers that will belong to the confederation.
    device(config-bgp-router)# confederation peers 65520 65521 65522

The following example creates a confederation with the confederation ID “100” and adds three sub-autonomous systems to the confederation.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 65520
device(config-bgp-router)# confederation identifier 100
device(config-bgp-router)# confederation peers 65520 65521 65522