
Configuring BGP
Configuring BGP for IPv6
OmniSwitch AOS Release 7 Advanced Routing Configuration Guide
March 2011
page 3-71
-> ipv6 bgp neighbor 2021::10
3
Assign an AS number to the IPv6 peer using the
ipv6 bgp neighbor remote-as
command. For exam-
ple, to assign the peer created in Step 2 to AS number 20, you would enter:
-> ipv6 bgp neighbor 2021::10 remote-as 20
4
Enable IPv6 unicast capability to the IPv6 BGP peer using the
ipv6 bgp neighbor
command, as
shown:
-> ipv6 bgp neighbor 2021::10 activate-ipv6
5
Apply the policy to the bgp neighbor using the
ipv6 bgp neighbor in-prefix6list
and
ipv6 bgp neigh-
bor out-prefix6list
commands as shown:
-> ipv6 bgp neighbor 2021::10 out-prefix6list uniqLocal
-> ipv6 bgp neighbor 2021::10 in-prefix6list uniqLocal
6
Enable the BGP peer status using the
ipv6 bgp neighbor admin-state
command:
-> ipv6 bgp neighbor 2021::10 admin-state enable
Configuring an IPv6 BGP peer to Exchange IPv4 Prefixes
A BGP peer that is identified by its IPv6 address can be used to exchange IPv4 prefixes. However, to do
this, both peers should be enabled with IPv4 BGP unicast and should have interfaces that support IPv4
addresses. To configure an IPv6 BGP peer to exchange IPv4 prefixes, follow the steps mentioned below:
1
Create an IPv6 BGP peer with which the BGP speaker will establish peering using its IPv6 address
with the
ipv6 bgp neighbor
command, as shown:
-> ipv6 bgp neighbor 2001::1
2
Assign an AS number to the IPv6 peer using the
ipv6 bgp neighbor remote-as
command. For exam-
ple, to assign the peer created in Step 1 to AS number 10, you would enter:
-> ipv6 bgp neighbor 2001::1 remote-as 10
3
Set the IPv4 next hop address for IPv4 prefixes advertised to the IPv6 BGP peer using the
ipv6 bgp neighbor ipv4-nexthop
command, as shown:
-> ipv6 bgp neighbor 2001::1 ipv4-nexthop 190.17.20.1
4
Enable the BGP peer status using the
ipv6 bgp neighbor admin-state
command, as shown:
-> ipv6 bgp neighbor 2001::1 admin-state enable
Changing the Local Router Address for an IPv6 Peer Session
TCP connections to an IPv6 peer's address are assigned to the closest interface based on reachability. Any
operational local IPv6 interface can be assigned to the IPv6 BGP peering session by explicitly forcing the
TCP connection to use the specified interface.
The
ipv6 bgp neighbor update-source
command sets the local IPv6 interface address or name through
which this BGP peer can be contacted.
For example, to configure a peer with an IPv6 address of
2004::1
to be contacted via the IPv6 interface
ipv6IntfVlan2, use the
ipv6 bgp neighbor update-source
command, as shown: