Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

BGP Confederation Configuration Example

Configure a BGP confederation on each switch in AS 200 to divide AS 200 into two sub-AS's: AS 65010 and AS 65011. To reduce the number of IBGP connections, three switches in AS 65010 establish fullmesh IBGP connections.

Configure BGP confederation members Switch A, Switch B, Switch C, and Switch D. Between Switch A and Switch D is an EBGP connection within AS 200.

Configure Switch A to connect without AS 200 to Switch E.


Figure 5-11. BGP confederation configuration 


                   


Configuring Switch A

Configure the VLAN that each interface belongs to.

admin@XorPlus# set vlans vlan-id 20 l3-interface 20
admin@XorPlus# set vlans vlan-id 30 l3-interface 30
admin@XorPlus# set vlans vlan-id 40 l3-interface 40
admin@XorPlus# set vlans vlan-id 60 l3-interface 60
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 20
admin@XorPlus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 30
admin@XorPlus# set interface gigabit-ethernet ge-1/1/4 family ethernet-switching native-vlan-id 40
admin@XorPlus# set interface gigabit-ethernet ge-1/1/6 family ethernet-switching native-vlan-id 60
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure the VLAN interfaces, and assign them each IP addresses.

admin@XorPlus# set vlan-interface interface 20 vif 20 address 192.168.20.2 prefix-length 24
admin@XorPlus# set vlan-interface interface 30 vif 30 address 192.168.30.1 prefix-length 24
admin@XorPlus# set vlan-interface interface 40 vif 40 address 192.168.40.1 prefix-length 24
admin@XorPlus# set vlan-interface interface 60 vif 60 address 192.168.60.1 prefix-length 24
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure EBGP and IBGP connections within confederation AS 200.

admin@XorPlus# set protocols bgp bgp-id 2.2.2.2
admin@XorPlus# set protocols bgp local-as 65010
admin@XorPlus# protocols bgp confederation identifier 200
admin@XorPlus# protocols bgp confederation disable false
admin@XorPlus# set protocols bgp peer 192.168.30.2 as 65010
admin@XorPlus# set protocols bgp peer 192.168.30.2 local-ip 192.168.30.1
admin@XorPlus# set protocols bgp peer 192.168.30.2 next-hop-self true
admin@XorPlus# set protocols bgp peer 192.168.30.2 confederation-member true
admin@XorPlus# set protocols bgp peer 192.168.40.2 as 65010
admin@XorPlus# set protocols bgp peer 192.168.40.2 local-ip 192.168.40.1
admin@XorPlus# set protocols bgp peer 192.168.40.2 next-hop-self true
admin@XorPlus# set protocols bgp peer 192.168.40.2 confederation-member true
admin@XorPlus# set protocols bgp peer 192.168.60.2 as 65011
admin@XorPlus# set protocols bgp peer 192.168.60.2 local-ip 192.168.60.1
admin@XorPlus# set protocols bgp peer 192.168.60.2 next-hop-self true
admin@XorPlus# set protocols bgp peer 192.168.60.2 confederation-member true
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure an EBGP connection without confederation AS 200.

admin@XorPlus# set protocols bgp peer 192.168.20.2 as 100
admin@XorPlus# set protocols bgp peer 192.168.20.1 local-ip 192.168.20.2
admin@XorPlus# set protocols bgp peer 192.168.20.1 next-hop-self true
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus#


Configuring Switch B

Configure the VLAN that each interface belongs to.

admin@XorPlus# set vlans vlan-id 40 l3-interface 40
admin@XorPlus# set vlans vlan-id 50 l3-interface 50
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# set interface gigabit-ethernet ge-1/1/4 family ethernet-switching native-vlan-id 40
admin@XorPlus# set interface gigabit-ethernet ge-1/1/5 family ethernet-switching native-vlan-id 50
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure the VLAN interfaces, and assign them each IP addresses.

admin@XorPlus# set vlan-interface interface 40 vif 40 address 192.168.40.2 prefix-length 24
admin@XorPlus# set vlan-interface interface 50 vif 50 address 192.168.50.2 prefix-length 24
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure an IBGP connection within confederation AS 200.

admin@XorPlus# set protocols bgp bgp-id 3.3.3.3
admin@XorPlus# set protocols bgp local-as 65010
admin@XorPlus# protocols bgp confederation identifier 200
admin@XorPlus# protocols bgp confederation disable false
admin@XorPlus# set protocols bgp peer 192.168.40.1 as 65010
admin@XorPlus# set protocols bgp peer 192.168.40.1 local-ip 192.168.40.2
admin@XorPlus# set protocols bgp peer 192.168.40.1 next-hop-self true
admin@XorPlus# set protocols bgp peer 192.168.40.1 confederation-member true
admin@XorPlus# set protocols bgp peer 192.168.50.1 as 65010
admin@XorPlus# set protocols bgp peer 192.168.50.1 local-ip 192.168.50.2
admin@XorPlus# set protocols bgp peer 192.168.50.1 next-hop-self true
admin@XorPlus# set protocols bgp peer 192.168.50.1 confederation-member true
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus#


Configuring Switch C

Configure the VLAN that each interface belongs to.

admin@XorPlus# set vlans vlan-id 30 l3-interface 30
admin@XorPlus# set vlans vlan-id 50 l3-interface 50
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 30
admin@XorPlus# set interface gigabit-ethernet ge-1/1/5 family ethernet-switching native-vlan-id 50
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure the VLAN interfaces and assign them each IP addresses.

admin@XorPlus# set vlan-interface interface 30 vif 40 address 192.168.30.2 prefix-length 24
admin@XorPlus# set vlan-interface interface 50 vif 50 address 192.168.50.1 prefix-length 24
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure an IBGP connection within confederation AS 200.

admin@XorPlus# set protocols bgp bgp-id 4.4.4.4
admin@XorPlus# set protocols bgp local-as 65010
admin@XorPlus# protocols bgp confederation identifier 200
admin@XorPlus# protocols bgp confederation disable false
admin@XorPlus# set protocols bgp peer 192.168.30.1 as 65010
admin@XorPlus# set protocols bgp peer 192.168.30.1 local-ip 192.168.30.2
admin@XorPlus# set protocols bgp peer 192.168.30.1 next-hop-self true
admin@XorPlus# set protocols bgp peer 192.168.30.1 confederation-member true
admin@XorPlus# set protocols bgp peer 192.168.50.2 as 65010
admin@XorPlus# set protocols bgp peer 192.168.50.2 local-ip 192.168.50.1
admin@XorPlus# set protocols bgp peer 192.168.50.2 next-hop-self true
admin@XorPlus# set protocols bgp peer 192.168.50.2 confederation-member true
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus#


Configuring Switch D

Configure the VLAN that each interface belongs to.

admin@XorPlus# set vlans vlan-id 60 l3-interface 60
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# set interface gigabit-ethernet ge-1/1/6 family ethernet-switching native-vlan-id 60
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure the VLAN interfaces, and assign them each IP addresses.

admin@XorPlus# set vlan-interface interface 60 vif 60 address 192.168.60.2 prefix-length 24
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure an EBGP connection within confederation AS 200.

admin@XorPlus# set protocols bgp bgp-id 5.5.5.5
admin@XorPlus# set protocols bgp local-as 65011
admin@XorPlus# protocols bgp confederation identifier 200
admin@XorPlus# protocols bgp confederation disable false
admin@XorPlus# set protocols bgp peer 192.168.60.2 as 65010
admin@XorPlus# set protocols bgp peer 192.168.60.2 local-ip 192.168.60.1
admin@XorPlus# set protocols bgp peer 192.168.60.2 next-hop-self true
admin@XorPlus# set protocols bgp peer 192.168.60.2 confederation-member true
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configuring Switch E

Configure the VLAN that each interface belongs to.

admin@XorPlus# set vlans vlan-id 10 l3-interface 10
admin@XorPlus# set vlans vlan-id 20 l3-interface 20
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 10
admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 20
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure the VLAN interfaces, and assign them IP addresses.

admin@XorPlus# set vlan-interface interface 10 vif 10 address 192.168.10.1 prefix-length 24
admin@XorPlus# set vlan-interface interface 20 vif 20 address 192.168.20.1 prefix-length 24
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Configure an EBGP connection.

admin@XorPlus# set protocols bgp bgp-id 1.1.1.1
admin@XorPlus# set protocols bgp local-as 100
admin@XorPlus# set protocols bgp peer 192.168.20.2 as 200
admin@XorPlus# set protocols bgp peer 192.168.20.2 local-ip 192.168.20.1
admin@XorPlus# set protocols bgp peer 192.168.20.2 next-hop-self true
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# 


Verifying the Configuration

View the BGP routing table of Switch B:

admin@XorPlus# run show bgp routes detail 
192.168.10.0/24
From peer: 2.2.2.2
Route: Not Used
Origin: INCOMPLETE
AS Path: 100
Nexthop: 192.168.20.1
Multiple Exit Discriminator: 0
Local Preference: 100 
View the BGP routing table of Switch D: 
admin@XorPlus# run show bgp routes detail 
192.168.10.0/24
From peer: 15.15.15.15
Route: Not Used
Origin: INCOMPLETE
AS Path: (65010) 100
Nexthop: 192.168.30.2
Local Preference: 100 
  • No labels