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

S7700 and S9700 V200R010C00

This document describes IP Unicast Routing configurations supported by the switch, including the principle and configuration procedures of IP Routing Overview, Static Route, RIP, RIPng, OSPF, OSPFv3, IS-IS(IPv4), IS-IS(IPv6), BGP, Routing Policy ,and PBR, and provides 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).
Enabling OSPF

Enabling OSPF

Context

After creating an OSPF process, configure the network segments to which the IP addresses of OSPF interfaces belong in an area. Each interface that runs OSPF must belong to an area, meaning that a network segment can belong to only one area.

OSPF checks the network mask carried in received Hello packets. If the network mask carried in such a packet is different from that of the local device, OSPF discards the Hello packet and does not establish any OSPF neighbor relationship.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    ospf [ process-id ]

    The OSPF process view is displayed.

  3. Run:

    area area-id

    The OSPF area view is displayed.

    OSPF can be enabled in an OSPF area or on a specific interface.

    • Enable OSPF in an OSPF area.

    1. Run:

      network ip-address wildcard-mask

      A network segment belonging to an area is configured.

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

      • The IP address mask length of the interface is greater than or equal to the mask length converted from the wildcard mask specified in the network command.

      • The primary IP address of the interface must be within the network segment specified by the network command.

      By default, OSPF advertises the IP address of a loopback interface as a 32-bit host route, which is not dependent on the mask length configured on the loopback interface. To advertise routes to the network segment to which the loopback interface belongs, configure the network type as NBMA or broadcast in the interface view. For details, see Configuring Network Types of OSPF Interfaces.

    • Enable OSPF on an interface.

    1. Run the following command in the system view:

      interface interface-type interface-number

      The interface view is displayed.

    2. (Optional) On an Ethernet interface, run undo portswitch

      The interface is switched to Layer 3 mode.

      By default, an Ethernet interface works in Layer 2 mode.

    3. Run:

      ospf enable [ process-id ] area area-id

      OSPF is enabled on the interface.

      An area ID can be entered as a decimal integer or IPv4 address in dotted-decimal notation. The area ID is displayed in dotted-decimal notation.

Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000141900

Views: 193911

Downloads: 194

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