#configure terminal | Enter configure mode. |
(config)#bgp extended-asn-cap | Enable 4-octet ASN capability. |
(config)#router bgp 70000 | Assign the ASN value (70000) to the router. |
(config-router)#neighbor 172.20.30.20 remote-as 800 | Specify the neighbor's IP address (172.20.30.20) and the ASN value of the neighbor (800). |
(config-router)# address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)# neighbor 172.20.30.20 activate | Activate 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. |
#configure terminal | Enter configure mode. |
(config)#no bgp extended-asn-cap | Disable 4-octet ASN capability. |
(config)#router bgp 800 | Assign the ASN value (800) to the router. |
(config-router)#neighbor 172.20.30.10 remote-as 70000 | Specify the neighbor's IP address (172.20.30.10) and the ASN value of the neighbor (70000). |
(config-router)# address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)# neighbor 172.20.30.10 activate | Activate 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. |
#configure terminal | Enter configure mode. |
(config)#bgp extended-asn-cap | Enable 4-octet ASN capability. |
(config)#router bgp 700 | Assign the ASN value (700) to the router. |
(config-router)#neighbor 172.20.30.20 remote-as 800 | Specify the neighbor's IP address (172.20.30.20) and the ASN value of the neighbor (800). |
(config-router)# address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)# neighbor 172.20.30.20 activate | Activate 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. |
#configure terminal | Enter configure mode. |
(config)#no bgp extended-asn-cap | Disable 4-octet ASN capability. |
(config)#router bgp 800 | Assign the ASN value (800) to the router. |
(config-router)#neighbor 172.20.30.10 remote-as 700 | Specify the neighbor's IP address (172.20.30.10) and the ASN value of the neighbor (700). |
(config-router)# address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)# neighbor 172.20.30.10 activate | Activate 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. |