258
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure IBGP:
# Configure Switch B.
<SwitchB> system-view
[SwitchB] bgp 65009
[SwitchB-bgp] router-id 2.2.2.2
[SwitchB-bgp] peer 9::2 as-number 65009
[SwitchB-bgp] ipv6-family
[SwitchB-bgp-ipv6] peer 9::2 enable
[SwitchB-bgp-ipv6] quit
# Configure Switch C.
<SwitchC> system-view
[SwitchC] bgp 65009
[SwitchC-bgp] router-id 3.3.3.3
[SwitchC-bgp] peer 9::1 as-number 65009
[SwitchC-bgp] ipv6-family
[SwitchC-bgp-ipv6] peer 9::1 enable
3. Configure EBGP:
# Configure Switch A.
<SwitchA> system-view
[SwitchA] bgp 65008
[SwitchA-bgp] router-id 1.1.1.1
[SwitchA-bgp] peer 10::1 as-number 65009
[SwitchA-bgp] ipv6-family
[SwitchA-bgp-ipv6] peer 10::1 enable
# Configure Switch B.
[SwitchB-bgp] peer 10::2 as-number 65008
[SwitchB-bgp] ipv6-family
[SwitchB-bgp-ipv6] peer 10::2 enable
4. Inject network routes to the BGP routing table:
# Configure Switch A.
[SwitchA-bgp-ipv6] network 10:: 64
[SwitchA-bgp-ipv6] network 50:: 64
[SwitchA-bgp-ipv6] quit
[SwitchA-bgp] quit
# Configure Switch B.
[SwitchB-bgp-ipv6] network 10:: 64
[SwitchB-bgp-ipv6] network 9:: 64
[SwitchB-bgp-ipv6] quit
[SwitchB-bgp] quit
# Configure Switch C.
[SwitchC-bgp-ipv6] network 9:: 64
[SwitchC-bgp-ipv6] quit
[SwitchC-bgp] quit