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

Page 91

Advertising
background image

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

Figure 25

. (Details not shown)

2.

Configure OSPF to ensure reachability between the switches.

# Configure OSPF on Switch A.

<Sysname> system-view

[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> system-view

[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> system-view

[Sysname] sysname SwitchC

[SwitchC] ospf

Advertising