14
Figure 8 Network diagram
143B
Configuration restrictions and guidelines
•
For an LSP, the outgoing label specified on an LSR must be identical with the incoming label
specified on the downstream LSR.
•
LSPs are unidirectional. You must configure an LSP for each direction of the data forwarding
path.
•
A route to the destination address of the LSP must be available on the ingress and egress
nodes, but it is not needed on transit nodes. Therefore, you do not need to configure a routing
protocol to ensure IP connectivity among all switches.
144B
Configuration procedure
1.
Create VLANs and configure IP addresses for all interfaces, including the loopback interfaces,
as shown in
669H
Figure 8
. (Details not shown.)
2.
Configure a static route to the destination address of each LSP:
# On Switch A, configure a static route to network 21.1.1.0/24.
<SwitchA> system-view
[SwitchA] ip route-static 21.1.1.0 24 10.1.1.2
# On Switch C, configure a static route to network 11.1.1.0/24.
<SwitchC> system-view
[SwitchC] ip route-static 11.1.1.0 255.255.255.0 20.1.1.1
3.
Configure basic MPLS on the switches:
# Configure Switch A.
[SwitchA] mpls lsr-id 1.1.1.9
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] mpls enable
[SwitchA-Vlan-interface2] quit
# Configure Switch B.
[SwitchB] mpls lsr-id 2.2.2.9
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] mpls enable
[SwitchB-Vlan-interface2] quit
[SwitchB] interface vlan-interface 3
[SwitchB-Vlan-interface3] mpls enable
[SwitchB-Vlan-interface3] 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