IPv6 BGP route reflector configuration example

Network requirements

As shown in Figure 83, run EBGP between Switch A and Switch B, run IBGP between Switch C and Switch B, and between Switch C and Switch D.

Configure Switch C as a route reflector with clients Switch B and Switch D.

Figure 83: Network diagram

Configuration procedure

  1. Configure IPv6 addresses for interfaces and IPv4 addresses for loopback interfaces. (Details not shown.)

  2. Configure IBGP and EBGP connections and advertise network routes through IPv6 BGP:

    # Configure Switch A.

    <SwitchA> system-view
    [SwitchA] bgp 100
    [SwitchA-bgp-default] router-id 1.1.1.1
    [SwitchA-bgp-default] peer 100::2 as-number 200
    [SwitchA-bgp-default] address-family ipv6
    [SwitchA-bgp-default-ipv6] peer 100::2 enable
    [SwitchA-bgp-default-ipv6] network 1:: 64
    [SwitchA-bgp-default-ipv6] network 100:: 96
    [SwitchA-bgp-default-ipv6] quit
    [SwitchA-bgp-default] quit
    

    # Configure Switch B.

    <SwitchB> system-view
    [SwitchB] bgp 200
    [SwitchB-bgp-default] router-id 2.2.2.2
    [SwitchB-bgp-default] peer 100::1 as-number 100
    [SwitchB-bgp-default] peer 101::1 as-number 200
    [SwitchB-bgp-default] address-family ipv6
    [SwitchB-bgp-default-ipv6] peer 100::1 enable
    [SwitchB-bgp-default-ipv6] peer 101::1 enable
    [SwitchB-bgp-default-ipv6] peer 101::1 next-hop-local
    [SwitchB-bgp-default-ipv6] network 100:: 96
    [SwitchB-bgp-default-ipv6] network 101:: 96
    [SwitchB-bgp-default-ipv6] quit
    [SwitchB-bgp-default] quit
    

    # Configure Switch C.

    <SwitchC> system-view
    [SwitchC] bgp 200
    [SwitchC-bgp-default] router-id 3.3.3.3
    [SwitchC-bgp-default] peer 101::2 as-number 200
    [SwitchC-bgp-default] peer 102::2 as-number 200
    [SwitchC-bgp-default] address-family ipv6
    [SwitchC-bgp-default-ipv6] peer 101::2 enable
    [SwitchC-bgp-default-ipv6] peer 102::2 enable
    [SwitchC-bgp-default-ipv6] network 101:: 96
    [SwitchC-bgp-default-ipv6] network 102:: 96
    

    # Configure Switch D.

    <SwitchD> system-view
    [SwitchD] bgp 200
    [SwitchD-bgp-default] router-id 4.4.4.4
    [SwitchD-bgp-default] peer 102::1 as-number 200
    [SwitchD-bgp-default] address-family ipv6
    [SwitchD-bgp-default-ipv6] peer 102::1 enable
    [SwitchD-bgp-default-ipv6] network 102:: 96
    
  3. Configure Switch C as a route reflector, and configure Switch B and Switch D as its clients.

    [SwitchC-bgp-default-ipv6] peer 101::2 reflect-client
    [SwitchC-bgp-default-ipv6] peer 102::2 reflect-client
    [SwitchC-bgp-default-ipv6] quit
    [SwitchC-bgp-default] quit
    

Verifying the configuration

# Execute the display bgp routing-table ipv6 command on Switch D.

[SwitchD] display bgp routing-table ipv6

 Total number of routes: 5

 BGP local router ID is 4.4.4.4
 Status codes: * - valid, > - best, d - dampened, h - history,
               s - suppressed, S - stale, i - internal, e - external
               Origin: i - IGP, e - EGP, ? - incomplete

* >i Network : 1::                                      PrefixLen : 64
     NextHop : 101::2                                   LocPrf    : 100
     PrefVal : 0                                        OutLabel  : NULL
     MED     : 0
     Path/Ogn: 100i

* >i Network : 100::                                    PrefixLen : 96
     NextHop : 101::2                                   LocPrf    : 100
     PrefVal : 0                                        OutLabel  : NULL
     MED     : 0
     Path/Ogn: i

* >i Network : 101::                                    PrefixLen : 96
     NextHop : 102::1                                   LocPrf    : 100
     PrefVal : 0                                        OutLabel  : NULL
     MED     : 0
     Path/Ogn: i

* >  Network : 102::                                    PrefixLen : 96
     NextHop : ::                                       LocPrf    :
     PrefVal : 32768                                    OutLabel  : NULL
     MED     : 0
     Path/Ogn: i

*  i Network : 102::                                    PrefixLen : 96
     NextHop : 102::1                                   LocPrf    : 100
     PrefVal : 0                                        OutLabel  : NULL
     MED     : 0
     Path/Ogn: i

The output shows that Switch D has learned the network 1::/64 from Switch C through route reflection.