OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : BGP4+ : Configuration
Configuration
R1
 
#configure terminal
Enter Configure mode.
(config)#router bgp 100
Assign the ASN value (100) to the router.
(config-router)#neighbor 4ffe::120 remote-as 100
Specify the neighbor's IP address and ASN value.
(config-router)#address-family ipv6 unicast
Enter IPv6 Address-Family mode.
(config-router-af)#neighbor 4ffe::120 activate
Activate the IPv6 neighbor.
(config-router-af)#network 8ffe::132/64
Specify the network to be advertised by the BGP routing process.
(config-router-af)#exit-address-family
Exit Address Family mode, and return to Router mode.
(config-router)#commit
Commit the candidate configuration to the running configuration.
R2
 
#configure terminal
Enter Configure mode.
(config)#router bgp 100
Assign the ASN value (100) to the router.
(config-router)#neighbor 4ffe::121 remote-as 100
Specify the neighbor’s IP address and ASN value.
(config-router)#neighbor 5ffe::115 remote-as 200
Specify the neighbor’s IP address and the ASN value of another neighbor.
(config-router)#address-family ipv6 unicast
Enter IPv6 Address-Family mode.
(config-router-af)#aggregate-address 2ffe::102/32 summary-only
Configure an IPv6 non-AS-set aggregate route on R2. The local distance will be applied to this route.
(config-router-af)#neighbor 4ffe::121 activate
Activate the IPv6 neighbor.
(config-router-af)#neighbor 5ffe::115 activate
Activate the IPv6 neighbor.
(config-router-af)#distance bgp 12 13 11
Configure the administrative distance for external, internal, and local routes received in IPv6 Address-Family mode.
(config-router-af)#exit-address-family
Exit Address Family mode, and return to Router mode.
(config-router)#commit
Commit the candidate configuration to the running configuration.
R3
 
#configure terminal
Enter Configure mode.
(config)#router bgp 100
Assign the ASN value (100) to the router.
(config-router)#neighbor 5ffe::114 remote-as 100
Specify the neighbor's IP address and ASN value.
(config-router)#address-family ipv6 unicast
Enter IPv6 Address-Family mode.
(config-router)#network 7ffe::99/64
Specify the network to be advertised by the BGP routing process.
 
(config-router-af)#neighbor 5ffe::114 activate
Activate the IPv6 neighbor.
(config-router-af)#exit-address-family
Exit Address Family mode, and return to Router mode.
(config-router)#commit
Commit the candidate configuration to the running configuration.
Last modified date: 10/16/2023