< Home

advertise mpls-lsr-id

Function

The advertise mpls-lsr-id command configures OSPF to advertise MPLS LSR IDs to multiple areas as intra-area routes.

The undo advertise mpls-lsr-id command cancels the configuration.

By default, OSPF does not advertise MPLS LSR IDs to multiple areas as intra-area routes.

Product

Support

S5720-EI, S5720-HI, S5730-HI, S5731-S, S5731S-S, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H

Supported

S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720-SI, S6720S-SI, S6730-S, and S6730S-S

Not supported

Format

advertise mpls-lsr-id [ cost cost ]

undo advertise mpls-lsr-id

Parameters

Parameter Description Value

cost cost

Specifies the cost of the advertised route.

The value is an integer that ranges from 0 to 65535. By default, it is 0.

Views

OSPF view

Usage Guidelines

Usage Scenario

The prerequisite of a valid tunnel is that an intra-area route to the egress is reachable. When an ABR serves as the egress of tunnels in two areas, OSPF considers that only one tunnel is valid, because there is only one intra-area route to the egress, namely the IP address of the ABR's loopback interface (used as an MPLS LSR ID for tunnel establishment). To the other areas, this route is an inter-area route. To allow the tunnels in both areas to take effect, run the advertise mpls-lsr-id command to configure OSPF to advertise the intra-area route to the MPLS LSR ID to all areas connected to this device.

Prerequisites

Before running this command, the mpls te command has been run to enable MPLS TE globally.

Configuration Impact

Running this command may have the following impacts:
  • If the OSPF area where the local switch resides does not have the interface whose IP address is the MPLS LSR ID, the type of the OSPF routes (with the destination address being the MPLS LSR ID) on the other devices in this OSPF area will be changed from inter-area to intra-area, and the cost will also be changed.
  • If an OSPF NSSA has the interface whose IP address is the MPLS LSR ID and the forwarding address of the NSSA LSAs advertised in this area is the MPLS LSR ID, the forwarding address of these NSSA LSAs will be changed and the NSSA LSAs will be re-advertised, thus causing route calculation.

Example

# Configure OSPF to advertise MPLS LSR IDs to multiple areas as intra-area routes.

<HUAWEI> system-view
[HUAWEI] ospf
[HUAWEI-ospf-1] advertise mpls-lsr-id
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >