#configure terminal | Enter configure mode. |
(config)#bgp extended-asn-cap | Enable 4-octet ASN capability. |
(config)#router bgp 400000 | Assign the ASN value (400000) to the router. |
(config-router)#neighbor 10.20.30.2 remote-as 7000 | Specify the neighbor's IP address (10.20.30.2) and the ASN value of the neighbor (7000). |
(config-router)# address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)# neighbor 10.20.30.2 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 7000 | Assign the ASN value (7000) to the router. |
(config-router)#neighbor 10.20.30.1 remote-as 400000 | Specify the neighbor's IP address (10.20.30.1) and the ASN value of the neighbor (400000). |
(config-router)# address-family ipv4 unicast | Enter address-family ipv4 unicast mode |
(config-router-af)# neighbor 10.20.30.1 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. |