OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : BGP : 4-Octet ASN Capability Enabled on R1 and R2
4-Octet ASN Capability Enabled on R1 and R2
In this example, 4-Octet ASN capability is enabled on BGP speakers R1 and R2.
Topology
Figure 1-21: 4-Octet ASN on Both Routers
R1
 
#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.
R2
 
#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.
Last modified date: 10/16/2023