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 V200R010

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the configuration examples.
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).
OSPF Neighbor Relationship Cannot Be Established

OSPF Neighbor Relationship Cannot Be Established

Fault Symptom

OSPF neighbor relationship cannot be established between two devices.

Procedure

  1. Check whether the physical status and protocol status of interfaces on both ends are Up and stable, whether packets are lost on the interfaces, and whether the two devices can ping each other with large packets.

    If the physical status of the interfaces is not Up or unstable (interfaces flap for example), check the physical link and link layer protocol and ensure that the physical status and protocol status of the interfaces are Up and the interfaces have no error packet statistics.

    You can perform a ping test for a long time to check whether packets are lost on the interfaces and ping with large packets (longer than 1500 bytes) to check whether the two devices can ping each other with large packets.

  2. Check whether the two devices have the same OSPF process router ID.

    Run the display ospf [ process-id ] brief command on the two devices to check the OSPF process router ID.

    Each router ID in an OSPF process must be unique. Otherwise, devices on both ends cannot establish OSPF neighbor relationships and routing information will be incorrect. You need to configure a unique router ID for each OSPF process on the devices.

    If the two devices have the same OSPF process router ID, run the ospf [ process-id ] router-id router-id command in the system view to change the OSPF process router ID and ensure that the two devices have different OSPF process router IDs.

    After changing the OSPF process router ID, you must run the reset ospf [ process-id ] process command in the user view to make the configured router ID take effect.

  3. Check whether the two devices have the same OSPF area ID.

    Run the display ospf [ process-id ] brief command on the two devices to check the OSPF area ID.

    If the two devices have different OSPF area IDs, run the area area-id command in the OSPF view to change the OSPF area ID and ensure that the two devices have the same OSPF area ID.

  4. Check whether OSPF interfaces on both ends have the same network type.

    Run the display ospf [ process-id ] interface command on the two devices to check the OSPF interface network type.

    The network types of the OSPF interfaces on both ends of a link must be the same; otherwise, the two interfaces cannot establish an OSPF neighbor relationship.
    • When the network type of an OSPF interface on one end is broadcast and that of an OSPF interface on the other end is P2P, the two interfaces can still establish an OSPF neighbor relationship but cannot learn routing information from each other.
    • When the network type of an OSPF interface on one end is P2MP and that of an OSPF interface on the other end is P2P, the two interfaces can still establish an OSPF neighbor relationship but cannot learn routing information from each other. To ensure that the two interfaces learn routing information from each other, configure the same interval for sending hello packets and same neighbor holddown time on the two interfaces.

    If the network types of the two OSPF interfaces are different, run the ospf network-type { broadcast | nbma | p2mp | p2p } command in the OSPF interface view to change the OSPF interface network type and ensure that the two OSPF interfaces have the same network type.

    NOTE:

    If the network types of OSPF interfaces on both ends are both NBMA, you must run the peer ip-address [ dr-priority priority ] command in the OSPF view to configure NBMA neighbors.

  5. Check whether OSPF interfaces on both ends have the same IP address mask.

    Run the display current-configuration interface interface-type interface-number command on the two devices to check the IP address of the specified OSPF interface.

    The IP address masks of the OSPF interfaces on both ends of a link must be the same; otherwise, the two interfaces cannot establish an OSPF neighbor relationship. On a P2MP network, however, you can run the ospf p2mp-mask-ignore command in the OSPF interface view to disable a device from checking the network mask so that an OSPF neighbor relationship can be established.

    If the two OSPF interfaces have different IP address masks, run the ip address ip-address { mask | mask-length } command in the OSPF interface view to change the IP address mask and ensure that the two OSPF interfaces have the same IP address mask.

  6. Check whether IP addresses of OSPF interfaces on both ends belong to the network segment specified by the network command.

    Run the display current-configuration interface interface-type interface-number command on devices on both ends to check IP addresses of OSPF interfaces on both ends and run the display current-configuration configuration ospf command on the two devices to check the OSPF process configuration.

    OSPF can run on an interface only when the following conditions are met:

    • The mask length of the IP address of the interface is longer than or equal to that specified by the network command. OSPF uses reverse mask. For example 0.0.0.255 indicates that the mask length is 24 bits.
    • The primary IP address of the interface belongs to the network segment specified by the network command.

    If the IP address of the interface does not meet the preceding conditions, run the ip address ip-address { mask | mask-length } command in the OSPF-enabled interface view to change the IP address of the interface or run the network command in the view of the area that the OSPF process belongs to change the configured network segment so that the IP address of the interface can meet the preceding conditions.

  7. Check whether the DR priorities of OSPF interfaces on both ends are both 0.

    Run the display ospf [ process-id ] interface command on the two devices to check the OSPF interface DR priority.

    On a broadcast or NBMA network, there must be at least one OSPF interface of which the DR priority is not 0 to ensure that the DR can be elected. Otherwise, the neighbor status of devices on both ends can be only 2-Way.

    If the DR priorities of the two OSPF interfaces are both 0, run the ospf dr-priority priority command in the OSPF interface view to change the DR priority and ensure that there is at least one OSPF interface of which the DR priority is not 0.

Translation
Download
Updated: 2019-08-12

Document ID: EDOC1100034072

Views: 114229

Downloads: 168

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