Cisco Systems 12.4 manual Routerconfig# mpls ldp Router-id pos2/0/0

Models: 12.4

1 80
Download 80 pages 18.83 Kb
Page 19
Image 19

MPLS Label Distribution Protocol (LDP)

How to Configure MPLS LDP

SUMMARY STEPS

1.enable

2.configure terminal

3.mpls ip

4.mpls label protocol {ldp tdp both}

5.mpls ldp router-id interface [force]

6.exit

7.show mpls ldp discovery [all detail vrf vpn-name]

DETAILED STEPS

Step 1

Step 2

Step 3

Step 4

Step 5

Command or Action

Purpose

 

 

enable

Enables privileged EXEC mode.

 

• Enter your password if prompted.

Example:

 

Router> enable

 

 

 

configure terminal

Enters global configuration mode.

Example:

 

Router# configure terminal

 

 

 

mpls ip

Configures MPLS hop-by-hop forwarding globally.

 

• The mpls ip command is enabled by default; you do not have

Example:

to specify this command.

• Globally enabling MPLS forwarding does not enable it on the

 

Router(config)# mpls ip

router interfaces. You must enable MPLS forwarding on the

 

interfaces as well as for the router.

 

 

mpls label protocol {ldp tdp both}

Configures the use of LDP on all interfaces. LDP is the default.

 

• If you set all interfaces globally to LDP, you can override

Example:

specific interfaces with either the tdp or both keyword by

specifying the command in interface configuration mode.

 

Router(config)# mpls label protocol ldp

 

 

 

mpls ldp router-id interface [force]

Specifies the preferred interface for determining the LDP router ID.

Example:

 

Router(config)# mpls ldp

 

router-id pos2/0/0

 

 

 

MPLS LDP Configuration Guide, Cisco IOS Release 12.4

13

Page 19
Image 19
Cisco Systems 12.4 manual Routerconfig# mpls ldp Router-id pos2/0/0