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

ME60 V800R010C10SPC500 Configuration Guide - IP Routing 01

This is ME60 V800R010C10SPC500 Configuration Guide - IP Routing
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 BGP4+ Route Reflection

Example for Configuring BGP4+ Route Reflection

Configuring BGP4+ RRs simplifies the network configuration because IBGP peers do not need to be fully meshed.

Networking Requirements

In Figure 11-10, Device B receives an Update packet from its EBGP peer and forwards it to Device C. Device C is an RR and has two clients: Device B and Device D.

Device B and Device D do not need to establish an IBGP connection. After receiving an Update packet from Device B, Device C reflects it to Device D. Similarly, after receiving an Update packet from Device D, Device C reflects it to Device B.

Figure 11-10 Configuring BGP4+ route reflection
NOTE:

Interfaces 1 through 2in this example are GE 1/0/0, GE 2/0/0, respectively.



Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure basic BGP4+ functions on each ME device.

  2. Configure an RR and its clients to establish IBGP connections.

  3. Configure Device C as an RR, and then check its routing information.

Data Preparation

To complete the configuration, you need the following data:

  • Router IDs of Device A, Device B, Device C, and Device D

  • AS numbers of Device A, Device B, Device C, and Device D

Procedure

  1. Configure an IPv6 address for each interface. For configuration details, see Configuration Files in this section.
  2. Configure basic BGP4+ functions.

    # Configure Device A.

    [~DeviceA] bgp 100
    [*DeviceA-bgp] router-id 1.1.1.1
    [*DeviceA-bgp] peer 2001:db8:100::2 as-number 200
    [*DeviceA-bgp] ipv6-family unicast
    [*DeviceA-bgp-af-ipv6] peer 2001:db8:100::2 enable
    [*DeviceA-bgp-af-ipv6] network 2001:db8:1:: 64
    [*DeviceA-bgp-af-ipv6] commit
    [~DeviceA-bgp-af-ipv6] quit
    [~DeviceA-bgp] quit

    # Configure Device B.

    [~DeviceB] bgp 200
    [*DeviceB-bgp] router-id 2.2.2.2
    [*DeviceB-bgp] peer 2001:db8:100::1 as-number 100
    [*DeviceB-bgp] peer 2001:db8:101::1 as-number 200
    [*DeviceB-bgp] ipv6-family unicast
    [*DeviceB-bgp-af-ipv6] peer 2001:db8:100::1 enable
    [*DeviceB-bgp-af-ipv6] peer 2001:db8:101::1 enable
    [*DeviceB-bgp-af-ipv6] peer 2001:db8:101::1 next-hop-local
    [*DeviceB-bgp-af-ipv6] commit
    [~DeviceB-bgp-af-ipv6] quit
    [~DeviceB-bgp] quit

    # Configure Device C.

    [~DeviceC] bgp 200
    [*DeviceC-bgp] router-id 3.3.3.3
    [*DeviceC-bgp] peer 2001:db8:101::2 as-number 200
    [*DeviceC-bgp] peer 2001:db8:102::2 as-number 200
    [*DeviceC-bgp] ipv6-family unicast
    [*DeviceC-bgp-af-ipv6] peer 2001:db8:101::2 enable
    [*DeviceC-bgp-af-ipv6] peer 2001:db8:102::2 enable
    [*DeviceC-bgp-af-ipv6] network 2001:db8:101:: 96
    [*DeviceC-bgp-af-ipv6] network 2001:db8:102:: 96
    [*DeviceC-bgp-af-ipv6] commit
    [~DeviceC-bgp-af-ipv6] quit
    [~DeviceC-bgp] quit

    # Configure Device D.

    [~DeviceD] bgp 200
    [*DeviceD-bgp] router-id 4.4.4.4
    [*DeviceD-bgp] peer 2001:db8:102::1 as-number 200
    [*DeviceD-bgp] ipv6-family unicast
    [*DeviceD-bgp-af-ipv6] peer 2001:db8:102::1 enable
    [*DeviceD-bgp-af-ipv6] commit
    [~DeviceD-bgp-af-ipv6] quit
    [~DeviceD-bgp] quit

  3. Configure a BGP4+ RR.

    # Configure Device C as an RR, with Device B and Device D as its clients.

    [~DeviceC-bgp] ipv6-family unicast
    [*DeviceC-bgp-af-ipv6] peer 2001:db8:101::2 reflect-client
    [*DeviceC-bgp-af-ipv6] peer 2001:db8:102::2 reflect-client
    [*DeviceC-bgp-af-ipv6] commit

  4. Verify the configuration.

    # Check the routing table of Device B.

    [~DeviceB] display bgp ipv6 routing-table
     BGP Local router ID is 2.2.2.2
     Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
                   h - history,  i - internal, s - suppressed, S - Stale
                   Origin : i - IGP, e - EGP, ? - incomplete
     RPKI validation codes: V - valid, I - invalid, N - not-found
     Total Number of Routes: 3
     *>  Network  : 2001:db8:1::                             PrefixLen : 64  
         NextHop  : 2001:db8:100::1                          LocPrf    :   
         MED      : 0                                        PrefVal   : 0
         Label    : 
         Path/Ogn : 100i
       i Network  : 2001:db8:101::                           PrefixLen : 96  
         NextHop  : 2001:db8:101::1                          LocPrf    : 100 
         MED      : 0                                        PrefVal   : 0
         Label    : 
         Path/Ogn :  i
     *>i Network  : 2001:db8:102::                           PrefixLen : 96  
         NextHop  : 2001:db8:101::1                          LocPrf    : 100 
         MED      : 0                                        PrefVal   : 0
         Label    : 
         Path/Ogn :  i

    # Display the routing table of Device D.

    [~DeviceD] display bgp ipv6 routing-table
     BGP Local router ID is 4.4.4.4
     Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
                   h - history,  i - internal, s - suppressed, S - Stale
                   Origin : i - IGP, e - EGP, ? - incomplete
     RPKI validation codes: V - valid, I - invalid, N - not-found
     Total Number of Routes: 3
     *>i Network  : 2001:db8:1::                             PrefixLen : 64  
         NextHop  : 2001:db8:101::2                          LocPrf    : 100 
         MED      : 0                                        PrefVal   : 0
         Label    : 
         Path/Ogn : 100i
     *>i Network  : 2001:db8:101::                           PrefixLen : 96  
         NextHop  : 2001:db8:102::1                          LocPrf    : 100 
         MED      : 0                                        PrefVal   : 0
         Label    : 
         Path/Ogn :  i
       i Network  : 2001:db8:102::                           PrefixLen : 96  
         NextHop  : 2001:db8:102::1                          LocPrf    : 100 
         MED      : 0                                        PrefVal   : 0
         Label    : 
         Path/Ogn :  i

    The preceding command output shows that Device D have learned from Device C the routes advertised by Device A.

Configuration Files

  • Device A configuration file

    #
    sysname DeviceA
    #
    interface GigabitEthernet1/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1::1/64
    #
    interface GigabitEthernet2/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:100::1/96
    #
    bgp 100
     router-id 1.1.1.1
     peer 2001:db8:100::2 as-number 200
    #
     ipv6-family unicast
      undo synchronization
      network 2001:db8:1:: 64
      peer 2001:db8:100::2 enable
    #
    return
  • Configuration file of Device B

    #
    sysname DeviceB
    #
    interface GigabitEthernet1/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:101::2/96
    #
    interface GigabitEthernet2/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:100::2/96
    #
    bgp 200
     router-id 2.2.2.2
     peer 2001:db8:100::1 as-number 100
     peer 2001:db8:101::1 as-number 200
    #
     ipv6-family unicast
      undo synchronization
      peer 2001:db8:100::1 enable
      peer 2001:db8:101::1 enable
      peer 2001:db8:101::1 next-hop-local
    #
    return
  • Device C configuration file

    #
    sysname DeviceC
    #
    interface GigabitEthernet1/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:102::1/96
    #
    interface GigabitEthernet2/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:101::1/96
    #
    bgp 200
     router-id 3.3.3.3
     peer 2001:db8:101::2 as-number 200
     peer 2001:db8:102::2 as-number 200
    #
     ipv6-family unicast
      undo synchronization
      network 2001:db8:101:: 96
      network 2001:db8:102:: 96
      peer 2001:db8:101::2 enable
      peer 2001:db8:101::2 reflect-client
      peer 2001:db8:102::2 enable
      peer 2001:db8:102::2 reflect-client
    #
    return
  • Device D configuration file

    #
    sysname DeviceD
    #
    interface GigabitEthernet1/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:102::2/96
    #
    bgp 200
     router-id 4.4.4.4
     peer 2001:db8:102::1 as-number 200
     #
     ipv4-family unicast
      undo synchronization
     #
     ipv6-family unicast
      undo synchronization
      peer 2001:db8:102::1 enable
    #
    return
Translation
Download
Updated: 2019-01-04

Document ID: EDOC1100059437

Views: 20618

Downloads: 15

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