BGP Confederations

In BGP, nodes running iBGP protocols must be interconnected forming a full mesh. Confederation solves the iBGP full-mesh network complexity and inefficiency by splitting a large autonomous system domain into smaller autonomous system domains, called member autonomous systems. Member autonomous systems can form eBGP connections among themselves, to prevent full-mesh connections among each iBGP-running node.

The bgp confederation identifier command tells the router that it is a member of a confederation and the confederation ID. The bgp confederation peers command lists the member AS to which the router is connected.

In the following example, R1, R2, and R3 are members of the same confederation with different AS numbers.

Topology

Figure 19. BGP Confederation

R1

#configure terminal

Enter configure mode.

(config)#router bgp 400

Assign the ASN value ( 400) to the router.

(config-router)#bgp confederation identifier 1000

Specify the BGP confederation ID, the externally visible autonomous system number that identifies the BGP confederation as a whole.

(config-router)#bgp confederation peers 7000

Specify the neighbor ASN value for confederation membership.

(config-router)#neighbor 10.20.30.2 remote-as 7000

Specify the neighbor’s IP address ( 10.20.30.2) and the ASN value of the neighbor ( 7000).

(config-router)# address-family ipv4 unicast

Enter address-family ipv4 unicast mode

(config-router-af)# neighbor 10.20.30.2 activate

Activate the neighbor under address family mode

(config-router-af)#exit-address-family

Exit address-family mode.

(config-router)#commit

Commit the candidate configuration to the running configuration.

R2

#configure terminal

Enter configure mode.

(config)#router bgp 7000

Assign the ASN value ( 7000) to the router.

(config-router)#bgp confederation identifier 1000

Specify the BGP confederation ID.

(config-router)#bgp confederation peers 400 90

Specify the neighbor ASN values for confederation membership.

(config-router)#neighbor 10.20.30.1 remote-as 400

Specify the neighbor’s IP address ( 10.20.30.1) and the ASN value of the neighbor ( 400).

(config-router)#neighbor 11.20.30.30 remote-as 90

Specify the neighbor’s IP address ( 11.20.30.30) and the ASN value of the neighbor ( 90).

(config-router)# address-family ipv4 unicast

Enter address-family ipv4 unicast mode

(config-router-af)# neighbor 10.20.30.1 activate

Activate the neighbor under address family mode

(config-router-af)# neighbor 11.20.30.30 activate

Activate the neighbor under address family mode

(config-router-af)#exit-address-family

Exit address-family mode.

(config-router)#commit

Commit the candidate configuration to the running configuration.

R3

#configure terminal

Enter configure mode.

(config-router)#router bgp 90

Assign the ASN value ( 90) to the router.

(config-router)#bgp confederation identifier 1000

Specify the BGP confederation ID.

(config-router)#bgp confederation peers 7000

Specify the neighbor ASN value for confederation membership.

(config-router)#neighbor 11.20.30.20 remote-as 7000

Specify the neighbor’s IP address ( 11.20.30.20) and the ASN value of the neighbor ( 7000).

(config-router)# address-family ipv4 unicast

Enter address-family ipv4 unicast mode

(config-router-af)# neighbor 11.20.30.20 activate

Exit address-family mode.

(config-router-af)#exit-address-family

Exit address-family mode.

(config-router)#commit

Commit the candidate configuration to the running configuration.

Validation

R2

R1

R3