37
Task Command
Display LDP interface information.
display mpls ldp interface
[
vpn-instance vpn-instance-name
]
[
interface-type interface-number
] [
ipv6
]
Display LDP LSP information.
display mpls ldp lsp
[
vpn-instance
vpn-instance-name
]
[
ipv4-address mask-length
|
ipv6-address prefix-length
|
ipv6
]
Display LDP running parameters.
display mpls ldp parameter
[
vpn-instance
vpn-instance-name
]
Display LDP peer and session
information.
display mpls ldp peer
[
vpn-instance
vpn-instance-name
]
[
peer-lsr-id
] [
verbose
]
Display LDP summary information.
display mpls ldp summary
[
all
|
vpn-instance
vpn-instance-name
]
51B
IPv4 LDP configuration examples
158B
LDP LSP configuration example
343B
Network requirements
Switch A, Switch B, and Switch C all support MPLS.
Configure LDP to establish LSPs between Switch A and Switch C, so subnets 11.1.1.0/24 and
21.1.1.0/24 can reach each other over MPLS.
Configure LDP to establish LSPs only for destinations 1.1.1.9/32, 2.2.2.9/32, 3.3.3.9/32, 11.1.1.0/24,
and 21.1.1.0/24 on Switch A, Switch B, and Switch C.
Figure 17 Network diagram
344B
Requirements analysis
•
To ensure that the LSRs establish IPv4 LSPs automatically, enable IPv4 LDP on each LSR.
•
To establish IPv4 LDP LSPs, configure an IPv4 routing protocol to ensure IP connectivity
between the LSRs. This example uses OSPF.
•
To control the number of IPv4 LSPs, configure an IPv4 LSP generation policy on each LSR.
345B
Configuration procedure
1.
Configure IP addresses and masks for interfaces, including the loopback interfaces, as shown
in
697H
Figure 17
. (Details not shown.)
2.
Configure OSPF on each switch to ensure IP connectivity between them:
# Configure Switch A.
<SwitchA> system-view
[SwitchA] ospf
Loop0
2.2.2.9/32
Vlan-int3
20.1.1.1/24
Loop0
3.3.3.9/32
Loop0
1.1.1.9/32
Vlan-int2
10.1.1.1/24
Vlan-int2
10.1.1.2/24
Vlan-int3
20.1.1.2/24
Switch A
Switch B
Switch C
11.1.1.0/24
21.1.1.0/24
Vlan-int4
11.1.1.1/24
Vlan-int5
21.1.1.1/24