Complete these tasks to configure a virtual router as an LSR. You perform these commands in Global Configuration mode. The following sequence is arbitrary; you can perform these tasks in any order.
Your choice of label distribution protocol determines whether the LDP or RSVP-TE global tasks are appropriate for your network design.
MPLS global configuration tasks include the following sets of tasks:
In a typical network, you perform only the first task. You might also perform the optional configuration tasks, but typically do not need to do so.
- host1(config)#mpls
- host1(config)#mpls ip propagate-ttl forwarded
- host1(config)#mpls tunnel-model uniform
- host1(config)#mpls copy-upc-to-exp
- host1(config)#mpls preserve-vpn-exp
- host1(config)#mpls create-dynamic-interfaces
ip on-major-interfaces profile v4intf
Typically, you do not configure anything for LDP at the global level, but you can perform the following optional tasks.
- host1(config)#mpls ldp
- host1(config)#mpls ldp redistribute ospf route-map
boston5
- host1(config)#mpls ldp interface profile ldp1
- host1(config-ldp)#hello hold-time 55
- host1(config-ldp)#hello interval 10
- host1(config)#mpls ldp targeted-hello send
list 10.21.5.87
- host1(config)#mpls ldp targeted-hello receive
list 192.168.45.25
![]() |
Note: The mpls ldp targeted-hello receive list command is unnecessary if you configure the mpls ldp targeted-hello send list command. |
- host1(config)#mpls ldp targeted-hello holdtime
90
- host1(config)#mpls ldp targeted-hello interval
30
- host1(config)#mpls ldp session retry-time
2
- host1(config)#mpls ldp session retries 1800
- host1(config)#mpls ldp session holdtime 1800
- host1(config)#mpls ldp session keepalive-time
180
- host1(config)#mpls ldp discovery transport-address
192.168.34.2
- host1(config)#mpls ldp independent-control
- host1(config)#mpls ldp egress-label explicit-null
For topology-driven LSPs, perform the following LDP configuration tasks.
- host1(config)#mpls topology-driven-lsp
- host1(config)#mpls ldp advertise-labels host-only
![]() |
Note: This step is not optional if you are using a topology-driven network to forward plain IP packets. |
- host1(config)#ldp ip-forwarding host-only
- host1(config)#mpls ldp advertise-labels for
boston1
- host1#clear mpls ldp
Typically, you do not configure anything for RSVP-TE at the global level, but you can perform the following optional tasks.
- host1(config)#mpls rsvp
- host1(config)#mpls rsvp interface profile
rsvp4
- host1(config-rsvp)#refresh-period 60000
- host1(config-rsvp)#cleanup-timeout-factor
9
- host1(config)#mpls lsp retries 35
- host1(config)#mpls lsp retry-time 55
- host1(config)#mpls lsp no-route retries 3200
- host1(config)#mpls lsp no-route retry-time
45
- host1(config)#mpls traffic-eng link-management
timers periodic-flooding 10
![]() |
Note: Low timer values lead to frequent reoptimization of LSPs, which is undesirable for the following reasons:
|
- host1(config)#mpls reoptimize timers frequency
180
You can also force an immediate search for better paths for all existing LSPs.
- host1#mpls reoptimize
- host1(config)#mpls rsvp refresh-reduction
- host1(config)#mpls rsvp message-bundling
- host1(config)#mpls rsvp egress-label explicit-null