IETF DS-TE configuration example
Network requirements
Switch A, Switch B, Switch C, and Switch D run IS-IS and all of them are Level-2 switches.
Use RSVP-TE to establish an MPLS TE tunnel from Switch A to Switch D to transmit data between the two IP networks. Traffic of the tunnel belongs to CT 2, and the tunnel needs a bandwidth of 4000 kbps.
The maximum bandwidth of the link that the tunnel traverses is 10000 kbps and the maximum reservable bandwidth of the link is 10000 kbps. BC 1, BC 2, and BC 3 are 8000 kbps, 5000 kbps, and 2000 kbps.
Figure 37: Network diagram
Table 9: Interface and IP address assignment
Device | Interface | IP address | Device | Interface | IP address |
---|---|---|---|---|---|
Switch A | Loop0 | 1.1.1.9/32 | Switch D | Loop0 | 4.4.4.9/32 |
Vlan-int1 | 10.1.1.1/24 | Vlan-int3 | 30.1.1.2/24 | ||
Vlan-int10 | 100.1.1.1/24 | Vlan-int10 | 100.1.2.1/24 | ||
Switch B | Loop0 | 2.2.2.9/32 | Switch C | Loop0 | 3.3.3.9/32 |
Vlan-int1 | 10.1.1.2/24 | Vlan-int3 | 30.1.1.1/24 | ||
Vlan-int2 | 20.1.1.1/24 | Vlan-int2 | 20.1.1.2/24 |
Configuration procedure
Configure IP addresses and masks for interfaces. (Details not shown.)
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] isis circuit-level level-2 [SwitchA-Vlan-interface1] quit [SwitchA] interface loopback 0 [SwitchA-LoopBack0] isis enable 1 [SwitchA-LoopBack0] isis circuit-level level-2 [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] isis circuit-level level-2 [SwitchB-Vlan-interface1] quit [SwitchB] interface vlan-interface 2 [SwitchB-Vlan-interface2] isis enable 1 [SwitchB-Vlan-interface2] isis circuit-level level-2 [SwitchB-Vlan-interface2] quit [SwitchB] interface loopback 0 [SwitchB-LoopBack0] isis enable 1 [SwitchB-LoopBack0] isis circuit-level level-2 [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 3 [SwitchC-Vlan-interface3] isis enable 1 [SwitchC-Vlan-interface3] isis circuit-level level-2 [SwitchC-Vlan-interface3] quit [SwitchC] interface vlan-interface 2 [SwitchC-Vlan-interface2] isis enable 1 [SwitchC-Vlan-interface2] isis circuit-level level-2 [SwitchC-Vlan-interface2] quit [SwitchC] interface loopback 0 [SwitchC-LoopBack0] isis enable 1 [SwitchC-LoopBack0] isis circuit-level level-2 [SwitchC-LoopBack0] quit
# Configure Switch D.
<SwitchD> system-view [SwitchD] isis 1 [SwitchD-isis-1] network-entity 00.0005.0000.0000.0004.00 [SwitchD-isis-1] quit [SwitchD] interface vlan-interface 3 [SwitchD-Vlan-interface3] isis enable 1 [SwitchD-Vlan-interface3] isis circuit-level level-2 [SwitchD-Vlan-interface3] quit [SwitchD] interface loopback 0 [SwitchD-LoopBack0] isis enable 1 [SwitchD-LoopBack0] isis circuit-level level-2 [SwitchD-LoopBack0] quit
# Verify that the switches have learned the routes to one another, including the routes to the loopback interfaces. This example uses Switch A.
[SwitchA] display ip routing-table Destinations : 10 Routes : 10 Destination/Mask Proto Pre Cost NextHop Interface 1.1.1.9/32 Direct 0 0 127.0.0.1 InLoop0 2.2.2.9/32 IS_L1 15 10 10.1.1.2 Vlan1 3.3.3.9/32 IS_L1 15 20 10.1.1.2 Vlan1 4.4.4.9/32 IS_L1 15 30 10.1.1.2 Vlan1 10.1.1.0/24 Direct 0 0 10.1.1.1 Vlan1 10.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0 20.1.1.0/24 IS_L1 15 20 10.1.1.2 Vlan1 30.1.1.0/24 IS_L1 15 30 10.1.1.2 Vlan1 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
Configure an LSR ID, enable MPLS, MPLS TE, and RSVP-TE, and configure the DS-TE mode as IETF:
# Configure Switch A.
[SwitchA] mpls lsr-id 1.1.1.9 [SwitchA] mpls te [SwitchA-te] ds-te mode ietf [SwitchA-te] quit [SwitchA] rsvp [SwitchA-rsvp] quit [SwitchA] interface vlan-interface 1 [SwitchA-Vlan-interface1] mpls enable [SwitchA-Vlan-interface1] mpls te enable [SwitchA-Vlan-interface1] rsvp enable [SwitchA-Vlan-interface1] quit
# Configure Switch B.
[SwitchB] mpls lsr-id 2.2.2.9 [SwitchB] mpls te [SwitchB-te] ds-te mode ietf [SwitchB-te] quit [SwitchB] rsvp [SwitchB-rsvp] quit [SwitchB] interface vlan-interface 1 [SwitchB-Vlan-interface1] mpls enable [SwitchB-Vlan-interface1] mpls te enable [SwitchB-Vlan-interface1] rsvp enable [SwitchB-Vlan-interface1] quit [SwitchB] interface vlan-interface 2 [SwitchB-Vlan-interface2] mpls enable [SwitchB-Vlan-interface2] mpls te enable [SwitchB-Vlan-interface2] rsvp enable [SwitchB-Vlan-interface2] quit
# Configure Switch C.
[SwitchC] mpls lsr-id 3.3.3.9 [SwitchC] mpls te [SwitchC-te] ds-te mode ietf [SwitchC-te] quit [SwitchC] rsvp [SwitchC-rsvp] quit [SwitchC] interface vlan-interface 3 [SwitchC-Vlan-interface3] mpls enable [SwitchC-Vlan-interface3] mpls te enable [SwitchC-Vlan-interface3] rsvp enable [SwitchC-Vlan-interface3] quit [SwitchC] interface vlan-interface 2 [SwitchC-Vlan-interface2] mpls enable [SwitchC-Vlan-interface2] mpls te enable [SwitchC-Vlan-interface2] rsvp enable [SwitchC-Vlan-interface2] quit
# Configure Switch D.
[SwitchD] mpls lsr-id 4.4.4.9 [SwitchD] mpls te [SwitchD-te] ds-te mode ietf [SwitchD-te] quit [SwitchD] rsvp [SwitchD-rsvp] quit [SwitchD] interface vlan-interface 3 [SwitchD-Vlan-interface3] mpls enable [SwitchD-Vlan-interface3] mpls te enable [SwitchD-Vlan-interface3] rsvp enable [SwitchD-Vlan-interface3] quit
Configure IS-IS TE:
# Configure Switch A.
[SwitchA] isis 1 [SwitchA-isis-1] cost-style wide [SwitchA-isis-1] mpls te enable level-2 [SwitchA-isis-1] quit
# Configure Switch B.
[SwitchB] isis 1 [SwitchB-isis-1] cost-style wide [SwitchB-isis-1] mpls te enable level-2 [SwitchB-isis-1] quit
# Configure Switch C.
[SwitchC] isis 1 [SwitchC-isis-1] cost-style wide [SwitchC-isis-1] mpls te enable level-2 [SwitchC-isis-1] quit
# Configure Switch D.
[SwitchD] isis 1 [SwitchD-isis-1] cost-style wide [SwitchD-isis-1] mpls te enable level-2 [SwitchD-isis-1] quit
Configure MPLS TE attributes of links:
# Set the maximum bandwidth, maximum reservable bandwidth, and bandwidth constraints 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 rdm 10000 bc1 8000 bc2 5000 bc3 2000 [SwitchA-Vlan-interface1] quit
# Set the maximum bandwidth, maximum reservable bandwidth, and bandwidth constraints 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 rdm 10000 bc1 8000 bc2 5000 bc3 2000 [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 rdm 10000 bc1 8000 bc2 5000 bc3 2000 [SwitchB-Vlan-interface2] quit
# Set the maximum bandwidth, maximum reservable bandwidth, and bandwidth constraints on Switch C.
[SwitchC] interface vlan-interface 3 [SwitchC-Vlan-interface3] mpls te max-link-bandwidth 10000 [SwitchC-Vlan-interface3] mpls te max-reservable-bandwidth rdm 10000 bc1 8000 bc2 5000 bc3 2000 [SwitchC-Vlan-interface3] quit [SwitchC] interface vlan-interface 2 [SwitchC-Vlan-interface2] mpls te max-link-bandwidth 10000 [SwitchC-Vlan-interface2] mpls te max-reservable-bandwidth rdm 10000 bc1 8000 bc2 5000 bc3 2000 [SwitchC-Vlan-interface2] quit
# Set the maximum bandwidth, maximum reservable bandwidth, and bandwidth constraints on Switch D.
[SwitchD] interface vlan-interface 3 [SwitchD-Vlan-interface3] mpls te max-link-bandwidth 10000 [SwitchD-Vlan-interface3] mpls te max-reservable-bandwidth rdm 10000 bc1 8000 bc2 5000 bc3 2000 [SwitchD-Vlan-interface3] quit
Configure an MPLS TE tunnel on Switch A:
# Create MPLS TE tunnel interface Tunnel 1.
[SwitchA] interface Tunnel 1 mode mpls-te [SwitchA-Tunnel1] ip address 7.1.1.1 255.255.255.0
# Specify the tunnel destination address as the LSR ID of Switch D.
[SwitchA-Tunnel1] destination 4.4.4.9
# Configure MPLS TE to use RSVP-TE to establish the tunnel.
[SwitchA-Tunnel1] mpls te signaling rsvp-te
# Assign 4000 kbps bandwidth to CT 2 for the tunnel.
[SwitchA-Tunnel1] mpls te bandwidth ct2 4000
# Set the tunnel setup priority and holding priority both to 0.
[SwitchA-Tunnel1] mpls te priority 0 [SwitchA-Tunnel1] quit
Configure a static route on Switch A to direct the 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 Tunnel4 Current state: UP Line protocol current state: UP Description: Tunnel4 Interface Bandwidth: 64kbps Maximum transmission unit: 1496 Internet address: 7.1.1.1/24 (primary) Tunnel source unknown, destination 4.4.4.9 Tunnel TTL 255 Tunnel protocol/transport CR_LSP 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 drop Output: 0 packets, 0 bytes, 0 drop
# 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, Shared-resource CRLSP down) Tunnel Attributes : LSP ID : 36882 Tunnel ID : 1 Admin State : Normal Ingress LSR ID : 1.1.1.9 Egress LSR ID : 4.4.4.9 Signaling : RSVP-TE Static CRLSP Name : - Resv Style : SE Tunnel mode : - Reverse-LSP name : - Reverse-LSP LSR ID : - Reverse-LSP Tunnel ID: - Class Type : CT2 Tunnel Bandwidth : 4000 kbps Reserved Bandwidth : 4000 kbps Setup Priority : 0 Holding Priority : 0 Affinity Attr/Mask : 0/0 Explicit Path : - Backup Explicit Path : - Metric Type : TE Record Route : Disabled Record Label : Disabled FRR Flag : Disabled Bandwidth Protection : Disabled Backup Bandwidth Flag: Disabled Backup Bandwidth Type: - Backup Bandwidth : - Bypass Tunnel : No Auto Created : No Route Pinning : Disabled Retry Limit : 10 Retry Interval : 2 sec Reoptimization : Disabled Reoptimization Freq : - Backup Type : None Backup LSP ID : - Auto Bandwidth : Disabled Auto Bandwidth Freq : - Min Bandwidth : - Max Bandwidth : - Collected Bandwidth : -
# Display bandwidth information on interface VLAN-interface 1 on Switch A.
[SwitchA] display mpls te link-management bandwidth-allocation interface vlan-interface 1 Interface: Vlan-interface1 Max Link Bandwidth : 10000 kbps Max Reservable Bandwidth of Prestandard RDM : 0 kbps Max Reservable Bandwidth of IETF RDM : 10000 kbps Max Reservable Bandwidth of IETF MAM : 0 kbps Allocated Bandwidth-Item Count : 1 Allocated Bandwidth : 0 kbps Physical Link Status : Up BC Prestandard RDM(kbps) IETF RDM(kbps) IETF MAM(kbps) 0 0 10000 0 1 0 8000 0 2 - 5000 0 3 - 2000 0 TE Class Class Type Priority BW Reserved(kbps) BW Available(kbps) 0 0 0 0 0 1 0 1 0 0 2 0 2 0 0 3 0 3 0 0 4 0 4 0 0 5 0 5 0 0 6 0 6 0 0 7 0 7 0 0
# 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.)