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

NE40E V800R010C10SPC500 Configuration Guide - IP Routing 01

This is NE40E 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 Basic OSPFv3 Functions

Example for Configuring Basic OSPFv3 Functions

This section describes how to configure basic OSPFv3 functions, including enabling OSPF on each router and specifying network segments in different areas.

Networking Requirements

On the network shown in Figure 6-7, all routers run OSPFv3. The entire AS is divided into three areas. Device B and Device C serve as ABRs to forward inter-area routes.

After the configuration is complete, each router should learn the routes to all network segments in the AS.

Figure 6-7 Networking for configuring OSPFv3 areas
NOTE:

Interface 1, interface 2, interface 3 in this example are GE 1/0/0, GE 2/0/0, GE 3/0/0, respectively.



Configuration Notes

When configuring basic OSPFv3 functions, note the following rules:

  • The backbone area is responsible for forwarding inter-area routes. In addition, the routing information between non-backbone areas must be forwarded through the backbone area. OSPFv3 defines the following rules for the backbone area:

    • Connectivity must be available between non-backbone areas and the backbone area.
    • Connectivity must be available over the backbone area.
  • The intervals at which Hello, Dead, and Poll packets are sent on the local interface must be the same as those on the remote interface. Otherwise, the OSPFv3 neighboring relationship cannot be established.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Enable basic OSPFv3 functions on each router.

  2. Specify network segments in different areas.

Data Preparation

To complete the configuration, you need the following data:

Device Name

Router ID

Process ID

IPv6 Address

Device A

1.1.1.1

1

Area 1: 2001:DB8:4::1/64 and 2001:DB8:2::2/64

Device B

2.2.2.2

1

Area 0: 2001:DB8:1::1/64

Area 1: 2001:DB8:2::1/64

Device C

3.3.3.3

1

Area 0: 2001:DB8:1::2/64

Area 2: 2001:DB8:3::1/64

Device D

4.4.4.4

1

Area 2: 2001:DB8:3::2/64

Procedure

  1. Assign an IPv6 address to each interface. For configuration details, see Configuration Files in this section.
  2. Configure basic OSPFv3 functions.

    # Configure Device A.

    [*DeviceA] ospfv3
    [*DeviceA-ospfv3-1] router-id 1.1.1.1
    [*DeviceA-ospfv3-1] quit
    [*DeviceA] interface gigabitethernet3/0/0
    [*DeviceA-GigabitEthernet3/0/0] ospfv3 1 area 1
    [*DeviceA-GigabitEthernet3/0/0] quit
    [*DeviceA] interface gigabitethernet2/0/0
    [*DeviceA-GigabitEthernet2/0/0] ospfv3 1 area 1
    [*DeviceA-GigabitEthernet2/0/0] quit
    [*DeviceA] commit

    # Configure Device B.

    [*DeviceB] ospfv3
    [*DeviceB-ospfv3-1] router-id 2.2.2.2
    [*DeviceB-ospfv3-1] quit
    [*DeviceB] interface gigabitethernet1/0/0
    [*DeviceB-GigabitEthernet1/0/0] ospfv3 1 area 0
    [*DeviceB-GigabitEthernet1/0/0] quit
    [*DeviceB] interface gigabitethernet2/0/0
    [*DeviceB-GigabitEthernet2/0/0] ospfv3 1 area 1
    [*DeviceB-GigabitEthernet2/0/0] quit
    [*DeviceB] commit

    # Configure Device C.

    [*DeviceC] ospfv3
    [*DeviceC-ospfv3-1] router-id 3.3.3.3
    [*DeviceC-ospfv3-1] quit
    [*DeviceC] interface gigabitethernet 1/0/0
    [*DeviceC-GigabitEthernet1/0/0] ospfv3 1 area 0
    [*DeviceC-GigabitEthernet1/0/0] quit
    [*DeviceC] interface gigabitethernet 2/0/0
    [*DeviceC-GigabitEthernet2/0/0] ospfv3 1 area 2
    [*DeviceC-GigabitEthernet2/0/0] quit
    [*DeviceC] commit

    # Configure Device D.

    [*DeviceD] ospfv3
    [*DeviceD-ospfv3-1] router-id 4.4.4.4
    [*DeviceD-ospfv3-1] quit
    [*DeviceD] interface gigabitethernet 2/0/0
    [*DeviceD-GigabitEthernet2/0/0] ospfv3 1 area 2
    [*DeviceD-GigabitEthernet2/0/0] quit
    [*DeviceD] commit

  3. Verify the configuration.

    # Display the OSPFv3 neighbors of Device B.

    [*DeviceB] display ospfv3 peer
       OSPFv3 Process (1)
    
       OSPFv3 Area (0.0.0.1)
       Neighbor ID    Pri   State       Dead Time   Interface               Instance ID
       1.1.1.1        1     Full/ -     00:00:34    GigabitEthernet2/0/0    0
    
       OSPFv3 Area (0.0.0.0)
       Neighbor ID    Pri   State       Dead Time   Interface               Instance ID
       3.3.3.3        1     Full/ -     00:00:32    GigabitEthernet1/0/0    0

    # Display the OSPFv3 neighbors of Device C.

    [*DeviceC] display ospfv3 peer
       OSPFv3 Process (1)
    
       OSPFv3 Area (0.0.0.0)
       Neighbor ID    Pri   State       Dead Time   Interface                Instance ID
       2.2.2.2        1     Full/ -     00:00:37    GigabitEthernet1/0/0     0
    
       OSPFv3 Area (0.0.0.2)
       Neighbor ID    Pri   State       Dead Time   Interface                Instance ID
       4.4.4.4        1     Full/ -     00:00:33    GigabitEthernet2/0/0     0

    # Display the OSPFv3 routing table of Device D.

    [*DeviceD] display ospfv3 routing
    OSPFv3 Process (1)
    
       Destination                                   Metric
         Next-hop
      IA 2001:DB8:1::/64                                     2
               via FE80::1572:0:5EF4:1, GigabitEthernet2/0/0
      IA 2001:DB8:2::/64                                     3
               via FE80::1572:0:5EF4:1, GigabitEthernet2/0/0
         2001:DB8:3::/64                                     1
               directly-connected, GigabitEthernet2/0/0
      IA 2001:DB8:4::/64                                     4
               via FE80::1572:0:5EF4:1, GigabitEthernet2/0/0

Configuration Files

  • Device A configuration file

    #
     sysname DeviceA
    #
    interface GigabitEthernet2/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2::2/64
     ospfv3 1 area 0.0.0.1
    #
    interface GigabitEthernet3/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:4::1/64
     ospfv3 1 area 0.0.0.1
    #
    ospfv3 1
     router-id 1.1.1.1
     area 0.0.0.1
    #
    return
  • Device B configuration file

    #
     sysname DeviceB
    #
    interface GigabitEthernet1/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1::1/64
     ospfv3 1 area 0.0.0.0
    #
    interface GigabitEthernet2/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:2::1/64
     ospfv3 1 area 0.0.0.1
    #
    ospfv3 1
     router-id 2.2.2.2
     area 0.0.0.0
     area 0.0.0.1
    #
    return
  • Device C configuration file

    #
     sysname DeviceC
    #
    interface GigabitEthernet1/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1::2/64
     ospfv3 1 area 0.0.0.0
    #
    interface GigabitEthernet2/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:3::1/64
     ospfv3 1 area 0.0.0.2
    #
    ospfv3 1
     router-id 3.3.3.3
     area 0.0.0.0
     area 0.0.0.2
    #
    return
  • Device D configuration file

    #
     sysname DeviceD
    #
    interface GigabitEthernet2/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:3::2/64
     ospfv3 1 area 0.0.0.2
    #
    ospfv3 1
     router-id 4.4.4.4
     area 0.0.0.2
    #
    return
Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055018

Views: 49100

Downloads: 201

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