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

Configuration Guide - IP Unicast Routing

CloudEngine 8800, 7800, 6800, and 5800 V200R005C10

This document describes the configurations of IP Unicast Routing, including IP Routing, Static Route, RIP, RIPng, OSPF, OSPFv3, IPv4 IS-IS, IPv6 IS-IS, BGP, Routing Policy, and PBR.
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 OSPFv3 Route Summarization on an ABR

Example for Configuring OSPFv3 Route Summarization on an ABR

Networking Requirements

Routes with the same IPv6 prefix can be summarized into one route. On a large-scale OSPFv3 network, route lookup may slow down because of the large size of the routing table. To reduce the routing table size and simplify management, configure route summarization. With route summarization, if a link connected to a device within an IPv6 address range that has been summarized alternates between Up and Down, the link status change is not advertised to the devices beyond the IPv6 address range. This prevents route flapping and improves network stability.

In Figure 6-13, all devices run OSPFv3. To reduce the routing table size, simplify route management, and improve network stability, it is required that the ABR be configured to summarize the routes with the same prefix (FC00:0:0::) into route FC00:0:0::/48 and advertise it only to area 0.

Figure 6-13 Example for configuring OSPFv3 route summarization on an ABR

Configuration Roadmap

The configuration roadmap is as follows:

  1. Assign an IP address to each interface to ensure that devices on the network can communicate with each other.

  2. Configure basic OSPFv3 functions on all devices.

  3. Configure OSPFv3 route summarization on the ABR.

Procedure

  1. Configure an IP address for each interface.

    # Configure SwitchA. The configurations of SwitchB, SwitchC are similar to the configuration of SwitchA.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] interface 10ge 1/0/1  
    [~SwitchA-10GE1/0/1] undo portswitch  
    [*SwitchA-10GE1/0/1] ipv6 enable
    [*SwitchA-10GE1/0/1] ipv6 address fc00:0:0:1002::1 64
    [*SwitchA-10GE1/0/1] quit
    [*SwitchA] commit

    # Configure the ABR.

    <HUAWEI> system-view
    [~HUAWEI] sysname ABR
    [*HUAWEI] commit
    [~ABR] interface 10ge 1/0/1  
    [~ABR-10GE1/0/1] undo portswitch  
    [*ABR-10GE1/0/1] ipv6 enable
    [*ABR-10GE1/0/1] ipv6 address fc00:0:0:1001::2 64
    [*ABR-10GE1/0/1] quit
    [*ABR] interface 10ge 1/0/2  
    [*ABR-10GE1/0/2] undo portswitch  
    [*ABR-10GE1/0/2] ipv6 enable
    [*ABR-10GE1/0/2] ipv6 address fc00:0:0:1002::2 64
    [*ABR-10GE1/0/2] quit
    [*ABR] interface 10ge 1/0/3  
    [*ABR-10GE1/0/3] undo portswitch  
    [*ABR-10GE1/0/3] ipv6 enable
    [*ABR-10GE1/0/3] ipv6 address fc00:0:0:1003::2 64
    [*ABR-10GE1/0/3] quit
    [*ABR] commit

  2. Configure basic OSPFv3 functions.

    # Configure SwitchA.

    [~SwitchA] ospfv3 1
    [*SwitchA-ospfv3-1] router-id 10.1.1.1
    [*SwitchA-ospfv3-1] area 0.0.0.1
    [*SwitchA-ospfv3-1-area-0.0.0.1] quit
    [*SwitchA-ospfv3-1] quit
    [*SwitchA] commit
    [~SwitchA] interface 10ge 1/0/1
    [~SwitchA-10GE1/0/1] ospfv3 1 area 1
    [*SwitchA-10GE1/0/1] quit
    [*SwitchA] commit

    # Configure SwitchB.

    [~SwitchB] ospfv3 1
    [*SwitchB-ospfv3-1] router-id 10.2.2.2
    [*SwitchB-ospfv3-1] area 0.0.0.0
    [*SwitchB-ospfv3-1-area-0.0.0.0] quit
    [*SwitchB-ospfv3-1] quit
    [*SwitchB] commit
    [~SwitchB] interface 10ge 1/0/1
    [~SwitchB-10GE1/0/1] ospfv3 1 area 0
    [*SwitchB-10GE1/0/1] quit
    [*SwitchB] commit

    # Configure SwitchC.

    [~SwitchC] ospfv3 1
    [*SwitchC-ospfv3-1] router-id 10.3.3.3
    [*SwitchC-ospfv3-1] area 0.0.0.1
    [*SwitchC-ospfv3-1-area-0.0.0.1] quit
    [*SwitchC-ospfv3-1] quit
    [*SwitchC] commit
    [~SwitchC] interface 10ge 1/0/1
    [~SwitchC-10GE1/0/1] ospfv3 1 area 1
    [*SwitchC-10GE1/0/1] quit
    [*SwitchC] commit

    # Configure the ABR.

    [~ABR] ospfv3 1
    [*ABR-ospfv3-1] router-id 10.4.4.4
    [*ABR-ospfv3-1] area 0.0.0.0
    [*ABR-ospfv3-1-area-0.0.0.0] quit
    [*ABR-ospfv3-1] area 0.0.0.1
    [*ABR-ospfv3-1-area-0.0.0.1] quit
    [*ABR-ospfv3-1] quit
    [*ABR] commit
    [~ABR] interface 10ge 1/0/1
    [~ABR-10GE1/0/1] ospfv3 1 area 0
    [*ABR-10GE1/0/1] quit
    [*ABR] interface 10ge 1/0/2
    [*ABR-10GE1/0/2] ospfv3 1 area 1
    [*ABR-10GE1/0/2] quit
    [*ABR] interface 10ge 1/0/3
    [*ABR-10GE1/0/3] ospfv3 1 area 1
    [*ABR-10GE1/0/3] quit
    [*ABR] commit

    # Run the display ospfv3 peer command to check whether the ABR establishes an OSPFv3 neighbor relationship with SwitchA, SwitchB, and SwitchC. The following example uses the command output on the ABR:

    [~ABR] display ospfv3 peer
                                                                                                                                        
    OSPFv3 Process (1)                                                                                                               
    Total number of peer(s): 3                                                                                                          
     Peer(s) in full state: 3                                                                                                           
    OSPFv3 Area (0.0.0.0)                                                                                                               
    Neighbor ID      Pri State            Dead Time  Interface          Instance ID                                                     
    10.2.2.2           1 Full/Backup      00:00:39   10GE1/0/1             0                                                            
    OSPFv3 Area (0.0.0.1)                                                                                                               
    Neighbor ID      Pri State            Dead Time  Interface          Instance ID                                                     
    10.1.1.1           1 Full/Backup      00:00:31   10GE1/0/2             0                                                            
    10.3.3.3           1 Full/Backup      00:00:32   10GE1/0/3             0                                                            
    

    # Run the display ospfv3 lsdb command on the ABR to check the OSPFv3 LSDB information. The Inter-area-prefix LSA field in the LSDB of area 1 shows that no summarization is performed for the routes. Therefore, the routes advertised to area 0 are not summarized.

    [~ABR] display ospfv3 lsdb
                                                                                                                                        
               OSPFv3 Router with ID (10.4.4.4) (Process 1)                                                                          
                                                                                                                                        
                   Link-LSA (Interface 10GE1/0/1)                                                                                       
    Link State ID   Origin Router    Age   Seq#       CkSum      Prefix                                                                            
    0.0.0.54        10.2.2.2         190   0x80000001 0x7edd          1                                                                 
    0.0.11.187      10.4.4.4         1125  0x80000001 0xd1c8          1                                                                 
                                                                                                                                        
                   Link-LSA (Interface 10GE1/0/2)                                                                                      
    Link State ID   Origin Router    Age   Seq#       CkSum      Prefix                                                                 
    0.0.0.56        10.1.1.1         391   0x80000002 0x854f          1                                                                 
    0.0.11.226      10.4.4.4         938   0x80000002 0x56f3          1                                                                 
                                                                                                                                        
                   Link-LSA (Interface 10GE1/0/3)                                                                                       
    Link State ID   Origin Router    Age   Seq#       CkSum      Prefix                                                                 
    0.0.0.13        10.3.3.3         692   0x80000001 0xc969          1                                                                 
    0.0.11.189      10.4.4.4         885   0x80000002 0x2e65          1                                                                 
                                                                                                                                        
                   Router-LSA (Area 0.0.0.0)                                                                                            
    Link State ID   Origin Router    Age   Seq#       CkSum    Link                                                                     
    0.0.0.1         10.2.2.2         150   0x80000002 0x7782      1                                                                     
    0.0.0.1         10.4.4.4         149   0x80000005 0x2738      1                                                                     
                                                                                                                                        
                   Network-LSA (Area 0.0.0.0)                                                                                           
    Link State ID   Origin Router    Age   Seq#       CkSum                                                                             
    0.0.11.187      10.4.4.4         149   0x80000002 0x38ec                                                                            
                                                                                                                                        
                   Inter-Area-Prefix-LSA (Area 0.0.0.0)                                                                                 
    Link State ID   Origin Router    Age   Seq#       CkSum                                                                             
    0.0.0.2         10.4.4.4         938   0x80000001 0xd0fd                                                                            
    0.0.0.3         10.4.4.4         885   0x80000001 0xd8f3                                                                            
                                                                                                                                        
                   Intra-Area-Prefix-LSA (Area 0.0.0.0)                                                                                 
    Link State ID   Origin Router    Age   Seq#       CkSum   Prefix Reference                                                          
    0.0.0.1         10.4.4.4         149   0x80000002 0x635f       1 Network-LSA                                                        
                                                                                                                                        
                   Router-LSA (Area 0.0.0.1)                                                                                            
    Link State ID   Origin Router    Age   Seq#       CkSum    Link                                                                     
    0.0.0.1         10.1.1.1         391   0x80000002 0x696a      1                                                                     
    0.0.0.1         10.3.3.3         687   0x80000002 0x46d7      1                                                                     
    0.0.0.1         10.4.4.4         390   0x80000003 0x5602      2                                                                     
                                                                                                                                        
                   Network-LSA (Area 0.0.0.1)                                                                                           
    Link State ID   Origin Router    Age   Seq#       CkSum                                                                             
    0.0.11.189      10.4.4.4         686   0x80000001 0x41df                                                                            
    0.0.11.226      10.4.4.4         401   0x80000001 0x976a                                                                            
                                                                                                                                        
                   Inter-Area-Prefix-LSA (Area 0.0.0.1)                                                                                 
    Link State ID   Origin Router    Age   Seq#       CkSum                                                                             
    0.0.0.1         10.4.4.4         950   0x80000001 0xc808                                                                            
                                                                                                                                        
                   Intra-Area-Prefix-LSA (Area 0.0.0.1)                                                                                 
    Link State ID   Origin Router    Age   Seq#       CkSum   Prefix Reference                                                          
    0.0.0.1         10.4.4.4         697   0x80000001 0xad12       1 Network-LSA                                                        
    0.0.0.2         10.4.4.4         401   0x80000001 0xfc9d       1 Network-LSA                                                        
    
    [~ABR] display ospfv3 lsdb inter-prefix                                                                                                                                    
               OSPFv3 Router with ID (10.4.4.4) (Process 1)                                                                          
                                                                                                                                        
                   Inter-Area-Prefix-LSA (Area 0.0.0.0)                                                                                 
                                                                                                                                        
      LS Age: 1006                                                                                                                      
      LS Type: Inter-Area-Prefix-LSA                                                                                                    
      Link State ID: 0.0.0.2                                                                                                            
      Originating Router: 10.4.4.4                                                                                                      
      LS Seq Number: 0x80000001                                                                                                         
      Retransmit Count: 0                                                                                                               
      Checksum: 0xd0fd                                                                                                                  
      Length: 36                                                                                                                        
                                                                                                                                        
       Metric: 1                                                                                                                        
       Prefix: FC00:0:0:1002::/64                                                                                                       
        Prefix Options: 0 (-|-|-|-|-)                                                                                                   
                                                                                                                                        
      LS Age: 953                                                                                                                       
      LS Type: Inter-Area-Prefix-LSA                                                                                                    
      Link State ID: 0.0.0.3                                                                                                            
      Originating Router: 10.4.4.4                                                                                                      
      LS Seq Number: 0x80000001                                                                                                         
      Retransmit Count: 0                                                                                                               
      Checksum: 0xd8f3                                                                                                                  
      Length: 36                                                                                                                        
                                                                                                                                        
       Metric: 1                                                                                                                        
       Prefix: FC00:0:0:1003::/64                                                                                                       
        Prefix Options: 0 (-|-|-|-|-)                                                                                                   
                                                                                                                                        
                   Inter-Area-Prefix-LSA (Area 0.0.0.1)                                                                                 
                                                                                                                                        
      LS Age: 1007                                                                                                                      
      LS Type: Inter-Area-Prefix-LSA                                                                                                    
      Link State ID: 0.0.0.1                                                                                                            
      Originating Router: 10.4.4.4                                                                                                      
      LS Seq Number: 0x80000001                                                                                                         
      Retransmit Count: 0                                                                                                               
      Checksum: 0xc808                                                                                                                  
      Length: 36                                                                                                                        
                                                                                                                                        
       Metric: 1                                                                                                                        
       Prefix: FC00:0:0:1001::/64
        Prefix Options: 0 (-|-|-|-|-)                                                                                                       
    

  3. Configure the ABR to summarize the routes with the same prefix in area 1 into route FC00:0:0::/48.

    [~ABR] ospfv3 1
    [*ABR-ospfv3-1] area 0.0.0.1
    [*ABR-ospfv3-1-area-0.0.0.1] abr-summary fc00:0:0:: 48 
    [*ABR-ospfv3-1-area-0.0.0.1] quit
    [*ABR-ospfv3-1] quit
    [*ABR] commit

  4. Verify the configuration.

    Run the display ospfv3 lsdb command on the ABR to check the OSPFv3 LSDB information. The following command output shows that the routes with the same prefix in area 1 have been summarized into route FC00:0:0::/48 and that the summarized route is advertised to area 0.

    [~ABR] display ospfv3 lsdb
                                                                                                                                        
               OSPFv3 Router with ID (10.4.4.4) (Process 1)                                                                          
                                                                                                                                        
                   Link-LSA (Interface 10GE1/0/1)                                                                                       
    Link State ID   Origin Router    Age   Seq#       CkSum      Prefix                                                                 
    0.0.0.54        10.2.2.2         675   0x80000001 0x7edd          1                                                                 
    0.0.11.187      10.4.4.4         1610  0x80000001 0xd1c8          1                                                                 
                                                                                                                                        
                   Link-LSA (Interface 10GE1/0/2)                                                                                      
    Link State ID   Origin Router    Age   Seq#       CkSum      Prefix                                                                 
    0.0.0.56        10.1.1.1         876   0x80000002 0x854f          1                                                                 
    0.0.11.226      10.4.4.4         1423  0x80000002 0x56f3          1                                                                 
                                                                                                                                        
                   Link-LSA (Interface 10GE1/0/3)                                                                                       
    Link State ID   Origin Router    Age   Seq#       CkSum      Prefix                                                                 
    0.0.0.13        10.3.3.3         1177  0x80000001 0xc969          1                                                                 
    0.0.11.189      10.4.4.4         1370  0x80000002 0x2e65          1                                                                 
                                                                                                                                        
                   Router-LSA (Area 0.0.0.0)                                                                                            
    Link State ID   Origin Router    Age   Seq#       CkSum    Link                                                                     
    0.0.0.1         10.2.2.2         635   0x80000002 0x7782      1                                                                     
    0.0.0.1         10.4.4.4         634   0x80000005 0x2738      1                                                                     
                                                                                                                                        
                   Network-LSA (Area 0.0.0.0)                                                                                           
    Link State ID   Origin Router    Age   Seq#       CkSum                                                                             
    0.0.11.187      10.4.4.4         634   0x80000002 0x38ec                                                                            
                                                                                                                                        
                   Inter-Area-Prefix-LSA (Area 0.0.0.0)                                                                                 
    Link State ID   Origin Router    Age   Seq#       CkSum                                                                             
    0.0.0.4         10.4.4.4         20    0x80000001 0x17d7                                                                            
                                                                                                                                        
                   Intra-Area-Prefix-LSA (Area 0.0.0.0)                                                                                 
    Link State ID   Origin Router    Age   Seq#       CkSum   Prefix Reference                                                          
    0.0.0.1         10.4.4.4         634   0x80000002 0x635f       1 Network-LSA                                                        
                                                                                                                                        
                   Router-LSA (Area 0.0.0.1)                                                                                            
    Link State ID   Origin Router    Age   Seq#       CkSum    Link                                                                     
    0.0.0.1         10.1.1.1         876   0x80000002 0x696a      1                                                                     
    0.0.0.1         10.3.3.3         1172  0x80000002 0x46d7      1                                                                     
    0.0.0.1         10.4.4.4         875   0x80000003 0x5602      2                                                                     
                                                                                                                                        
                   Network-LSA (Area 0.0.0.1)                                                                                           
    Link State ID   Origin Router    Age   Seq#       CkSum                                                                             
    0.0.11.189      10.4.4.4         1171  0x80000001 0x41df                                                                            
    0.0.11.226      10.4.4.4         875   0x80000001 0x976a                                                                            
                                                                                                                                        
                   Inter-Area-Prefix-LSA (Area 0.0.0.1)                                                                                 
    Link State ID   Origin Router    Age   Seq#       CkSum                                                                             
    0.0.0.1         10.4.4.4         1438  0x80000001 0xc808                                                                            
                                                                                                                                        
                   Intra-Area-Prefix-LSA (Area 0.0.0.1)                                                                                 
    Link State ID   Origin Router    Age   Seq#       CkSum   Prefix Reference                                                          
    0.0.0.1         10.4.4.4         1185  0x80000001 0xad12       1 Network-LSA                                                        
    0.0.0.2         10.4.4.4         889   0x80000001 0xfc9d       1 Network-LSA                                                         
    [~ABR] display ospfv3 lsdb inter-prefix
                                                                                                                                        
               OSPFv3 Router with ID (10.4.4.4) (Process 1)                                                                          
                                                                                                                                        
                   Inter-Area-Prefix-LSA (Area 0.0.0.0)                                                                                 
                                                                                                                                        
      LS Age: 76                                                                                                                        
      LS Type: Inter-Area-Prefix-LSA                                                                                                    
      Link State ID: 0.0.0.4                                                                                                            
      Originating Router: 10.4.4.4                                                                                                      
      LS Seq Number: 0x80000001                                                                                                         
      Retransmit Count: 0                                                                                                               
      Checksum: 0x17d7                                                                                                                  
      Length: 36                                                                                                                        
                                                                                                                                        
       Metric: 1                                                                                                                        
       Prefix: FC00::/48                                                                                                                
        Prefix Options: 0 (-|-|-|-|-)                                                                                                   
                                                                                                                                        
                   Inter-Area-Prefix-LSA (Area 0.0.0.1)                                                                                 
                                                                                                                                        
      LS Age: 1480                                                                                                                      
      LS Type: Inter-Area-Prefix-LSA                                                                                                    
      Link State ID: 0.0.0.1                                                                                                            
      Originating Router: 10.4.4.4                                                                                                      
      LS Seq Number: 0x80000001                                                                                                         
      Retransmit Count: 0                                                                                                               
      Checksum: 0xc808                                                                                                                  
      Length: 36                                                                                                                        
                                                                                                                                        
       Metric: 1                                                                                                                        
       Prefix: FC00:0:0:1001::/64                                                                                                       
        Prefix Options: 0 (-|-|-|-|-)                                                                                                   

    # Run the display ospfv3 abr-summary-list command on the ABR to check information about the summarized route.

    [~ABR] display ospfv3 abr-summary-list
                                                                                                                                        
    OSPFv3 Process (1)                                                                                                               
    Area ID  :  0.0.0.1                                                                                                                 
     Prefix                                 Prefix-Len   Matched          Status                                                        
     FC00::                                 48           2 [Active]       Advertised                                                    
    

Configuration Files

  • SwitchA configuration file

    #
    sysname SwitchA
    #               
    ospfv3 1        
     router-id 10.1.1.1
     area 0.0.0.1   
    #               
    interface 10GE 1/0/1
     undo portswitch  
     ipv6 enable    
     ipv6 address FC00:0:0:1002::1/64
     ospfv3 1 area 0.0.0.1
    #               
    return  
  • SwitchB configuration file

    #
    sysname SwitchB
    #               
    ospfv3 1        
     router-id 10.2.2.2
     area 0.0.0.0   
    #               
    interface 10GE 1/0/1
     undo portswitch  
     ipv6 enable    
     ipv6 address FC00:0:0:1001::1/64
     ospfv3 1 area 0.0.0.0
    #               
    return 
  • SwitchC configuration file

    #
    sysname SwitchC
    #               
    ospfv3 1        
     router-id 10.3.3.3
     area 0.0.0.1   
    #               
    interface 10GE 1/0/1
     undo portswitch  
     ipv6 enable    
     ipv6 address FC00:0:0:1003::1/64
     ospfv3 1 area 0.0.0.1
    #               
    return 
  • ABR configuration file

    #
    sysname ABR
    #               
    ospfv3 1        
     router-id 10.4.4.4
     area 0.0.0.0   
     area 0.0.0.1   
      abr-summary FC00:: 48 
    #               
    interface 10GE 1/0/1
     undo portswitch  
     ipv6 enable    
     ipv6 address FC00:0:0:1001::2/64
     ospfv3 1 area 0.0.0.0
    #               
    interface 10GE 1/0/2
     undo portswitch  
     ipv6 enable    
     ipv6 address FC00:0:0:1002::2/64
     ospfv3 1 area 0.0.0.1
    #               
    interface 10GE 1/0/3
     undo portswitch  
     ipv6 enable    
     ipv6 address FC00:0:0:1003::2/64
     ospfv3 1 area 0.0.0.1
    #               
    return 
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100074760

Views: 45697

Downloads: 58

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