Establishing an MPLS TE tunnel over a static CRLSP

Network requirements

Switch A, Switch B, and Switch C run IS-IS.

Establish an MPLS TE tunnel over a static CRLSP from Switch A to Switch C to transmit data between the two IP networks.

The MPLS TE tunnel requires a bandwidth of 2000 kbps. The maximum bandwidth of the link that the tunnel traverses is 10000 kbps. The maximum reservable bandwidth of the link is 5000 kbps.

Figure 29: Network diagram

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 switches 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 MPLS TE attributes of links:

    # Set the maximum link bandwidth and maximum reservable bandwidth on Switch A.

    [SwitchA] interface vlan-interface 1
    [SwitchA-Vlan-interface1] mpls te max-link-bandwidth 10000
    [SwitchA-Vlan-interface1] mpls te max-reservable-bandwidth 5000
    [SwitchA-Vlan-interface1] quit
    

    # Set the maximum link bandwidth and maximum reservable bandwidth on Switch B.

    [SwitchB] interface vlan-interface 1
    [SwitchB-Vlan-interface1] mpls te max-link-bandwidth 10000
    [SwitchB-Vlan-interface1] mpls te max-reservable-bandwidth 5000
    [SwitchB-Vlan-interface1] quit
    [SwitchB] interface vlan-interface 2
    [SwitchB-Vlan-interface2] mpls te max-link-bandwidth 10000
    [SwitchB-Vlan-interface2] mpls te max-reservable-bandwidth 5000
    [SwitchB-Vlan-interface2] quit
    

    # Set the maximum link bandwidth and maximum reservable bandwidth on Switch C.

    [SwitchC] interface vlan-interface 2
    [SwitchC-Vlan-interface2] mpls te max-link-bandwidth 10000
    [SwitchC-Vlan-interface2] mpls te max-reservable-bandwidth 5000
    [SwitchC-Vlan-interface2] quit
    
  5. Configure an MPLS TE tunnel on Switch A:

    # Configure MPLS TE tunnel interface Tunnel 1.

    [SwitchA] interface tunnel 1 mode mpls-te
    [SwitchA-Tunnel1] ip address 6.1.1.1 255.255.255.0
    

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

    [SwitchA-Tunnel1] destination 3.3.3.3
    

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

    [SwitchA-Tunnel1] mpls te signaling static
    [SwitchA-Tunnel1] quit
    
  6. Create a static CRLSP:

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

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

    # On Switch A, configure tunnel 1 to use static CRLSP static-cr-lsp-1.

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

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

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

    # 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
    
  7. Configure a static route on Switch A to direct traffic destined for subnet 100.1.2.0/24 to MPLS TE tunnel 1.

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

Verifying the configuration

# Verify that the tunnel interface is up on Switch A.

[SwitchA] display interface tunnel
Tunnel1
Current state: UP
Line protocol state: UP
Description: Tunnel1 Interface
Bandwidth: 64kbps
Maximum transmission unit: 1496
Internet address: 6.1.1.1/24 (primary)
Tunnel source unknown, destination 3.3.3.3
Tunnel TTL 255
Tunnel protocol/transport CR_LSP
Output queue - Urgent queuing: Size/Length/Discards 0/100/0
Output queue - Protocol queuing: Size/Length/Discards 0/500/0
Output queue - FIFO queuing: Size/Length/Discards 0/75/0
Last clearing of counters: Never
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Input: 0 packets, 0 bytes, 0 drops
Output: 0 packets, 0 bytes, 0 drops

# Display detailed information about the MPLS TE tunnel on Switch A.

[SwitchA] display mpls te tunnel-interface
Tunnel Name            : Tunnel 1
Tunnel State           : Up (Main CRLSP up)
Tunnel Attributes      :
  LSP ID               : 1               Tunnel ID            : 1
  Admin State          : Normal
  Ingress LSR ID       : 1.1.1.1         Egress LSR ID        : 3.3.3.3
  Signaling            : Static          Static CRLSP Name    : static-cr-lsp-1
  Resv Style           : -
  Tunnel mode          : -
  Reverse-LSP name     : -
  Reverse-LSP LSR ID   : -               Reverse-LSP Tunnel ID: -
  Class Type           : -               Tunnel Bandwidth     : -
  Reserved Bandwidth   : -
  Setup Priority       : 0               Holding Priority     : 0
  Affinity Attr/Mask   : -/-
  Explicit Path        : -
  Backup Explicit Path : -
  Metric Type          : TE
  Record Route         : -               Record Label         : -
  FRR Flag             : -               Bandwidth Protection : -
  Backup Bandwidth Flag: -               Backup Bandwidth Type: -
  Backup Bandwidth     : -
  Bypass Tunnel        : -               Auto Created         : -
  Route Pinning        : -
  Retry Limit          : 3               Retry Interval       : 2 sec
  Reoptimization       : -               Reoptimization Freq  : -
  Backup Type          : -               Backup LSP ID        : -
  Auto Bandwidth       : -               Auto Bandwidth Freq  : -
  Min Bandwidth        : -               Max Bandwidth        : -
  Collected Bandwidth  : -  

# Display static CRLSP information on each switch.

[SwitchA] display mpls lsp
FEC                         Proto    In/Out Label    Interface/Out NHLFE
1.1.1.1/0/1                 StaticCR -/20            Vlan1
2.1.1.2                     Local    -/-             Vlan1
Tunnel1                     Local    -/-             NHLFE1025
[SwitchB] display mpls lsp
FEC                         Proto    In/Out Label    Interface/Out NHLFE
-                           StaticCR 20/30           Vlan2
3.2.1.2                     Local    -/-             Vlan2
[SwitchC] display mpls lsp
FEC                         Proto    In/Out Label    Interface/Out NHLFE
-                           StaticCR 30/-            -
[SwitchA] display mpls static-cr-lsp
Name            LSR Type    In/Out Label   Out Interface        State
static-cr-lsp-1 Ingress     Null/20        Vlan1                Up
[SwitchB] display mpls static-cr-lsp
Name            LSR Type    In/Out Label   Out Interface        State
static-cr-lsp-1 Transit     20/30          Vlan2                Up
[SwitchC] display mpls static-cr-lsp
Name            LSR Type    In/Out Label   Out Interface        State
static-cr-lsp1  Egress      30/Null        -                    Up

# Execute the display ip routing-table command on Switch A. The output shows a static route entry with interface Tunnel 1 as the output interface. (Details not shown.)