OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : BGP4+ Additional Paths Configuration : Topology
Topology
Figure 7-63: BGP4+ additional paths
R1
 
#configure terminal
Enter the Configure mode.
(config)#interface eth2
Enter interface mode for interface eth2
(config-if)#ipv6 address 1001::1/64
Configure IPv6 address for the interface eth2
(config-if)#exit
Exit the interface mode
(config)#interface eth3
Enter interface mode for interface eth3
(config-if)#ipv6 address 1002::1/64
Configure IPv6 address for the interface eth3
(config-if)#exit
Exit the interface mode
(config)#interface eth4
Enter interface mode for interface eth4
(config-if)#ipv6 address 1003::1/64
Configure IPv6 address for the interface eth4
(config-if)#exit
Exit the interface mode
(config)#interface eth5
Enter interface mode for interface eth5
(config-if)#ipv6 address 1004::1/64
Configure IPv6 address for the interface eth5
(config-if)#exit
Exit the interface mode
(config)#interface lo
Enter interface mode for loopback lo
(config-if)#ipv6 address 1090::1/64
Configure IPv6 address for Loopback interface lo
(config-if)#exit
Exit the interface mode
(config)#router bgp 200
Enter the router bgp mode
(config-router)#neighbor 1001::2 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 1002::2 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 1004::2 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 1003::2 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#address-family ipv6 unicast
Enter address-family mode for neighbor router session to activate.
(config-router-af)#neighbor 1001::2 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 1002::2 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 1003::2 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 1004::2 activate
Activate the neighbor router with peer address.
(config-router-af)#network 1090::/64
Activate the neighbor router with peer address.
(config-router-af)#exit-address-family
Exit Address Family mode and return to Router mode.
(config-router)#exit
Exit the router BGP mode and enter the config mode
(config)#commit
Apply commit
(config)#exit
Exit the config mode
R2
 
#configure terminal
Enter the Configure mode.
(config)#interface eth1
Enter interface mode for interface eth1
(config-if)#ipv6 address 3001::1/64
Configure IPv6 address for the interface eth1
(config-if)#ipv6 router ospf area 0
Enable OSPFv3 routing on an interface, and assign the Area ID 0.
(config-if)#exit
Exit the interface mode
(config)#interface eth2
Enter interface mode for interface eth2
(config-if)#ipv6 address 1001::2/64
Configure IPv6 address for the interface eth2
(config-if)#exit
Exit the interface mode
(config)#interface eth3
Enter interface mode for interface eth3
(config-if)#ipv6 address 1002::2/64
Configure IPv6 address for the interface eth3
(config-if)#exit
Exit the interface mode
(config)#interface eth4
Enter interface mode for interface eth4
(config-if)#ipv6 address 1003::2/64
Configure IPv6 address for the interface eth4
(config-if)#exit
Exit the interface mode
(config)#interface eth5
Enter interface mode for interface eth5
(config-if)#ipv6 address 1004::2/64
Configure IPv6 address for the interface eth5
(config-if)#exit
Exit the interface mode
(config)#router bgp 100
Enter the router bgp mode
(config-router)#neighbor 3001::2 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 1001::1 remote-as 200
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 1002::1 remote-as 200
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 1003::1 remote-as 200
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 1004::1 remote-as 200
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#address-family ipv6 unicast
Enter address-family mode for neighbor router session to activate.
(config-router-af)#neighbor 1001::1 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 1002::1 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 1003::1 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 1004::1 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 3001::2 activate
Activate the neighbor router with peer address.
(config-router-af)#exit-address-family
Exit address family mode.
(config-router)#exit
Exit the router BGP mode and enter the config mode
(config)#router ipv6 ospf
Enter Router OSPFv3 mode.
(config-router)#redistribute connected
Configure Redistribution of Connected networks into OSPF
(config-router)#exit
Exit the router ospf mode and enter the config mode
(config)#commit
Apply commit
(config)#exit
Exit the config mode
R3
 
#configure terminal
Enter the Configure mode.
(config)#interface eth1
Enter interface mode for interface eth1
(config-if)#ipv6 address 3001::2/64
Configure IPv6 address for the interface eth1
(config-if)#ipv6 router ospf area 0
Enable OSPFv3 routing on an interface, and assign the Area ID 0.
(config-if)#exit
Exit the interface mode
(config)#interface eth2
Enter interface mode for interface eth2
(config-if)#ipv6 address 2001::2/64
Configure IPv6 address for the interface eth2
(config-if)#exit
Exit the interface mode
(config)#interface eth3
Enter interface mode for interface eth3
(config-if)#ipv6 address 2002::2/64
Configure IPv6 address for the interface eth3
(config-if)#exit
Exit the interface mode
(config)#interface eth4
Enter interface mode for interface eth4
(config-if)#ipv6 address 2003::2/64
Configure IPv6 address for the interface eth4
(config-if)#exit
Exit the interface mode
(config)#interface eth5
Enter interface mode for interface eth5
(config-if)#ipv6 address 2004::2/64
Configure IPv6 address for the interface eth5
(config-if)#exit
Exit the interface mode
(config)#router bgp 100
Enter the router bgp mode
(config-router)#neighbor 3001::1 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 2001::1 remote-as 300
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 2002::1 remote-as 300
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 2003::1 remote-as 300
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 2004::1 remote-as 300
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#address-family ipv6 unicast
Enter address-family mode for neighbor router session to activate.
(config-router-af)#neighbor 2001::1 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 2002::1 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 2003::1 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 2004::1 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 3001::1 activate
Activate the neighbor router with peer address.
(config-router-af)#exit-address-family
Exit address family mode.
(config-router)#exit
Exit Router BGP mode
(config)#router ipv6 ospf
Enter Router OSPFv3 mode.
(config-router)#redistribute connected
Configure Redistribution of Connected networks into OSPF
(config-router)#exit
Exit the router ospf mode and enter the config mode
(config)#commit
Apply commit
(config)#exit
Exit the config mode
R4
 
#configure terminal
Enter the Configure mode.
(config)#interface eth2
Enter interface mode for interface eth2
(config-if)#ipv6 address 2001::1/64
Configure IPv6 address for the interface eth2
(config-if)#exit
Exit the interface mode
(config)#interface eth3
Enter interface mode for interface eth3
(config-if)#ipv6 address 2002::1/64
Configure IPv6 address for the interface eth3
(config-if)#exit
Exit the interface mode
(config)#interface eth4
Enter interface mode for interface eth4
(config-if)#ipv6 address 2003::1/64
Configure IPv6 address for the interface eth4
(config-if)#exit
Exit the interface mode
(config)#interface eth5
Enter interface mode for interface eth5
(config-if)#ipv6 address 2004::1/64
Configure IPv6 address for the interface eth5
(config-if)#exit
Exit the interface mode
(config)#interface lo
Enter interface mode for loopback lo
(config-if)#ipv6 address 9999::1/64
Configure IPv6 address for Loopback interface lo
(config-if)#exit
Exit the interface mode
(config)#router bgp 300
Enter the router bgp mode
(config-router)#neighbor 2001::2 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 2002::2 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 2003::2 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#neighbor 2004::2 remote-as 100
Specify a neighbor router with peer address and remote-as for BGP peering.
(config-router)#address-family ipv6 unicast
Enter address-family mode for neighbor router session to activate.
(config-router-af)#neighbor 2001::2 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 2002::2 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 2003::2 activate
Activate the neighbor router with peer address.
(config-router-af)#neighbor 2004::2 activate
Activate the neighbor router with peer address.
(config-router-af)#network 9999::/64
Activate the neighbor router with peer address.
(config-router-af)#exit-address-family
Exit Address Family mode and return to Router mode.
(config-router)#exit
Exit the router BGP mode and enter the config mode
(config)#commit
Apply commit
(config)#exit
Exit the config mode
Last modified date: 10/16/2023