Configuration considerations, Configuration procedure, Configuring ldp session protection – H3C Technologies H3C S12500-X Series Switches User Manual

Page 50

Advertising
background image

39

Figure 18 Network diagram

Configuration considerations

1.

Configure a routing protocol on each switch to make sure that the switches can reach each other.

This example uses OSPF.

2.

Enable LDP on each switch.

3.

Configure LSP generation policies so LDP uses only the routes 11.1.1.0/24 and 21.1.1.0/24 to
establish LSPs.

4.

Configure label advertisement policies, so LDP sets up LSPs only over the link Switch A—Switch

B—Switch C, as follows:

{

Switch A advertises only the label mapping for FEC 11.1.1.0/24 to Switch B.

{

Switch C advertises only the label mapping for FEC 21.1.1.0/24 to Switch B.

{

Switch D does not advertise label mapping for FEC 21.1.1.0/24 to Switch A. Switch D does not

advertise label mapping for FEC 11.1.1.0/24 to Switch C.

Configuration procedure

1.

Configure IP addresses and masks for interfaces, including the loopback interfaces, as shown

in

Figure 18

. (Details not shown.)

2.

Configure OSPF on each switch to ensure IP connectivity between them. (Details not shown.)

3.

Enable MPLS and LDP:
# Configure Switch A.

<SwitchA> system-view

[SwitchA] mpls lsr-id 1.1.1.9

[SwitchA] mpls ldp

[SwitchA-ldp] quit

[SwitchA] interface vlan-interface 2

[SwitchA-Vlan-interface2] mpls enable

[SwitchA-Vlan-interface2] mpls ldp enable

[SwitchA-Vlan-interface2] quit

[SwitchA] interface vlan-interface 6

[SwitchA-Vlan-interface6] mpls enable

Advertising