beautypg.com

Mpls configuration examples, Configuring static lsps, Network requirements – H3C Technologies H3C S10500 Series Switches User Manual

Page 88: Configuration considerations, Configuration procedure

background image

77

MPLS configuration examples

Configuring static LSPs

Network requirements

Switch A, Switch B, and Switch C support MPLS.

Establish static LSPs between Switch A and Switch C so that subnets 10.1.1.0/24 and 21.1.1.0/24
can access each other over MPLS.

Check the connectivity of the static LSPs.

Figure 24 Network diagram for configuring static LSPs

Configuration considerations

On an LSP, the out label of an upstream LSR must be identical with the in label of its downstream

LSR.

Configure an LSP for each direction on the forwarding path.

Configure a static route to the destination address of the LSP on each ingress node. Such a route is
not required on the transit and egress nodes. You do not need to configure any routing protocol on

the switches.

Configuration procedure

1.

Configure the IP addresses of the interfaces.

Configure the IP addresses and masks of the interfaces according to

Figure 24

. (Details not shown)

2.

Configure a static route to the FEC destination address on each ingress node.

# Configure a static route to network 21.1.1.0/24 on Switch A.

system-view

[SwitchA] ip route-static 21.1.1.0 24 10.1.1.2

# Configure a static route to network 11.1.1.0/24 on Switch C.

system-view

[SwitchC] ip route-static 11.1.1.0 255.255.255.0 20.1.1.1

3.

Enable MPLS.

# Configure MPLS on Switch A.

[SwitchA] mpls lsr-id 1.1.1.9

[SwitchA] mpls