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:

    # Configure Switch A.

    <SwitchA> system-view
    [SwitchA] isis 1
    [SwitchA-isis-1] network-entity 00.0005.0000.0000.0001.00
    [SwitchA-isis-1] quit
    [SwitchA] interface vlan-interface 1
    [SwitchA-Vlan-interface1] isis enable 1
    [SwitchA-Vlan-interface1] quit
    [SwitchA] interface loopback 0
    [SwitchA-LoopBack0] isis enable 1
    [SwitchA-LoopBack0] quit
    

    # Configure Switch B.

    <SwitchB> system-view
    [SwitchB] isis 1
    [SwitchB-isis-1] network-entity 00.0005.0000.0000.0002.00
    [SwitchB-isis-1] quit
    [SwitchB] interface vlan-interface 1
    [SwitchB-Vlan-interface1] isis enable 1
    [SwitchB-Vlan-interface1] quit
    [SwitchB] interface vlan-interface 2
    [SwitchB-Vlan-interface2] isis enable 1
    [SwitchB-Vlan-interface2] quit
    [SwitchB] interface loopback 0
    [SwitchB-LoopBack0] isis enable 1
    [SwitchB-LoopBack0] quit
    

    # Configure Switch C.

    <SwitchC> system-view
    [SwitchC] isis 1
    [SwitchC-isis-1] network-entity 00.0005.0000.0000.0003.00
    [SwitchC-isis-1] quit
    [SwitchC] interface vlan-interface 2
    [SwitchC-Vlan-interface2] isis enable 1
    [SwitchC-Vlan-interface2] quit
    [SwitchC] interface loopback 0
    [SwitchC-LoopBack0] isis enable 1
    [SwitchC-LoopBack0] quit
    

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

  3. Configure an LSR ID, and enable MPLS and MPLS TE:

    # Configure Switch A.

    [SwitchA] mpls lsr-id 1.1.1.1
    [SwitchA] mpls te
    [SwitchA-te] quit
    [SwitchA] interface vlan-interface 1
    [SwitchA-Vlan-interface1] mpls enable
    [SwitchA-Vlan-interface1] mpls te enable
    [SwitchA-Vlan-interface1] quit
    

    # Configure Switch B.

    [SwitchB] mpls lsr-id 2.2.2.2
    [SwitchB] mpls te
    [SwitchB-te] quit
    [SwitchB] interface vlan-interface 1
    [SwitchB-Vlan-interface1] mpls enable
    [SwitchB-Vlan-interface1] mpls te enable
    [SwitchB-Vlan-interface1] quit
    [SwitchB] interface vlan-interface 2
    [SwitchB-Vlan-interface2] mpls enable
    [SwitchB-Vlan-interface2] mpls te enable
    [SwitchB-Vlan-interface2] quit
    

    # Configure Switch C.

    [SwitchC] mpls lsr-id 3.3.3.3
    [SwitchC] mpls te
    [SwitchC-te] quit
    [SwitchC] interface vlan-interface 2
    [SwitchC-Vlan-interface2] mpls enable
    [SwitchC-Vlan-interface2] mpls te enable
    [SwitchC-Vlan-interface2] quit
    
  4. Configure an MPLS TE tunnel on Switch A:

    # Configure the MPLS TE tunnel interface Tunnel 0.

    [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 C.

    [SwitchA-Tunnel0] destination 3.3.3.3
    

    # Configure MPLS TE to use a static CRLSP to establish the tunnel.

    [SwitchA-Tunnel0] mpls te signaling static
    [SwitchA-Tunnel0] quit
    
  5. Create a static CRLSP:

    # Configure Switch A as the ingress node of the static CRLSP, specify the next hop address as 2.1.1.2 and outgoing label as 20.

    [SwitchA] static-cr-lsp ingress static-cr-lsp-1nexthop 2.1.1.2 out-label 20
    

    # On Switch A, configure tunnel 0 to reference the static CRLSP static-cr-lsp-1.

    [SwitchA] interface Tunnel0
    [SwitchA-Tunnel0] mpls te static-cr-lsp static-cr-lsp-1
    [SwitchA-Tunnel0] quit
    

    # Configure Switch B as the transit node of the static CRLSP, specify the incoming label as 20, the next hop address as 3.2.1.2 and outgoing label as 30.

    [SwitchB] static-cr-lsp transit static-cr-lsp-1 in-label 20 nexthop 3.2.1.2 out-label 30
    

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

    [SwitchC] static-cr-lsp egress static-cr-lsp-1 in-label 30
    
  6. Configure a static route on Switch A to direct traffic destined for subnet 3.2.1.0/24 to MPLS TE tunnel 0.

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