OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : BGP4+ : Configuration
Configuration
R1
 
#configure terminal
Enter Configure mode.
(config)#interface lo
Enter to the interface mode.
(config-if)#ipv6 address 4000::1/64
Assign ipv6 address to loopback interface.
(config-if)#exit
Exit from interface mode.
(config)#interface xe9
Enter to the interface mode.
(config-if)#ipv6 address 4ffe::119/64
Configure ipv6 address.
(config-if)#exit
Exit from interface mode.
(config)#router bgp 100
Assign the ASN value (100) to the router.
(config-router)# bgp router-id 1.1.1.1
Configuring bgp router id.
(config-router)#bgp graceful-restart
Enable BGP graceful restart support.
(config-router)#neighbor 4ffe::120 remote-as 200
Specify the neighbor’s IP address (4ffe::120) and the ASN value of the neighbor (200).
(config-router)#address-family ipv6 unicast
Exchange the IPv6 capabilities, and switch the mode to the IPv6 address family.
(config-router-af)#network 4000::/64
Advertising ipv6 address.
(config-router-af)#neighbor 4ffe::120 activate
Specify the neighbor’s IPv6 address(4ffe::120), and activate the neighbor.
(config-router-af)#neighbor 4ffe::120 capability graceful-restart
Specify the neighbor’s IPv6 address (4ffe::120) for which the graceful restart capability is supported.
(config-router-af)#exit-address-family
Exit address family
(config-router)#commit
Commit the candidate configuration to the running configuration.
R2
 
#configure terminal
Enter Configure mode
(config)#interface xe9
Enter to the interface mode
(config-if)#ipv6 address 4ffe::119/64
Configure ipv6 address.
(config-if)#exit
Exit from interface mode.
(config)#router bgp 200
Assign the ASN value (200) to the router.
(config-router)# bgp router-id 2.2.2.2
Configuring bgp router id.
(config-router)#bgp graceful-restart
Enable BGP graceful restart support.
(config-router)#bgp graceful-restart restart-time 120
Configure the maximum time (120) required for neighbor(s) to restart.
(config-router)#bgp graceful-restart stalepath-time 120
Configure the maximum time (120) to retain stale paths from the restarting neighbor(s).
(config-router)#neighbor 4ffe::119 remote-as 100
Specify the neighbor’s IP address (4ffe::119) and the ASN value of the neighbor (100).
(config-router)#address-family ipv6 unicast
Exchange the IPv6 capabilities, and switch the mode to the IPv6 address family.
(config-router-af)#neighbor 4ffe::119 activate
Specify the neighbor’s IPv6 address(4ffe::119), and activate the neighbor.
(config-router-af)#neighbor 4ffe::119 capability graceful-restart
Specify the neighbor’s IPv6 address (4ffe::119) for which the graceful restart capability is supported.
(config-router-af)#exit-address-family
Exit address family
(config-router)#commit
Commit the candidate configuration to the running configuration.
Last modified date: 10/16/2023