Confederations
Confederations allow large AS to sub-divide the AS into sub-AS. This helps solve the scalability issues associated with having to maintain a full mesh of iBGP connections between all iBGP routers in the AS. In the confederation example shown in the following figure, routers R1 and R3 are configured in one sub-AS (AS number 65031) and routers R2 and R4 are configured in a different sub-AS (AS number 65021).
This example assumes that the configurations in previous sections have been performed.
To create the confederation shown in the preceding figure, perform the following steps in configuration mode.
Router | Step | Commands |
---|---|---|
R1 | Delete current BGP configuration. |
|
R1 | To allow routes from AS200 to be injected into RIB on R3. |
|
R1 | Set R3 in the same sub-AS as R1. |
|
R1 | Define the IP address on the local R1 router that is used to peer with the R3 router. |
|
R1 | Set the AS200 router in a different AS than R1. |
|
R1 | Set the outbound filter. |
|
R1 | Set the inbound filter. |
|
R1 | Set the network to advertise. |
|
R1 | Set the AS identifier for the confederation. |
|
R1 | Set the peer for the sub-AS. |
|
R1 | Set the router ID. |
|
R1 | Commit the configuration. |
|
R1 | Display the BGP configuration. |
|
R2 | Delete current BGP configuration. |
|
R2 | Set R3 in a different sub-AS than R2. |
|
R2 | Define the IP address on the local R2 router that is used to peer with the R3 router. |
|
R2 | Set R4 in the same sub-AS as R2. |
|
R2 | Define the IP address on the local R2 router that is used to peer with the R4 router. |
|
R2 | Activate the neighbor for the IPv4 unicast address family to enable the exchange IPv4 unicast routes. |
|
R2 | Set the network to advertise. |
|
R2 | Set the AS identifier for the confederation. |
|
R2 | Set the peer for the sub-AS. |
|
R2 | Set the router ID. |
|
R2 | Commit the configuration. |
|
R2 | Display the BGP configuration. |
|
R3 | Delete current BGP configuration. |
|
R3 | Set R1 in the same sub-AS as R3. |
|
R3 | Define the IP address on the local R3 router that is used to peer with the R1 router. |
|
R3 | Set the R2 router in a different AS than R3. |
|
R3 | Define the IP address on the local R3 router that is used to peer with the R2 router. |
|
R3 | Activate the neighbor for the IPv4 unicast address family to enable the exchange IPv4 unicast routes. |
|
R3 | Set the network to advertise. |
|
R3 | Set the AS identifier for the confederation. |
|
R3 | Set the peer for the sub-AS. |
|
R3 | Set the router ID. |
|
R3 | Commit the configuration. |
|
R3 | Display the BGP configuration. |
|
R4 | Delete current BGP configuration. |
|
R4 | To allow routes from AS300 to be injected into RIB on R2. |
|
R4 | Set R2 in the same sub-AS as R4. |
|
R4 | Define the IP address on the local R4 router that is used to peer with the R2 router. |
|
R4 | Set the AS300 router in a different AS than R4. |
|
R4 | Set the outbound filter. |
|
R4 | Set the inbound filter. |
|
R4 | Activate the neighbor for the IPv4 unicast address family to enable the exchange IPv4 unicast routes. |
|
R4 | Set the network to advertise. |
|
R4 | Set the AS identifier for the confederation. |
|
R4 | Set the peer for the sub-AS. |
|
R4 | Set the router ID. |
|
R4 | Commit the configuration. |
|
R4 | Display the BGP configuration. |
|