distribute bgp-ls

Use distribute bgp-ls to enable the device to advertise OSPF link state information to BGP.

Use undo distribute bgp-ls to restore the default.

Syntax

distribute bgp-ls [ strict-link-checking ]

undo distribute bgp-ls

Default

The device does not advertise OSPF link state information to BGP.

Views

OSPF view

Predefined user roles

network-admin

Parameters

strict-link-checking: Enables strict checking on link state information advertised to BGP. If you specify this keyword, the local and remote ends of a link must be in the same subnet so that the link state information can be advertised to BGP. If you do not specify this keyword, the link state information is advertised to BGP even if the local and remote ends of the link are in different subnets. This keyword applies only to P2P links.

Usage guidelines

After the device advertises OSPF link state information to BGP, BGP can advertise the information for intended applications.

As a best practice, enable strict link state information checking when the following conditions exist:

This prevents the device from advertising error link state information to BGP when the equal-cost links flap.

Strict link state information checking and prefix suppression are mutually exclusive. Before you enable strict link state information checking, make sure prefix suppression is disabled.

Examples

# Enable the device to advertise link state information for OSPF process 1 to BGP.

<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] distribute bgp-ls