#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter Interface mode |
(config-if)# ip address 41.41.41.41/32 sec-ondary | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe27 | Enter Interface mode |
(config-if)# ip address 21.1.1.1/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe1 | Enter Interface mode |
(config-if)# ip address 22.1.1.1/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe7 | Enter Interface mode |
(config-if)# ip address 23.1.1.1/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe20 | Enter Interface mode |
(config-if)# ip address 100.1.1.1/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)# router bgp 100 | Enter Router BGP mode |
(config-router)# neighbor 21.1.1.2 remote-as 200 | Define BGP neighbors. 21.1.1.2 is the IP address of the neighbor (RTR2) and 200 is the neighbors AS number |
(config-router)# neighbor 22.1.1.2 remote-as 300 | Define BGP neighbors. 22.1.1.2 is the IP address of the neighbor (RTR3) and 300 is the neighbors AS number |
(config-router)# neighbor 23.1.1.2 remote-as 100 | Define BGP neighbors. 23.1.1.2 is the IP address of the neighbor (RTR4) and 100 is the neighbors AS number |
(config-router)# address-family ipv4 unicast | Enter into BGP address family IPv4 |
(config-router-af)#max-paths eibgp 4 | Configure eiBGP max-paths (4). |
(config-router-af)#redistribute connected | Redistribute connected routes into BGP |
(config-router-af)#neighbor 21.1.1.2 acti-vate | Activate the neighbor |
(config-router-af)#neighbor 22.1.1.2 acti-vate | Activate the neighbor |
(config-router-af)#neighbor 23.1.1.2 acti-vate | Activate the neighbor |
(config-router-af)# commit | Commit the configurations |
(config-router-af)# end | Return to privilege mode |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter Interface mode |
(config-if)# ip address 45.45.45.45/32 sec-ondary | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe7 | Enter Interface mode |
(config-if)# ip address 21.1.1.2/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe6 | Enter Interface mode |
(config-if)# ip address 111.1.1.11/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)# router bgp 200 | Enter Router BGP mode |
(config-router)# neighbor 21.1.1.1 remote-as 100 | Define BGP neighbors. 21.1.1.1 is the IP address of the neighbor (RTR1) and 100 is the neighbors AS number |
(config-router)# address-family ipv4 unicast | Enter into BGP address family IPv4 |
(config-router-af)#redistribute connected | Redistribute connected routes |
(config-router-af)#neighbor 21.1.1.1 acti-vate | Activate the neighbor |
(config-router-af)# commit | Commit the configurations |
(config-router-af)# end | Return to privilege mode |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter Interface mode |
(config-if)# ip address 42.42.42.42/32 sec-ondary | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe0 | Enter Interface mode |
(config-if)# ip address 111.1.1.42/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe1 | Enter Interface mode |
(config-if)# ip address 22.1.1.2/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)# router bgp 300 | Enter Router BGP mode |
(config-router)# neighbor 22.1.1.1 remote-as 100 | Define BGP neighbors. 22.1.1.1 is the IP address of the neighbor (RTR1) and 100 is the neighbors AS number |
(config-router)# address-family ipv4 unicast | Enter into BGP address family IPv4 |
(config-router-af)#redistribute connected | Redistribute connected routes |
(config-router-af)#neighbor 22.1.1.1 acti-vate | Activate the neighbor |
(config-router-af)# commit | Commit the configurations |
(config-router-af)# end | Return to privilege mode |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter Interface mode |
(config-if)# ip address 43.43.43.43/32 sec-ondary | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe7 | Enter Interface mode |
(config-if)# ip address 23.1.1.2/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe18 | Enter Interface mode |
(config-if)# ip address 111.1.1.43/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)# router bgp 100 | Enter Router BGP mode |
(config-router)# neighbor 23.1.1.1 remote-as 100 | Define BGP neighbors. 23.1.1.1 is the IP address of the neighbor (RTR1) and 100 is the neighbors AS number |
(config-router)# address-family ipv4 unicast | Enter into BGP address family IPv4 |
(config-router-af)#redistribute connected | Redistribute connected routes |
(config-router-af)#neighbor 23.1.1.1 acti-vate | Activate the neighbor |
(config-router-af)# commit | Commit the configurations |
(config-router-af)# end | Return to privilege mode |