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 Basic BGP4+ Functions

Example for Configuring Basic BGP4+ Functions

Networking Requirements

As shown in Figure 9-27, there are two ASs: 65008 and 65009. Router A belongs to AS 65008; Router B, and Router C belong to AS65009. Routing Protocol is required to exchange the routing information between the two ASs.

Figure 9-27 Figure 1 Networking diagram of configuring basic BGP4+ functions

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure the IBGP connection between Router B and Router C.
  2. Configure the EBGP connection between Router A and Router B.

Procedure

  1. Assign an IPv6 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 8::1/64
    [RouterA] interface gigabitethernet 2/0/0
    [RouterA-GigabitEthernet1/0/0] ipv6 enable
    [RouterA-GigabitEthernet1/0/0] ipv6 address 10::2/64

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

  2. Configure the IBGP.

    # Configure Router B.

    [RouterB] ipv6
    [RouterB] bgp 65009
    [RouterB-bgp] router-id 2.2.2.2
    [RouterB-bgp] peer 9:1::2 as-number 65009
    [RouterB-bgp] ipv6-family unicast
    [RouterB-bgp-af-ipv6] peer 9:1::2 enable
    [RouterB-bgp-af-ipv6] network 9:1:: 64

    # Configure Router C.

    [RouterC] ipv6
    [RouterC] bgp 65009
    [RouterC-bgp] router-id 3.3.3.3
    [RouterC-bgp] peer 9:1::1 as-number 65009
    [RouterC-bgp] ipv6-family unicast
    [RouterC-bgp-af-ipv6] peer 9:1::1 enable
    [RouterC-bgp-af-ipv6] network 9:1:: 64

  3. Configure the EBGP.

    # Configure Router A.

    [RouterA] ipv6
    [RouterA] bgp 65008
    [RouterA-bgp] router-id 1.1.1.1
    [RouterA-bgp] peer 10::1 as-number 65009
    [RouterA-bgp] ipv6-family unicast
    [RouterA-bgp-af-ipv6] peer 10::1 enable
    [RouterA-bgp-af-ipv6] network 10:: 64
    [RouterA-bgp-af-ipv6] network 8:: 64

    # Configure Router B.

    [RouterB] bgp 65009
    [RouterB-bgp] peer 10::2 as-number 65008
    [RouterB-bgp] ipv6-family unicast
    [RouterB-bgp-af-ipv6] peer 10::2 enable
    [RouterB-bgp-af-ipv6] network 10:: 64

    # Check the connection status of BGP4+ peers.

    [RouterB] display bgp ipv6 peer
     BGP local router ID : 2.2.2.2
     Local AS number : 65009
     Total number of peers : 2                Peers in established state : 2
     
      Peer            V          AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv
    
      9:1::2          4       65009       10       14     0 00:07:10 Established       1
      10::2           4       65008        6        6     0 00:02:17 Established       2

    The routing table shows that Router B has set up BGP4+ connections with other routers.

    # Display the routing table of Router A.

    [RouterA] display bgp ipv6 routing-table
                                                                                    
     BGP Local router ID is 1.1.1.1                                                 
     Status codes: * - valid, > - best, d - damped,                                 
                   h - history,  i - internal, s - suppressed, S - Stale            
                   Origin : i - IGP, e - EGP, ? - incomplete                        
                                                                                    
                                                                                    
     Total Number of Routes: 4                                                      
     *>  Network  : 8::                                      PrefixLen : 64         
         NextHop  : ::                                       LocPrf    :            
         MED      : 0                                        PrefVal   : 0          
         Label    :                                                                 
         Path/Ogn : i                                                               
     *>  Network  : 9:1::                                    PrefixLen : 64         
         NextHop  : 10::1                                    LocPrf    :            
         MED      : 0                                        PrefVal   : 0          
         Label    :                                                                 
         Path/Ogn : 65009  i                                                        
     *>  Network  : 10::                                     PrefixLen : 64         
         NextHop  : ::                                       LocPrf    :            
         MED      : 0                                        PrefVal   : 0          
         Label    :                                                                 
         Path/Ogn : i                                                               
                                                                                    
         NextHop  : 10::1                                    LocPrf    :            
         MED      : 0                                        PrefVal   : 0          
         Label    :                                                                 
         Path/Ogn : 65009  i                                                        

    The routing table shows that Router A has learned the route from AS 65009. AS 65008 and AS 65009 can exchange their routing information.

Configuration Files

  • Configuration file of Router A

    #
     sysname RouterA
    #
     ipv6
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address 8::1/64
    #
    interface GigabitEthernet2/0/0
     ipv6 enable
     ipv6 address 10::2/64
    #
    bgp 65008
     router-id 1.1.1.1
     peer 10::1 as-number 65009
     #
     ipv4-family unicast
      undo synchronization
     #
     ipv6-family unicast
      undo synchronization
      network 8:: 64
      network 10:: 64
      peer 10::1 enable
    #
    return
  • Configuration file of Router B

    #
     sysname RouterB
    #
     ipv6
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address 9:1::1/64
    #
    interface GigabitEthernet2/0/0
     ipv6 enable
     ipv6 address 10::1/64
    #
    bgp 65009
     router-id 2.2.2.2
     peer 9:1::2 as-number 65009
     peer 10::2 as-number 65008
     #
     ipv4-family unicast
      undo synchronization
     #
     ipv6-family unicast
      undo synchronization  
      network 9:1:: 64
      network 10:: 64
      peer 9:1::2 enable
      peer 10::2 enable
    #
    return
  • Configuration file of Router C

    #
     sysname RouterC
    #
     ipv6
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address 9:1::2/64
    #
    bgp 65009
     router-id 3.3.3.3
     peer 9:1::1 as-number 65009
     #
     ipv4-family unicast
      undo synchronization
     #
     ipv6-family unicast
      undo synchronization  
      network 9:1:: 64
      peer 9:1::1 enable
    #
    return
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174069

Views: 114194

Downloads: 254

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