[SwitchD-bgp-af-ipv6] peer 102::1 as-number 200
Configure route reflector.
3.
# Configure Switch C as a route reflector, and configure Switch B and Switch D as its clients.
[SwitchC-bgp-af-ipv6] peer 101::2 reflect-client
[SwitchC-bgp-af-ipv6] peer 102::2 reflect-client
Use the display bgp ipv6 routing-table command on Switch B and Switch D; both of them learned the
network 1::/64.
IPv6 BGP IPsec policy configuration example
Network requirements
As shown in the following figure,
Configure IPv6 BGP on the switches. Switches A and B establish an iBGP relationship. Switches B
•
and C establish an eBGP relationship.
Configure IPsec policies on the switches to authenticate and encrypt protocol packets.
•
Figure 117 Network diagram
Configuration procedure
Configure IP addresses for interfaces. (Details not shown)
1.
Configure the iBGP connection.
2.
# Configure Switch A.
<SwitchA> system-view
[SwitchA] ipv6
[SwitchA] bgp 65008
[SwitchA-bgp] router-id 1.1.1.1
[SwitchA-bgp] ipv6-family
[SwitchA-bgp-af-ipv6] group ibgp internal
[SwitchA-bgp-af-ipv6] peer 1::2 group ibgp
[SwitchA-bgp-af-ipv6] quit
[SwitchA-bgp] quit
# Configure Switch B.
<SwitchB> system-view
[SwitchB] ipv6
[SwitchB] bgp 65008
[SwitchB-bgp] router-id 2.2.2.2
[SwitchB-bgp] ipv6-family
[SwitchB-bgp-af-ipv6] group ibgp internal
[SwitchB-bgp-af-ipv6] peer 1::1 group ibgp
[SwitchB-bgp-af-ipv6] quit
351