#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 1.1.1.1/32 secondary | Configure IP address on loopback interface. |
(config-if)#commit | Commit the transaction |
(config)#interface xe15 | Enter the Interface mode for xe15. |
(config-if)# ip address 10.10.10.1/24 | Configure IP address on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe13 | Enter the Interface mode for xe13. |
(config-if)# ip address 11.11.11.1/24 | Configure IP address on the interface. |
(config)#interface xe12 | Enter the Interface mode for xe12. |
(config-if)# ip address 50.50.50.2/24 | Configure IP address on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 1.1.1.1 | Router-id configurations |
(config-router)# network 1.1.1.1/32 area 0 | Advertise loopback address in OSPF. |
(config-router)#network 10.10.10.0/24 area 0 | Advertise network address in OSPF. |
(config-router)#network 11.11.11.0/24 area 0 | Advertise network address in OSPF. |
(config-router)#commit | Commit the transaction |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 2.2.2.2/32 secondary | Configure IP address on loopback interface. |
(config-if)#commit | Commit the transaction |
(config)#interface ce4/4 | Enter the Interface mode for ce4/4. |
(config-if)# ip address 10.10.10.2/24 | Configure IP address on the interface. |
(config-if)#interface ce4/1 | Enter the Interface mode for ce4/1. |
(config-if)# ip address 12.12.12.1/24 | Configure IP address on the interface. |
(config-if)#interface ce3/2 | Enter the Interface mode for ce3/2. |
(config-if)# ip address 13.13.13.1/24 | Configure IP address on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 2.2.2.2 | Router-id configurations |
(config-router)# network 2.2.2.2/32 area 0 | Advertise loopback address in OSPF. |
(config-router)#network 10.10.10.0/24 area 0 | Advertise network address in OSPF. |
(config-router)#network 12.12.12.0/24 area 0 | Advertise network address in OSPF. |
(config-router)#network 13.13.13.0/24 area 0 | Advertise network address in OSPF. |
(config-router)#commit | Commit the transaction |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 3.3.3.3/32 secondary | Configure IP address on loopback interface. |
(config-if)#commit | Commit the transaction |
(config)#interface xe4 | Enter the Interface mode for xe4. |
(config-if)# ip address 11.11.11.2/24 | Configure IP address on the interface. |
(config)#interface xe2 | Enter the Interface mode for xe2. |
(config-if)# ip address 12.12.12.2/24 | Configure IP address on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-I 3.3.3.3 | Router-id configurations |
(config-router)# network 3.3.3.3/32 area 0 | Advertise loopback address in OSPF. |
(config-router)#network 11.11.11.0/24 area 0 | Advertise network address in OSPF. |
(config-router)#network 12.12.12.0/24 area 0 | Advertise network address in OSPF. |
(config-router)#commit | Commit the transaction |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 4.4.4.4/32 secondary | Configure IP address on loopback interface. |
(config-if)#commit | Commit the transaction |
(config)#interface xe12 | Enter the Interface mode for xe21. |
(config-if)# ip address 13.13.13.2/24 | Configure IP address on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 4.4.4.4 | Router-id configurations |
(config-router)# network 4.4.4.4/32 area 0 | Advertise loopback address in OSPF. |
(config-router)#network 13.13.13.0/24 area 0 | Advertise network address in OSPF. |
(config-router)#commit | Commit the transaction |
(config)# route-map map1 permit 10 | Configure route-map map1 with sequence number 10. |
(config-route-map)#set aigp-metric 100 | Set aigp metric as 100. |
(config-route-map)#commit | Commit the transaction |
(config)# router bgp 100 | Enter the BGP configuration mode. |
(config-router)# neighbor 3.3.3.3 remote-as 100 | Configure neighbor |
(config-router)# neighbor 3.3.3.3 update-source 1.1.1.1 | Update loopback address as source |
(config-router)# address-family ipv4 unicast | Enter address family mode. |
(config-router)#network 50.50.50.0/24 route-map map1 | Apply a route map to routes. |
(config-router-af)#neighbor 3.3.3.3 activate | Activate the neighbor. |
(config-router-af)#exit | Exit address family mode. |
(config-router)#exit | Exit Router BGP mode |
(config)# router bgp 200 | Enter the BGP configuration mode. |
(config-router)#neighbor 3.3.3.3 remote-as 100 | Configure neighbor |
(config-router)#neighbor 4.4.4.4 remote-as 200 | Configure neighbor |
(config-router)# neighbor 3.3.3.3 update-source 2.2.2.2 | Update loopback address as source |
(config-router)# neighbor 4.4.4.4 update-source 2.2.2.2 | Update loopback address as source |
(config-router)# neighbor 3.3.3.3 ebgp-multihop 2 | Enable multihop on eBGP session. |
(config-router)#address-family ipv4 | Enter address family mode. |
(config-router-af)#neighbor 3.3.3.3 activate | Activate the neighbor. |
(config-router-af)#neighbor 4.4.4.4 activate | Activate the neighbor. |
(config-router-af)#neighbor 3.3.3.3 aigp enable | Enable aigp for the neighbor. |
(config-router-af)#neighbor 4.4.4.4 aigp enable | Enable aigp for the neighbor. |
(config-router-af)#neighbor 4.4.4.4 next-hop-self | Configure next-hop-self for the R4 neighbor. |
(config-router-af)#commit | Commit the transaction. |
(config)# router bgp 100 | Enter the BGP configuration mode. |
(config-router)#neighbor 1.1.1.1 remote-as 100 | Configure neighbor |
(config-router)#neighbor 2.2.2.2 remote-as 200 | Configure neighbor |
(config-router)#neighbor 4.4.4.4 remote-as 200 | Configure neighbor |
(config-router)#neighbor 1.1.1.1 update-source 3.3.3.3 | Update loopback address as source |
(config-router)#neighbor 2.2.2.2 update-source 3.3.3.3 | Update loopback address as source |
(config-router)#neighbor 4.4.4.4 update-source 3.3.3.3 | Update loopback address as source |
(config-router)# neighbor 2.2.2.2 ebgp-multihop 2 | Enable multihop on eBGP session. |
(config-router)# neighbor 4.4.4.4 ebgp-multihop 2 | Enable multihop on eBGP session. |
(config-router)#address-family ipv4 | Enter address family mode. |
(config-router-af)#neighbor 1.1.1.1 activate | Activate the neighbor. |
(config-router-af)#neighbor 2.2.2.2 activate | Activate the neighbor. |
(config-router-af)#neighbor 4.4.4.4 activate | Activate the neighbor. |
(config-router-af)#neighbor 2.2.2.2 aigp enable | Enable aigp for the neighbor. |
(config-router-af)#neighbor 4.4.4.4 aigp enable | Enable aigp for the neighbor. |
(config-router-af)#commit | Exit address family mode. |
(config)# router bgp 200 | Enter the BGP configuration mode. |
(config-router)#neighbor 3.3.3.3 remote-as 100 | Configure neighbor |
(config-router)#neighbor 2.2.2.2 remote-as 200 | Configure neighbor |
(config-router)# neighbor 3.3.3.3 update-source 4.4.4.4 | Update loopback address as source |
(config-router)# neighbor 2.2.2.2 update-source 4.4.4.4 | Update loopback address as source |
(config-router)# neighbor 3.3.3.3 ebgp-multihop 2 | Enable multihop on eBGP session. |
(config-router)#address-family ipv4 | Enter address family mode. |
(config-router-af)#neighbor 3.3.3.3 activate | Activate the neighbor. |
(config-router-af)#neighbor 2.2.2.2 activate | Activate the neighbor. |
(config-router-af)#neighbor 3.3.3.3 aigp enable | Enable aigp for the neighbor. |
(config-router-af)#neighbor 2.2.2.2 aigp enable | Enable aigp for the neighbor. |
(config-router-af)#neighbor 2.2.2.2 next-hop-self | Configure next-hop-self for the R4 neighbor. |
(config-router-af)#commit | Commit the transaction. |
(config)# route-map map1 permit 10 | Configure route-map map1 with sequence number 10. |
(config-route-map)#set aigp-metric 100 | Set aigp metric as 100. |
(config)# route-map map2 permit 20 | Configure route-map map2 with sequence number 20. |
(config-route-map)#set aigp-metric igp-metric | Set aigp metric as igp-metric. |
(config-route-map)#commit | Commit the transaction |
(config)# router bgp 100 | Enter the BGP configuration mode. |
(config-router)# neighbor 3.3.3.3 remote-as 100 | Configure neighbor |
(config-router)# neighbor 2.2.2.2 remote-as 100 | Configure neighbor |
(config-router)# neighbor 3.3.3.3 update-source 1.1.1.1 | Update loopback address as source |
(config-router)# neighbor 2.2.2.2 update-source 1.1.1.1 | Update loopback address as source |
(config-router)# address-family ipv4 unicast | Enter address family mode. |
(config-router)#network 50.50.50.0/24 | Advertise the network. |
(config-router-af)#neighbor 3.3.3.3 activate | Activate the neighbor. |
(config-router-af)#neighbor 2.2.2.2 activate | Activate the neighbor. |
(config-router-af)#neighbor 3.3.3.3 route-map map1 out | Attach the route-map map1 for the neighbor 3.3.3.3 in out direction |
(config-router-af)#neighbor 2.2.2.2 route-map map2 out | Attach the route-map map2 for the neighbor 2.2.2.2 in out direction |
(config-router-af)#neighbor 3.3.3.3 aigp disable | Disable the aigp neighbor. |
(config-router-af)#neighbor 2.2.2.2 aigp disable | Disable the aigp neighbor. |
config-router-af)#neighbor 2.2.2.2 aigp send cost-community 10 poi igp-cost | Enable extended community attribute for the neighbor. |
config-router-af)#neighbor 3.3.3.3 aigp send cost-community 10 poi pre-bestpath | Enable extended community attribute for the neighbor. |
(config-router-af)#commit | Commit the transaction. |
(config)# router bgp 100 | Enter the BGP configuration mode. |
(config-router)# neighbor 3.3.3.3 remote-as 100 | Configure neighbor |
(config-router)# neighbor 1.1.1.1 remote-as 100 | Configure neighbor |
(config-router)# neighbor 4.4.4.4 remote-as 200 | Configure neighbor |
(config-router)# neighbor 3.3.3.3 update-source 2.2.2.2 | Update loopback address as source |
(config-router)# neighbor 1.1.1.1 update-source 2.2.2.2 | Update loopback address as source |
(config-router)# neighbor 4.4.4.4 update-source 2.2.2.2 | Update loopback address as source |
(config-router)# neighbor 4.4.4.4 ebgp-multihop 2 | Enable multihop on eBGP session. |
(config-router)# address-family ipv4 unicast | Enter address family mode. |
(config-router-af)#neighbor 3.3.3.3 activate | Activate the neighbor. |
(config-router-af)#neighbor 1.1.1.1 activate | Activate the neighbor. |
(config-router-af)#neighbor 4.4.4.4 activate | Activate the neighbor. |
(config-router-af)#commit | Exit address family mode. |
(config)# router bgp 100 | Enter the BGP configuration mode. |
(config-router)#neighbor 1.1.1.1 remote-as 100 | Configure neighbor |
(config-router)#neighbor 2.2.2.2 remote-as 100 | Configure neighbor |
(config-router)#neighbor 4.4.4.4 remote-as 200 | Configure neighbor |
(config-router)#neighbor 1.1.1.1 update-source 3.3.3.3 | Update loopback address as source |
(config-router)#neighbor 2.2.2.2 update-source 3.3.3.3 | Update loopback address as source |
(config-router)#neighbor 4.4.4.4 update-source 3.3.3.3 | Update loopback address as source |
(config-router)# neighbor 4.4.4.4 ebgp-multihop 2 | Enable multihop on eBGP session. |
(config-router)#address-family ipv4 | Enter address family mode. |
(config-router-af)#neighbor 1.1.1.1 activate | Activate the neighbor. |
(config-router-af)#neighbor 2.2.2.2 activate | Activate the neighbor. |
(config-router-af)#neighbor 4.4.4.4 activate | Activate the neighbor. |
(config-router-af)#commit | Exit address family mode. |
(config)# router bgp 200 | Enter the BGP configuration mode. |
(config-router)#neighbor 3.3.3.3 remote-as 100 | Configure neighbor |
(config-router)#neighbor 2.2.2.2 remote-as 100 | Configure neighbor |
(config-router)# neighbor 3.3.3.3 update-source 4.4.4.4 | Update loopback address as source |
(config-router)# neighbor 2.2.2.2 update-source 4.4.4.4 | Update loopback address as source |
(config-router)# neighbor 3.3.3.3 ebgp-multihop 2 | Enable multihop on eBGP session. |
(config-router)# neighbor 2.2.2.2 ebgp-multihop 2 | Enable multihop on eBGP session. |
(config-router)#address-family ipv4 | Enter address family mode. |
(config-router-af)#neighbor 3.3.3.3 activate | Activate the neighbor. |
(config-router-af)#neighbor 2.2.2.2 activate | Activate the neighbor. |
(config-router-af)#commit | Commit the transaction. |