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

S9300, S9300E, and S9300X V200R011C10

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).
Configuring OSPF to Advertise the Default Route to an OSPF Area

Configuring OSPF to Advertise the Default Route to an OSPF Area

Context

On an OSPF network, multiple switches often reside on the area border and AS border for next-hop backup or traffic load balancing. To reduce routing entries and improve resource usage on the OSPF network, a default route can be configured in the following scenarios:

  1. An ABR advertises a Type 3 LSA carrying the default route for guiding switches to forward inter-area packets.
  2. An ASBR advertises Type 5 or Type 7 LSAs carrying the default route for guiding switches to forward AS external packets.

When no matching route is discovered, the switch can forward packets through the default route.

The preference of the default route in Type 3 LSAs is higher than that of the route in Type 5 or Type 7 LSAs.

Default route advertisement is determined by the type of the area to which the default route is imported. Table 5-19 lists the default route advertisement by area type.

Table 5-19  Default route advertising mode

Area Type

Generated By

Advertised By

LSA Type

Flooding Area

Common area

The default-route-advertise command

ASBR

Type 5 LSA

Common area

Stub area

Automatically

ABR

Type 3 LSA

Stub area

NSSA

The nssa [ default-route-advertise ] command

ASBR

Type 7 LSA

NSSA

Totally NSSA

Automatically

ABR

Type 3 LSA

NSSA

Perform the following steps on the ASBR running OSPF.

Procedure

  • Configure OSPF to advertise the default route to the OSPF area.
    1. Run system-view

      The system view is displayed.

    2. Run ospf [ process-id ]

      The OSPF process view is displayed.

    3. Run the following commands as required:

      • Run default-route-advertise [ [ always | permit-calculate-other ] | cost cost | type type | route-policy route-policy-name [ match-any ] ] *

        OSPF is configured to advertise the default route to the OSPF area.

        • always indicates that an LSA describing the default route is generated and then advertised regardless of whether there are active default routes of other OSPF processes in the routing table of the local device.
        • permit-calculate-other indicates that the local router is allowed to calculate the default routes advertised by other switches after adverting its default route.
        • route-policy route-policy-name indicates that the local device advertises default routes according to the parameters of the configured routing policy when there are matched default routing entries generated by other OSPF processes.
      NOTE:
      • An ASE LSA that describes the default route is generated and then advertised only when there are active default routes of other OSPF processes in the routing table of the local device.
      • Before advertising a default route, OSPF compares the preferences of default routes. Therefore, if a static default route is configured on an OSPF switch, to add the default route advertised by OSPF to the current routing table, ensure that the preference of the configured static default route is lower than that of the default route advertised by OSPF.

Translation
Download
Updated: 2019-10-22

Document ID: EDOC1000178418

Views: 196908

Downloads: 37

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