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 OSPFv3 DR Election

Example for Configuring OSPFv3 DR Election

This section describes how to set the DR priority on an interface for DR election on a broadcast network.

Networking Requirements

On the network shown in Figure 6-8, Device A has the highest priority (100) on the network and is elected as the DR; Device C has the second highest priority and is elected as the BDR. Device B has the priority of 0 and cannot be elected as a DR or a BDR; no priority is configured for Device D, and therefore, and Device D uses the default value (1).

Figure 6-8 Networking for configuring OSPFv3 DR election
NOTE:

Interface 1 in this example is GE 1/0/0.



Configuration Notes

Reconfiguring the DR priority for the ME device does not change the DR or BDR on a network. You can use either of the following methods to re-elect a DR or BDR. However, the following methods will disconnect OSPFv3 neighbors. Therefore, use the following methods only when necessary.

  • Restart the OSPFv3 processes on all ME devices.

  • Configure the shutdown and undo shutdown commands on the interfaces where the OSPFv3 neighbor relationships are established.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure the router ID on each ME device, enable OSPFv3, and specify the network segment.

  2. Check the DR/BDR status with the default priority.

  3. Configure the DR priority on the interface and check the DR/BDR status.

Data Preparation

To complete the configuration, you need the following data:

  • Router ID (1.1.1.1) and priority (100) of Device A

  • Router ID (2.2.2.2) and priority (0) of Device B

  • Router ID (3.3.3.3) and priority (2) of Device C

  • Router ID (4.4.4.4) and priority (1) of Device D

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, enable OSPFv3, and set its router ID to 1.1.1.1.

    [*DeviceA] ospfv3
    [*DeviceA-ospfv3-1] router-id 1.1.1.1
    [*DeviceA-ospfv3-1] quit
    [*DeviceA] interface GigabitEthernet 1/0/0
    [*DeviceA-GigabitEthernet1/0/0] ospfv3 1 area 0
    [*DeviceA-GigabitEthernet1/0/0] quit
    [*DeviceA] commit

    # Configure Device B, enable OSPFv3, and set its router ID to 2.2.2.2.

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

    # Configure Device C, enable OSPFv3, and set its router ID to 3.3.3.3.

    [*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] commit

    # Configure Device D, enable OSPFv3, and set its router ID to 4.4.4.4.

    [*DeviceD] ospfv3
    [*DeviceD-ospfv3-1] router-id 4.4.4.4
    [*DeviceD-ospfv3-1] quit
    [*DeviceD] interface GigabitEthernet 1/0/0
    [*DeviceD-GigabitEthernet1/0/0] ospfv3 1 area 0
    [*DeviceD-GigabitEthernet1/0/0] quit
    [*DeviceD] commit

    # Display the neighbors of Device A. You can view the DR priority and the neighbor status. By default, the DR priority is 1. Device D is the DR, and Device C is the BDR.

    NOTE:

    The ME device with the greatest router ID is the DR when ME devices have the same priority. If an Ethernet interface of the ME device becomes a DR, the other broadcast interfaces of the ME device have the highest priority in DR election.

    [*DeviceA] 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   2-Way/DROther    00:00:32    GE1/0/0         0
        3.3.3.3       1   Full/Backup      00:00:36    GE1/0/0         0
        4.4.4.4       1   Full/DR          00:00:38    GE1/0/0         0

    # Display the neighbors of Device D. The command output shows that all neighbors of Device D are in the Full state.

    [*DeviceD] display ospfv3 peer
        OSPFv3 Process (1)
    
        OSPFv3 Area (0.0.0.0)
        Neighbor ID     Pri   State            Dead Time   Interface  Instance ID
        1.1.1.1       1   Full/DROther     00:00:32    GE1/0/0         0
        2.2.2.2       1   Full/DROther     00:00:35    GE1/0/0         0
        3.3.3.3       1   Full/Backup      00:00:30    GE1/0/0         0

  3. Set the DR priority of the interface.

    # Set the DR priority of Device A to 100.

    [~DeviceA] interface GigabitEthernet 1/0/0
    [~DeviceA-GigabitEthernet1/0/0] ospfv3 dr-priority 100
    [*DeviceA-GigabitEthernet1/0/0] quit
    [*DeviceA] commit

    # Set the DR priority of Device B to 0.

    [~DeviceB] interface GigabitEthernet 1/0/0
    [~DeviceB-GigabitEthernet1/0/0] ospfv3 dr-priority 0
    [*DeviceB-GigabitEthernet1/0/0] quit
    [*DeviceB] commit

    # Set the DR priority of Device C to 2.

    [~DeviceC] interface GigabitEthernet 1/0/0
    [~DeviceC-GigabitEthernet1/0/0] ospfv3 dr-priority 2
    [*DeviceC-GigabitEthernet1/0/0] quit
    [*DeviceC] commit

    # Display the neighbors of Device A. The command output shows that the DR priority is updated and that the DR and BDR remain unchanged.

    [*DeviceA] 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       0   2-Way/DROther    00:00:34    GE1/0/0         0
        3.3.3.3       2   Full/Backup      00:00:38    GE1/0/0         0
        4.4.4.4       1   Full/DR          00:00:31    GE1/0/0         0

    # Display the neighbors of Device D. The command output shows that Device D remains the DR.

    [*DeviceD] display ospfv3 peer
        OSPFv3 Process (1)
    
        OSPFv3 Area (0.0.0.0)
        Neighbor ID     Pri   State            Dead Time   Interface  Instance ID
        1.1.1.1      100   Full/DROther     00:00:36    GE1/0/0         0
        2.2.2.2      0   Full/DROther       00:00:30    GE1/0/0         0
        3.3.3.3      2   Full/Backup        00:00:36    GE1/0/0         0

  4. Re-elect the DR/BDR.

    # Restart all ME devices (or run the shutdown and undo shutdown commands on the interface that establishes the OSPFv3 neighbor relationship), and re-elect the DR/BDR.

  5. Verify the configuration.

    # Display the neighbors of Device A. The command output shows that Device C is the BDR.

    [~DeviceA] 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       0   Full/DROther     00:00:31    GE1/0/0         0
       3.3.3.3       2   Full/Backup      00:00:36    GE1/0/0         0
       4.4.4.4       1   Full/DROther     00:00:39    GE1/0/0         0
    [*DeviceA]

    # Display the neighbors of Device D. The command output shows that Device A is the DR.

    [~DeviceD] display ospfv3 peer
       OSPFv3 Process (1)
    
       OSPFv3 Area (0.0.0.0)
       Neighbor ID     Pri   State            Dead Time   Interface  Instance ID
       1.1.1.1       100   Full/DR        00:00:39    GE1/0/0         0
       2.2.2.2       0   2-Way/DROther    00:00:35    GE1/0/0         0
       3.3.3.3       2   Full/Backup      00:00:39    GE1/0/0         0

Configuration Files

  • Device A configuration file

    #
     sysname DeviceA
    #
    interface GigabitEthernet1/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1001::1/96
     ospfv3 1 area 0.0.0.0
     ospfv3 dr-priority 100
    #
    ospfv3 1
     router-id 1.1.1.1
     area 0.0.0.0
    #
    return
  • Device B configuration file

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

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

    #
     sysname DeviceD
    #
    interface GigabitEthernet1/0/0
     undo shutdown
     ipv6 enable
     ipv6 address 2001:db8:1001::4/96
     ospfv3 1 area 0.0.0.0
    #
    ospfv3 1
     router-id 4.4.4.4
     area 0.0.0.0
    #
    return
Translation
Download
Updated: 2019-01-04

Document ID: EDOC1100059437

Views: 20298

Downloads: 15

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