Configuration procedure

  1. Configure IP addresses and masks for interfaces. (Details not shown.)

  2. Configure IS-IS to advertise interface addresses, including the loopback interface address. (Details not shown.)

  3. Execute the display ip routing-table command on each switch to verify that the switches have learned the routes to one another, including the routes to the loopback interfaces. (Details not shown.)

  4. Configure LSR IDs, and enable MPLS and MPLS TE:

    # Configure Switch A.

    [SwitchA] mpls lsr-id 1.1.1.9
    [SwitchA] mpls te
    [SwitchA-te] quit
    [SwitchA] interface vlan-interface 20
    [SwitchA-Vlan-interface20] mpls enable
    [SwitchA-Vlan-interface20] mpls te enable
    [SwitchA-Vlan-interface20] quit
    

    # Configure Switch B.

    [SwitchB] mpls lsr-id 2.2.2.9
    [SwitchB] mpls te
    [SwitchB-te] quit
    [SwitchB] interface vlan-interface 10
    [SwitchB-Vlan-interface10] mpls enable
    [SwitchB-Vlan-interface10] mpls te enable
    [SwitchB-Vlan-interface10] quit
    [SwitchB] interface vlan-interface 20
    [SwitchB-Vlan-interface20] mpls enable
    [SwitchB-Vlan-interface20] mpls te enable
    [SwitchB-Vlan-interface20] quit
    [SwitchB] interface vlan-interface 30
    [SwitchB-Vlan-interface30] mpls enable
    [SwitchB-Vlan-interface30] mpls te enable
    [SwitchB-Vlan-interface30] quit
    

    # Configure Switch C.

    [SwitchC] mpls lsr-id 3.3.3.9
    [SwitchC] mpls te
    [SwitchC-te] quit
    [SwitchC] interface vlan-interface 10
    [SwitchC-Vlan-interface10] mpls enable
    [SwitchC-Vlan-interface10] mpls te enable
    [SwitchC-Vlan-interface10] quit
    [SwitchC] interface vlan-interface 20
    [SwitchC-Vlan-interface20] mpls enable
    [SwitchC-Vlan-interface20] mpls te enable
    [SwitchC-Vlan-interface20] quit
    [SwitchC] interface vlan-interface 30
    [SwitchC-Vlan-interface30] mpls enable
    [SwitchC-Vlan-interface30] mpls te enable
    [SwitchC-Vlan-interface30] quit
    

    # Configure Switch D.

    [SwitchD] mpls lsr-id 4.4.4.9
    [SwitchD] mpls te
    [SwitchD-te] quit
    [SwitchD] interface vlan-interface 20
    [SwitchD-Vlan-interface20] mpls enable
    [SwitchD-Vlan-interface20] mpls te enable
    [SwitchD-Vlan-interface20] quit
    

    # Configure Switch E.

    [SwitchE] mpls lsr-id 5.5.5.9
    [SwitchE] mpls te
    [SwitchE-te] quit
    [SwitchE] interface vlan-interface 20
    [SwitchE-Vlan-interface20] mpls enable
    [SwitchE-Vlan-interface20] mpls te enable
    [SwitchE-Vlan-interface20] quit
    

    # Configure Switch F.

    [SwitchF] mpls lsr-id 6.6.6.9
    [SwitchF] mpls te
    [SwitchF-te] quit
    [SwitchF] interface vlan-interface 20
    [SwitchF-Vlan-interface20] mpls enable
    [SwitchF-Vlan-interface20] mpls te enable
    [SwitchF-Vlan-interface20] quit
    
  5. Establish an MPLS TE tunnel on Switch A:

    # Establish MPLS TE tunnel 0 to Switch D.

    [SwitchA] interface tunnel 0 mode mpls-te
    [SwitchA-Tunnel0] ip address 6.1.1.1 255.255.255.0
    

    # Specify the tunnel destination address as the LSR ID of Switch D.

    [SwitchA-Tunnel0] destination 4.4.4.9
    

    # Specify the MPLS TE tunnel establishment mode as static.

    [SwitchA-Tunnel0] mpls te signaling static
    [SwitchA-Tunnel0] quit
    
  6. Establish an MPLS TE tunnel on Switch E:

    # Establish MPLS TE tunnel 0 to Switch F.

    [SwitchE] interface tunnel 0 mode mpls-te
    [SwitchE-Tunnel0] ip address 7.1.1.1 255.255.255.0
    

    # Specify the tunnel destination address as the LSR ID of Switch F.

    [SwitchE-Tunnel0] destination 6.6.6.9
    

    # Specify the MPLS TE tunnel establishment mode as static.

    [SwitchE-Tunnel0] mpls te signaling static
    [SwitchE-Tunnel0] quit
    
  7. Create static SRLSPs:

    # Configure Switch A as the ingress node of static SRLSP static-sr-lsp-1, and specify the outgoing labels as 20 and 30.

    [SwitchA] static-sr-mpls lsp static-sr-lsp-1 out-label 20 30
    

    # Configure Switch E as the ingress node of static SRLSP static-sr-lsp-2, and specify the outgoing labels as 20 and 40.

    [SwitchE] static-sr-mpls lsp static-sr-lsp-2 out-label 20 40
    

    # Configure MPLS TE tunnel interface 0 on Switch A to use static SRLSP static-sr-lsp-1.

    [SwitchA] interface tunnel 0
    [SwitchA-Tunnel0] mpls te static-sr-mpls static-sr-lsp-1
    [SwitchA-Tunnel0] quit
    

    # Configure MPLS TE tunnel interface 0 on Switch E to use static SRLSP static-sr-lsp-2.

    [SwitchE] interface tunnel 0
    [SwitchE-Tunnel0] mpls te static-sr-mpls static-sr-lsp-2
    [SwitchE-Tunnel0] quit
    

    # Configure Switch B as the transit node of the two static SRLSPs, and specify the next hop address as 20.1.1.2 and the incoming label as 20.

    [SwitchB] static-sr-mpls adjacency adjacency-1 in-label 20 nexthop 20.1.1.2
    

    # Configure Switch C as the transit node of static SRLSP static-sr-lsp-1, and specify the next hop address as 30.1.1.2 and the incoming label as 30.

    [SwitchC] static-sr-mpls adjacency adjacency-1 in-label 30 nexthop 30.1.1.2
    

    # Configure Switch C as the transit node of static SRLSP static-sr-lsp-2, and specify the next hop address as 50.1.1.2 and the incoming label as 40.

    [SwitchC] static-sr-mpls adjacency adjacency-2 in-label 40 nexthop 50.1.1.2
    

    # Configure Switch D as the egress node of the static SRLSP, and specify the incoming label as 30.

    [SwitchD] static-cr-lsp egress static-cr-lsp-1 in-label 30
    

    # Configure Switch F as the egress node of the static SRLSP, and specify the incoming label as 40.

    [SwitchF] static-cr-lsp egress static-cr-lsp-1 in-label 40
    
  8. Configure static routes to direct traffic to the MPLS TE tunnels:

    # Configure a static route on Switch A to direct traffic destined for 100.1.2.0/24 to MPLS TE tunnel 0.

    [SwitchA] ip route-static 100.1.2.0 24 tunnel 0 preference 1
    

    # Configure a static route on Switch E to direct traffic destined for 200.1.2.0/24 to MPLS TE tunnel 0.

    [SwitchE] ip route-static 200.1.2.0 24 tunnel 0 preference 1