Configuration procedure

  1. Create VLANs and configure IP addresses for all interfaces, including the loopback interfaces, as shown in 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
    

    # Configure Switch C.

    [SwitchC] mpls lsr-id 3.3.3.9
    [SwitchC] interface vlan-interface 3
    [SwitchC-Vlan-interface3] mpls enable
    [SwitchC-Vlan-interface3] quit
    
  4. Configure a static LSP from Switch A to Switch C:

    # Configure the LSP ingress node, Switch A.

    [SwitchA] static-lsp ingress AtoC destination 21.1.1.0 24 nexthop 10.1.1.2 out-label 30
    

    # Configure the LSP transit node, Switch B.

    [SwitchB] static-lsp transit AtoC in-label 30 nexthop 20.1.1.2 out-label 50
    

    # Configure the LSP egress node, Switch C.

    [SwitchC] static-lsp egress AtoC in-label 50
    
  5. Configure a static LSP from Switch C to Switch A:

    # Configure the LSP ingress node, Switch C.

    [SwitchC] static-lsp ingress CtoA destination 11.1.1.0 24 nexthop 20.1.1.1 out-label 40
    

    # Configure the LSP transit node, Switch B.

    [SwitchB] static-lsp transit CtoA in-label 40 nexthop 10.1.1.1 out-label 70
    

    # Configure the LSP egress node, Switch A.

    [SwitchA] static-lsp egress CtoA in-label 70