Configuration considerations, Configuration procedure – H3C Technologies H3C S10500 Series Switches User Manual
Page 91

80
Figure 25 Network diagram for establishing LDP LSPs
Configuration considerations
•
Enable LDP on the LSRs. LDP dynamically distributes labels and establishes LSPs and thus there is no
need to manually configure labels for LSPs.
•
LDP uses routing information for label distribution. Therefore, you must configure a routing protocol
to learn routing information. OSPF is used in this example.
Configuration procedure
1.
Configure the IP addresses of the interfaces.
Configure the IP addresses and masks of the interfaces according to
. (Details not shown)
2.
Configure OSPF to ensure reachability between the switches.
# Configure OSPF on Switch A.
[Sysname] sysname SwitchA
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] network 11.1.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[SwitchA-ospf-1] quit
# Configure OSPF on Switch B.
[Sysname] sysname SwitchB
[SwitchB] ospf
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] quit
# Configure OSPF on Switch C.
[Sysname] sysname SwitchC
[SwitchC] ospf