session

Configures an LDP session for the neighbor-based filtering of inbound or outbound FECs, You can also configure an authentication key for the LDP session.

Syntax

session remote-ip-addr { filter-fec-in | filter-fec-outprefix-list } | { key string }
no session remote-ip-addr { filter-fec-in | filter-fec-out } | { key }

Command Default

None

Parameters

remote-ip-addr
Specifies the IP address of the LDP peer.
filter-fec-in
Applies neighbor-based LDP FEC filtering on inbound FECs.
filter-fec-out
Applies neighbor-based LDP FEC filtering on outbound FECs.
prefix-list
Specifies the prefix list for the neighbor to which the filter is applied to allow or prevent the advertisement of FECs.
key string
Configures an authentication key on the LDP session. The LDP session can be to an adjacent peer (basic discovery) or to the targeted peer (extended discovery).The string variable specifies a text string of up to 80 characters used for authentication between LDP peers. It must be configured on both peers.

Modes

MPLS LDP configuration mode

Usage Guidelines

Use the no form of the command to remove the neighbor-based FEC filtering or authentication key from the LDP session.

MPLS is supported only on devices based on the DNX chipset family. For a list of such devices, see "Supported Hardware".

Examples

The following example configures LDP to prevent the advertisement of FEC 10.40.40.0/24 through the list-out prefix list and allow all others FECs to neighbor 10.12.12.12.
device# configure terminal
device(config)# ip prefix-list list-out deny 10.40.40.0/24
device(config)# ip prefix-list list-out permit 0.0.0.0/0 ge 32
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# session 10.12.12.12 filter-fec-out list-out