No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - IP Unicast Routing

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring a BGP4+ Route Reflection

Example for Configuring a BGP4+ Route Reflection

Networking Requirements

As shown in Figure 9-33, four devices belong to two ASs. You are required to perform simplified configuration to ensure that the two ASs communicate with each other.

Figure 9-33 Networking diagram of configuring BGP4+ route reflection

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure basic BGP4+ functions to allow BGP neighbors to communicate.

  2. Configure RouterC as a route reflector so that no IBGP connection needs to be established between RouterB and RouterD. This simplifies the configuration.

Procedure

  1. Configure an IP address for each interface.

    # Configure IPv6 addresses for interfaces on RouterA.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] ipv6
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ipv6 enable
    [RouterA-GigabitEthernet1/0/0] ipv6 address 101::2/96
    [RouterA] interface gigabitethernet 2/0/0
    [RouterA-GigabitEthernet1/0/0] ipv6 enable
    [RouterA-GigabitEthernet1/0/0] ipv6 address 100::2/96

    The configurations of RouterB, RouterC and RouterD are similar to the configuration of RouterA, and are not mentioned here.

  2. Configure basic BGP4+ functions.

    # Configure RouterA.

    [RouterA] ipv6
    [RouterA] bgp 100
    [RouterA-bgp] router-id 1.1.1.1
    [RouterA-bgp] peer 100::2 as-number 200
    [RouterA-bgp] ipv6-family unicast
    [RouterA-bgp-af-ipv6] peer 100::2 enable
    [RouterA-bgp-af-ipv6] network 1:: 64
    [RouterA-bgp-af-ipv6] network 100:: 96
    [RouterA-bgp-af-ipv6] quit
    [RouterA-bgp] quit

    # Configure RouterB.

    [RouterB] ipv6
    [RouterB] bgp 200
    [RouterB-bgp] router-id 2.2.2.2
    [RouterB-bgp] peer 100::1 as-number 100
    [RouterB-bgp] peer 101::1 as-number 200
    [RouterB-bgp] ipv6-family unicast
    [RouterB-bgp-af-ipv6] peer 100::1 enable
    [RouterB-bgp-af-ipv6] peer 101::1 enable
    [RouterB-bgp-af-ipv6] network 100:: 96
    [RouterB-bgp-af-ipv6] network 101:: 96
    [RouterB-bgp-af-ipv6] quit
    [RouterB-bgp] quit

    # Configure RouterC.

    [RouterC] ipv6
    [RouterC] bgp 200
    [RouterC-bgp] router-id 3.3.3.3
    [RouterC-bgp] peer 101::2 as-number 200
    [RouterC-bgp] peer 102::2 as-number 200
    [RouterC-bgp] ipv6-family unicast
    [RouterC-bgp-af-ipv6] peer 101::2 enable
    [RouterC-bgp-af-ipv6] peer 102::2 enable
    [RouterC-bgp-af-ipv6] network 101:: 96
    [RouterC-bgp-af-ipv6] network 102:: 96

    # Configure RouterD.

    [RouterD] ipv6
    [RouterD] bgp 200
    [RouterD-bgp] router-id 4.4.4.4
    [RouterD-bgp] peer 102::1 as-number 200
    [RouterD-bgp] ipv6-family unicast
    [RouterD-bgp-af-ipv6] peer 102::1 enable
    [RouterD-bgp-af-ipv6] network 102:: 96
    [RouterD-bgp-af-ipv6] quit
    [RouterD-bgp] quit

  3. Configure the route reflector.

    # Configure RouterC as a route reflector, and RouterB and RouterD serve as its clients.

    [RouterC-bgp-af-ipv6] peer 101::2 reflect-client
    [RouterC-bgp-af-ipv6] peer 102::2 reflect-client

    # Check the routing table of RouterB.

    [RouterB] display bgp ipv6 routing-table
                                                                                    
     BGP Local router ID is 2.2.2.2                                                 
     Status codes: * - valid, > - best, d - damped,                                 
                   h - history,  i - internal, s - suppressed, S - Stale            
                   Origin : i - IGP, e - EGP, ? - incomplete                        
                                                                                    
                                                                                    
     Total Number of Routes: 6                                                      
     *>  Network  : 1::                                      PrefixLen : 64
         NextHop  : 100::1                                   LocPrf    :
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : 100 i
     *>  Network  : 100::                                    PrefixLen : 96
         NextHop  : ::                                       LocPrf    :
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : i
         NextHop  : 100::1                                   LocPrf    :
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : 100 i
     *>  Network  : 101::                                    PrefixLen : 96
         NextHop  : ::                                       LocPrf    :
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : i
        i
         NextHop  : 101::1                                   LocPrf    : 100
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : i
     *>i Network  : 102::                                    PrefixLen : 96
         NextHop  : 101::1                                   LocPrf    : 100
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : i                   

    # Check the routing table of RouterD.

    [RouterD] display bgp ipv6 routing-table
                                                                                    
     BGP Local router ID is 4.4.4.4                                                 
     Status codes: * - valid, > - best, d - damped,                                 
                   h - history,  i - internal, s - suppressed, S - Stale            
                   Origin : i - IGP, e - EGP, ? - incomplete                        
                                                                                    
                                                                                    
     Total Number of Routes: 5                                                      
     *>i Network  : 1::                                      PrefixLen : 64
         NextHop  : 100::1                                   LocPrf    : 100
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : 100 i
     *>i Network  : 100::                                    PrefixLen : 96
         NextHop  : 101::2                                   LocPrf    : 100
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : i
     *>i Network  : 101::                                    PrefixLen : 96
         NextHop  : 102::1                                   LocPrf    : 100
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : i
     *>  Network  : 102::                                    PrefixLen : 96
         NextHop  : ::                                       LocPrf    :
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : i
        i
         NextHop  : 102::1                                   LocPrf    : 100
         MED      : 0                                        PrefVal   : 0
         Label    :
         Path/Ogn : i               

    The routing table shows that RouterD and RouterB learn the routing information advertised by RouterA from RouterC.

Configuration Files

  • Configuration file of RouterA

    #
     sysname RouterA
    #
     ipv6
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address 1::1/64
    #
    interface GigabitEthernet2/0/0
     ipv6 enable
     ipv6 address 100::1/96
    #
    bgp 100
     router-id 1.1.1.1
     peer 100::2 as-number 200
     #
     ipv4-family unicast
      undo synchronization
     #
     ipv6-family unicast
      undo synchronization
      network 1:: 64
      network 100:: 96
      peer 100::2 enable
    #
    return
  • Configuration file of RouterB

    #
     sysname RouterB
    #
     ipv6
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address 101::2/96
    #
    interface GigabitEthernet2/0/0
     ipv6 enable
     ipv6 address 100::2/96
    #
    bgp 200
     router-id 2.2.2.2
     peer 100::1 as-number 100
     peer 101::1 as-number 200
     #
     ipv4-family unicast
      undo synchronization
     #
     ipv6-family unicast
      undo synchronization
      network 100:: 96
      network 101:: 96
      peer 100::1 enable
      peer 101::1 enable
    #
    return
  • Configuration file of RouterC

    #
     sysname RouterC
    #
     ipv6
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address 102::1/96
    #
    interface GigabitEthernet2/0/0
     ipv6 enable
     ipv6 address 101::1/96
    #
    bgp 200
     router-id 3.3.3.3
     peer 101::2 as-number 200
     peer 102::2 as-number 200
     #
     ipv4-family unicast
      undo synchronization
     #
     ipv6-family unicast
      undo synchronization
      network 101:: 96
      network 102:: 96
      peer 101::2 enable
      peer 101::2 reflect-client
      peer 102::2 enable
      peer 102::2 reflect-client
    #
    return
  • Configuration file of RouterD

    #
     sysname RouterD
    #
     ipv6
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address 102::2/96
    #
    bgp 200
     router-id 4.4.4.4
     peer 102::1 as-number 200
     #
     ipv4-family unicast
      undo synchronization
     #
     ipv6-family unicast
      undo synchronization
      network 102:: 96
      peer 102::1 enable
    #
    return
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174069

Views: 128645

Downloads: 274

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next