#configure terminal | Enter the Configure mode. |
(config)#interface lo | Enter Interface loopback |
(config-if)#ip address 100.1.1.1/24 secondary | Configure IP address for interface |
(config-if)#exit | Exit interface mode |
(config)#interface ge47 | Enter Interface loopback |
(config-if)#ip address 47.47.47.1/24 | Configure IP address for interface |
(config-if)#exit | Exit from interface mode and enter the Configure mode |
(config)#router bgp 1 | Assign the ASN value (1) to the BGP router |
(config-router)#neighbor 47.47.47.2 remote-as 2 | Configure eBGP neighbor. |
(config-router)#address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)#neighbor 47.47.47.2 activate | Activate neighbor |
(config-router-af)#network 100.1.1.0/24 | Advertise the loopback network into BGP. |
(config-router-af)#exit-address-family | Exit address-family config mode |
(config-router)#commit | Commit the candidate configuration to the running configuration. |
#configure terminal | Enter the Configure mode. |
(config)#interface ge33 | Enter interface mode |
(config-if)#ip address 33.33.33.2/24 | Configure IP address for interface |
(config-if)#exit | Exit from interface mode and enter the Configure mode |
(config)#interface ge47 | Enter interface mode |
(config-if)#ip address 47.47.47.2/24 | Configure IP address for interface. |
(config-if)#exit | Exit from interface mode and enter the Configure mode |
(config)#router bgp 2 | Assign the ASN value (2) to the BGP router. |
(config-router)#neighbor 33.33.33.3 remote-as 3 | Configure eBGP neighbor. |
(config-router)#neighbor 47.47.47.1 remote-as 1 | Configure eBGP neighbor. |
(config-router)#address-family ipv4 unicast | Enter the address family IPv4 unicast mode |
(config-router-af)# neighbor 33.33.33.3 activate | Activate the neighbor |
config-router-af)# neighbor 47.47.47.1 activate | Activate the neighbor |
(config-router-af)# max-paths ebgp 8 | Configure eBGP Multipath. |
(config-router-af)#exit | Exit from address family mode and enter the Router configure mode |
(config-router)# bgp bestpath as-path multipath-relax | Configure BGP AS PATH Multipath relax. |
(config-router-af)#exit-address-family | Exit address-family mode |
(config-router)#commit | Commit the candidate configuration to the running configuration. |
#configure terminal | Enter the Configure mode. |
(config)#interface lo | Enter Interface loopback. |
(config-if)#ip address 100.1.1.1/24 secondary | Configure IP address for interface. |
(config-if)#exit | Exit from interface mode and enter the Configure mode. |
(config)#interface ge33 | Enter Interface loopback. |
(config-if)#ip address 33.33.33.3/24 | Configure IP address for interface. |
(config-if)#exit | Exit from interface mode and enter the Configure mode. |
(config)#router bgp 3 | Assign the ASN value (3) to the BGP router. |
(config-router)#neighbor 33.33.33.2 remote- | |
as 2 | Configure eBGP neighbor. |
(config-router)#address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)# neighbor 33.33.33.2 activate | Activate the neighbor |
(config-router-af)#network 100.1.1.0/24 | Advertise the loopback network into BGP. |
(config-router-af)#exit-address-family | Exit from router BGP and address-family config mode |
(config-router)#commit | Commit the candidate configuration to the running configuration. |