OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : BGP4+ : Configuration
Configuration
R1
 
#configure terminal
Enter Configure mode.
(config)#router bgp 200
Define the routing process. The number 200 specifies the AS number of R1.
(config-router)#bgp router-id 10.10.10.10
Configure a fixed Router ID (10.10.10.10) for the BGP4+ routing process.
(config-router)#neighbor fe80::2 remote-as 200
Define BGP neighbor (R2), and establish a TCP session by specifying the link-local address (fe80::2)and the AS number(200)of neighbor R2.
(config-router)#neighbor fe80::2 interface eth0
To specify a link-local neighbor, configure the interface name of the neighbor fe80::2.
(config-router)#address-family ipv6
Enter Address Family mode for configuring routing sessions that use IPv6 address prefixes.
(config-router-af)#neighbor fe80::2 activate
Activate the neighbor R2(fe80::2), and enable exchange of IPv6 address prefix types with this neighbor.
(config-router-af)#exit-address-family
Exit address family
(config-router)#commit
Commit the candidate configuration to the running configuration
R2
 
(config)#router bgp 200
Define the routing process. The number 200 specifies the AS number of R2.
(config-router)#bgp router-id 10.10.10.11
Configure a fixed Router ID (10.10.10.11) for the BGP4+ routing process.
(config-router)#neighbor fe80::1 remote-as 200
Define the BGP neighbor (R1), and establish a TCP session by specifying the link-local address R1(fe80::1) and the AS number(200)of neighbor R1.
(config-router)#neighbor fe80::1 interface eth1
To specify a link-local neighbor, configure the interface name of the neighbor fe80::1.
(config-router)#address-family ipv6
Enter Address Family mode for configuring routing sessions that use IPv6 address prefixes.
(config-router-af)#neighbor fe80::1 activate
Activate the neighbor R1(fe80:1), and enable exchange of IPv6 address prefix types with this neighbor.
(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