32
NOTE:
By default, Ethernet interfaces, VLAN interfaces, and aggregate interfaces are in DOWN state. To
configure such an interface, first use the
undo shutdown
command to bring the interface up.
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 13
Network diagram
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 IP addresses for the interfaces according to
. (Details not shown)
2.
Configure a static route to the destination address of the FEC on each ingress node.
# Configure a static route to network 21.1.1.0/24 on Switch A.
<SwitchA> 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.
<SwitchC> 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
[SwitchA-mpls] quit
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