H3C S6850&S9850&S9820-64H Config Examples-Release 655x-6W100

HomeSupportConfigure & DeployConfiguration ExamplesH3C S6850&S9850&S9820-64H Config Examples-Release 655x-6W100
Table of Contents
Related Documents
67-MPLS TE Configuration Examples
Title Size Download
67-MPLS TE Configuration Examples 140.10 KB

 

H3C S6850 & S9850 & S9820-64H

MPLS TE Configuration Examples

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2020 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.

 



Introduction

This document provides MPLS TE configuration examples.

Prerequisites

This document is not restricted to specific software or hardware versions.

The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of MPLS TE.

Example: Establishing MPLS TE tunnels with RSVP-TE

Network configuration

As shown in Figure 1, use RSVP-TE to establish two MPLS TE tunnels between Switch A and Switch D. The MPLS TE tunnel for Enterprise A requires a bandwidth of 20000 kbps. The MPLS TE tunnel for Enterprise B requires a bandwidth of 30000 kbps.

The maximum bandwidth of the link that each tunnel traverses is 50000 kbps and the maximum reservable bandwidth is 40000 kbps.

Figure 1 Network diagram

 

Analysis

To establish MPLS TE tunnels through RSVP-TE, you must perform the following tasks:

·           Enable MPLS, MPLS TE, and RSVP-TE on nodes that the MPLS TE tunnels traverse.

·           On each interface that the MPLS TE tunnels traverse, configure link TE attributes, including the maximum link bandwidth and the maximum reservable bandwidth.

·           On each node that the MPLS TE tunnels traverse, configure the IGP TE extension to advertise the link TE attributes, which generates a TEDB on each node.

Based on the TEDB, CSPF calculates the shortest, TE constraints-compliant path to the tunnel destination. If you do not configure the IGP TE extension, the path is created based on IGP routing. The supported IGP TE extensions are OSPF TE and ISIS TE. This example uses OSPF TE.

·           Create a tunnel interface on the ingress node of each MPLS TE tunnel, and perform the following tasks on the tunnel interface:

¡  Specify the tunnel destination address.

¡  Specify the tunnel bandwidth as required (20000 kbps for Enterprise A and 30000 kbps for Enterprise B).

¡  Specify the MPLS TE signaling protocol as RSVP-TE.

RSVP-TE advertises labels to establish CRLSPs and reserves bandwidth resources on each node along the calculated path.

·           On the ingress node of each MPLS TE tunnel, configure static routing to direct traffic to the MPLS TE tunnel.

Applicable hardware and software versions

The following matrix shows the hardware and software versions to which this configuration example is applicable:

 

Hardware

Software version

S6850 switch series

S9850 switch series

Release 6555P01

S9820-64H switch

Release 6555P01

 

Restrictions and guidelines

Before configuration, disable the spanning tree feature globally or map each VLAN to an MSTI.

Procedures

1.      Configure IP addresses for interfaces:

# Configure IP addresses and masks for interfaces on Switch A, including the loopback interface, as shown in Figure 1.

<SwitchA> system-view

[SwitchA] vlan 10

[SwitchA-vlan10] port hundredgige 1/0/1

[SwitchA-vlan10] quit

[SwitchA] interface vlan-interface 10

[SwitchA-Vlan-interface10] ip address 10.1.1.1 24

[SwitchA-Vlan-interface10] quit

[SwitchA] vlan 30

[SwitchA-vlan30] port hundredgige 1/0/2

[SwitchA-vlan30] quit

[SwitchA] interface vlan-interface 30

[SwitchA-Vlan-interface30] ip address 30.1.1.1 24

[SwitchA-Vlan-interface30] quit

[SwitchA] vlan 70

[SwitchA-vlan70] port hundredgige 1/0/3

[SwitchA-vlan70] quit

[SwitchA] interface vlan-interface 70

[SwitchA-Vlan-interface70] ip address 70.1.1.1 24

[SwitchA-Vlan-interface70] quit

[SwitchA] vlan 80

[SwitchA-vlan80] port hundredgige 1/0/4

[SwitchA-vlan80] quit

[SwitchA] interface vlan-interface 80

[SwitchA-Vlan-interface80] ip address 80.1.1.1 24

[SwitchA-Vlan-interface80] quit

[SwitchA] interface loopback 0

[SwitchA-LoopBack0] ip address 1.1.1.1 32

[SwitchA-LoopBack0] quit

# Configure other devices in the same way that Switch A is configured. (Details not shown.)

2.      Configure OSPF to ensure IP connectivity among the switches:

# Configure Switch A.

[SwitchA] ospf

[SwitchA-ospf-1] area 0

[SwitchA-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0

[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[SwitchA-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[SwitchA-ospf-1-area-0.0.0.0] quit

[SwitchA-ospf-1] quit

# Configure Switch B.

[SwitchB] ospf

[SwitchB-ospf-1] area 0

[SwitchB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0

[SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[SwitchB-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[SwitchB-ospf-1-area-0.0.0.0] quit

[SwitchB-ospf-1] quit

# Configure Switch C.

[SwitchC] ospf

[SwitchC-ospf-1] area 0

[SwitchC-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0

[SwitchC-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] quit

[SwitchC-ospf-1] quit

# Configure Switch D.

[SwitchD] ospf

[SwitchD-ospf-1] area 0

[SwitchD-ospf-1-area-0.0.0.0] network 4.4.4.4 0.0.0.0

[SwitchD-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[SwitchD-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[SwitchD-ospf-1-area-0.0.0.0] quit

[SwitchD-ospf-1] 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. The following shows the output on Switch A.

[SwitchA] display ip routing-table

 

Destinations : 26        Routes : 26

 

Destination/Mask    Proto   Pre  Cost         NextHop         Interface

0.0.0.0/32          Direct  0    0            127.0.0.1       InLoop0

1.1.1.1/32          Direct  0    0            127.0.0.1       InLoop0

2.2.2.2/32          O_INTRA 10   1            10.1.1.2        Vlan10

3.3.3.3/32          O_INTRA 10   1            30.1.1.3        Vlan30

4.4.4.4/32          O_INTRA 10   2            10.1.1.2        Vlan10

8.1.1.0/24          Direct  0    0            8.1.1.1         Tun2

8.1.1.0/32          Direct  0    0            8.1.1.1         Tun2

8.1.1.1/32          Direct  0    0            127.0.0.1       InLoop0

8.1.1.255/32        Direct  0    0            8.1.1.1         Tun2

10.1.1.0/24         Direct  0    0            10.1.1.1        Vlan10

10.1.1.0/32         Direct  0    0            10.1.1.1        Vlan10

10.1.1.1/32         Direct  0    0            127.0.0.1       InLoop0

10.1.1.255/32       Direct  0    0            10.1.1.1        Vlan10

20.1.1.0/24         O_INTRA 10   2            10.1.1.2        Vlan10

30.1.1.0/24         Direct  0    0            30.1.1.1        Vlan30

30.1.1.0/32         Direct  0    0            30.1.1.1        Vlan30

30.1.1.1/32         Direct  0    0            127.0.0.1       InLoop0

30.1.1.255/32       Direct  0    0            30.1.1.1        Vlan30

40.1.1.0/24         Static  1    0            0.0.0.0         Tun2

127.0.0.0/8         Direct  0    0            127.0.0.1       InLoop0

127.0.0.0/32        Direct  0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct  0    0            127.0.0.1       InLoop0

127.255.255.255/32  Direct  0    0            127.0.0.1       InLoop0

224.0.0.0/4         Direct  0    0            0.0.0.0         NULL0

224.0.0.0/24        Direct  0    0            0.0.0.0         NULL0

255.255.255.255/32  Direct  0    0            127.0.0.1       InLoop0

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

# Configure Switch A.

[SwitchA] mpls lsr-id 1.1.1.1

[SwitchA] mpls te

[SwitchA-te] quit

[SwitchA] rsvp

[SwitchA-rsvp] quit

[SwitchA] interface vlan-interface 10

[SwitchA-Vlan-interface10] mpls enable

[SwitchA-Vlan-interface10] mpls te enable

[SwitchA-Vlan-interface10] rsvp enable

[SwitchA-Vlan-interface10] quit

[SwitchA] interface vlan-interface 30

[SwitchA-Vlan-interface30] mpls enable

[SwitchA-Vlan-interface30] mpls te enable

[SwitchA-Vlan-interface30] rsvp enable

[SwitchA-Vlan-interface30] quit

# Configure Switch B.

[SwitchB] mpls lsr-id 2.2.2.2

[SwitchB] mpls te

[SwitchB-te] quit

[SwitchB] rsvp

[SwitchB-rsvp] quit

[SwitchB] interface vlan-interface 10

[SwitchB-Vlan-interface10] mpls enable

[SwitchB-Vlan-interface10] mpls te enable

[SwitchB-Vlan-interface10] rsvp enable

[SwitchB-Vlan-interface10] quit

[SwitchB] interface vlan-interface 20

[SwitchB-Vlan-interface20] mpls enable

[SwitchB-Vlan-interface20] mpls te enable

[SwitchB-Vlan-interface20] rsvp enable

[SwitchB-Vlan-interface20] quit

# Configure Switch C.

[SwitchC] mpls lsr-id 3.3.3.3

[SwitchC] mpls te

[SwitchC-te] quit

[SwitchC] rsvp

[SwitchC-rsvp] quit

[SwitchC] interface vlan-interface 30

[SwitchC-Vlan-interface30] mpls enable

[SwitchC-Vlan-interface30] mpls te enable

[SwitchC-Vlan-interface30] rsvp enable

[SwitchC-Vlan-interface30] quit

[SwitchC] interface vlan-interface 40

[SwitchC-Vlan-interface40] mpls enable

[SwitchC-Vlan-interface40] mpls te enable

[SwitchC-Vlan-interface40] rsvp enable

[SwitchC-Vlan-interface40] quit

# Configure Switch D.

[SwitchD] mpls lsr-id 4.4.4.4

[SwitchD] mpls te

[SwitchD-te] quit

[SwitchD] rsvp

[SwitchD-rsvp] quit

[SwitchD] interface vlan-interface 20

[SwitchD-Vlan-interface20] mpls enable

[SwitchD-Vlan-interface20] mpls te enable

[SwitchD-Vlan-interface20] rsvp enable

[SwitchD-Vlan-interface20] quit

[SwitchD] interface vlan-interface 40

[SwitchD-Vlan-interface40] mpls enable

[SwitchD-Vlan-interface40] mpls te enable

[SwitchD-Vlan-interface40] rsvp enable

[SwitchD-Vlan-interface40] quit

4.      Configure MPLS TE attributes of links:

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

[SwitchA] interface vlan-interface 10

[SwitchA-Vlan-interface10] mpls te max-link-bandwidth 50000

[SwitchA-Vlan-interface10] mpls te max-reservable-bandwidth 40000

[SwitchA-Vlan-interface10] quit

[SwitchA] interface vlan-interface 30

[SwitchA-Vlan-interface30] mpls te max-link-bandwidth 50000

[SwitchA-Vlan-interface30] mpls te max-reservable-bandwidth 40000

[SwitchA-Vlan-interface30] quit

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

[SwitchB] interface vlan-interface 10

[SwitchB-Vlan-interface10] mpls te max-link-bandwidth 50000

[SwitchB-Vlan-interface10] mpls te max-reservable-bandwidth 40000

[SwitchB-Vlan-interface10] quit

[SwitchB] interface vlan-interface 20

[SwitchB-Vlan-interface20] mpls te max-link-bandwidth 50000

[SwitchB-Vlan-interface20] mpls te max-reservable-bandwidth 40000

[SwitchB-Vlan-interface20] quit

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

[SwitchC] interface vlan-interface 30

[SwitchC-Vlan-interface30] mpls te max-link-bandwidth 50000

[SwitchC-Vlan-interface30] mpls te max-reservable-bandwidth 40000

[SwitchC-Vlan-interface30] quit

[SwitchC] interface vlan-interface 40

[SwitchC-Vlan-interface40] mpls te max-link-bandwidth 50000

[SwitchC-Vlan-interface40] mpls te max-reservable-bandwidth 40000

[SwitchC-Vlan-interface40] quit

# Configure the maximum link bandwidth and maximum reservable bandwidth on Switch D.

[SwitchD] interface vlan-interface 20

[SwitchD-Vlan-interface20] mpls te max-link-bandwidth 50000

[SwitchD-Vlan-interface20] mpls te max-reservable-bandwidth 40000

[SwitchD-Vlan-interface20] quit

[SwitchD] interface vlan-interface 40

[SwitchD-Vlan-interface40] mpls te max-link-bandwidth 50000

[SwitchD-Vlan-interface40] mpls te max-reservable-bandwidth 40000

[SwitchD-Vlan-interface40] quit

5.      Configure OSPF TE to advertise link TE attributes:

# Enable opaque LSA advertisement and reception on Switch A. By default, the opaque LSA advertisement and reception capability is enabled.

[SwitchA] ospf

[SwitchA-ospf-1] opaque-capability enable

# Enable MPLS TE for OSPF area 0 on Switch A.

[SwitchA-ospf-1] area 0

[SwitchA-ospf-1-area-0.0.0.0] mpls te enable

[SwitchA-ospf-1-area-0.0.0.0] quit

[SwitchA-ospf-1] quit

# Enable opaque LSA advertisement and reception on Switch B. By default, the opaque LSA advertisement and reception capability is enabled.

[SwitchB] ospf

[SwitchB-ospf-1] opaque-capability enable

# Enable MPLS TE for OSPF area 0 on Switch B.

[SwitchB-ospf-1] area 0

[SwitchB-ospf-1-area-0.0.0.0] mpls te enable

[SwitchB-ospf-1-area-0.0.0.0] quit

[SwitchB-ospf-1] quit

# Enable opaque LSA advertisement and reception on Switch C. By default, the opaque LSA advertisement and reception capability is enabled.

[SwitchC] ospf

[SwitchC-ospf-1] opaque-capability enable

# Enable MPLS TE for OSPF area 0 on Switch C.

[SwitchC-ospf-1] area 0

[SwitchC-ospf-1-area-0.0.0.0] mpls te enable

[SwitchC-ospf-1-area-0.0.0.0] quit

[SwitchC-ospf-1] quit

# Enable opaque LSA advertisement and reception on Switch D. By default, the opaque LSA advertisement and reception capability is enabled.

[SwitchD] ospf

[SwitchD-ospf-1] opaque-capability enable

# Enable MPLS TE for OSPF area 0 on Switch D.

[SwitchD-ospf-1] area 0

[SwitchD-ospf-1-area-0.0.0.0] mpls te enable

[SwitchD-ospf-1-area-0.0.0.0] quit

[SwitchD-ospf-1] quit

6.      Configure MPLS TE tunnels on Switch A:

# Configure MPLS TE tunnel interface Tunnel 1 to forward traffic of Enterprise A.

[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, use RSVP-TE to establish the tunnel, and assign 20000 kbps bandwidth to the tunnel.

[SwitchA-Tunnel1] destination 4.4.4.4

[SwitchA-Tunnel1] mpls te signaling rsvp-te

[SwitchA-Tunnel1] mpls te bandwidth 20000

# Enable route recording for MPLS TE tunnel 1.

[SwitchA-Tunnel1] mpls te record-route

[SwitchA-Tunnel1] quit

# Configure MPLS TE tunnel interface Tunnel 2 to forward traffic of Enterprise B.

[SwitchA] interface tunnel 2 mode mpls-te

[SwitchA-Tunnel2] ip address 8.1.1.1 255.255.255.0

# Specify the tunnel destination address as the LSR ID of Switch D, use RSVP-TE to establish the tunnel, and assign 30000 kbps bandwidth to the tunnel.

[SwitchA-Tunnel2] destination 4.4.4.4

[SwitchA-Tunnel2] mpls te signaling rsvp-te

[SwitchA-Tunnel2] mpls te bandwidth 30000

# Enable route recording for MPLS TE tunnel 2.

[SwitchA-Tunnel2] mpls te record-route

[SwitchA-Tunnel2] quit

7.      Configure static routing on Switch A to direct traffic to the MPLS TE tunnels:

# Configure a static route to direct traffic destined for 50.1.1.0/24 to MPLS TE tunnel interface Tunnel 1.

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

# Configure a static route to direct traffic destined for 60.1.1.0/24 to MPLS TE tunnel interface Tunnel 2.

[SwitchA] ip route-static 60.1.1.0 24 tunnel 2 preference 1

Verifying the configuration

# Execute the display interface tunnel brief command on Switch A. The output shows that the two tunnel interfaces are up.

[SwitchA] display interface tunnel brief

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Primary IP      Description

Tun1                 UP   UP       7.1.1.1

Tun2                 UP   UP       8.1.1.1

# Execute the display mpls te tunnel-interface command on Switch A to display detailed information about the MPLS TE tunnels.

[SwitchA] display mpls te tunnel-interface

Tunnel Name            : Tunnel 1

Tunnel State           : Up (Main CRLSP up, Shared-resource CRLSP down)

Tunnel Attributes      :

  LSP ID               : 27415           Tunnel ID            : 1

  Admin State          : Normal

  Ingress LSR ID       : 1.1.1.1         Egress LSR ID        : 4.4.4.4

  Signaling            : RSVP-TE         Static CRLSP Name    : -

  Resv Style           : SE

  Tunnel mode          : -

  Reverse-LSP name     : -

  Reverse-LSP LSR ID   : -               Reverse-LSP Tunnel ID: -

  Class Type           : CT0             Tunnel Bandwidth     : 20000 kbps

  Reserved Bandwidth   : 20000 kbps

  Setup Priority       : 7               Holding Priority     : 7

  Affinity Attr/Mask   : 0/0

  Explicit Path        : -

  Backup Explicit Path : -

  Metric Type          : TE

  Record Route         : Enabled         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          : 3               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  : -

 

Tunnel Name            : Tunnel 2

Tunnel State           : Up (Main CRLSP up, Shared-resource CRLSP down)

Tunnel Attributes      :

  LSP ID               : 27302           Tunnel ID            : 2

  Admin State          : Normal

  Ingress LSR ID       : 1.1.1.1         Egress LSR ID        : 4.4.4.4

  Signaling            : RSVP-TE         Static CRLSP Name    : -

  Resv Style           : SE

  Tunnel mode          : -

  Reverse-LSP name     : -

  Reverse-LSP LSR ID   : -               Reverse-LSP Tunnel ID: -

  Class Type           : CT0             Tunnel Bandwidth     : 30000 kbps

  Reserved Bandwidth   : 30000 kbps

  Setup Priority       : 7               Holding Priority     : 7

  Affinity Attr/Mask   : 0/0

  Explicit Path        : -

  Backup Explicit Path : -

  Metric Type          : TE

  Record Route         : Enabled         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          : 3               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  : -

# Execute the display ip routing-table command on Switch A. The output shows two static route entries with output interfaces of Tunnel 1 and Tunnel 2.

[SwitchA] display ip routing-table

 

Destinations : 30        Routes : 31

 

Destination/Mask    Proto   Pre  Cost         NextHop         Interface

0.0.0.0/32          Direct  0    0            127.0.0.1       InLoop0

1.1.1.1/32          Direct  0    0            127.0.0.1       InLoop0

2.2.2.2/32          O_INTRA 10   1            10.1.1.2        Vlan10

3.3.3.3/32          O_INTRA 10   1            30.1.1.3        Vlan30

4.4.4.4/32          O_INTRA 10   2            10.1.1.2        Vlan10

                                             30.1.1.3        Vlan30

7.1.1.0/24          Direct  0    0            7.1.1.1         Tun1

7.1.1.0/32          Direct  0    0            7.1.1.1         Tun1

7.1.1.1/32          Direct  0    0            127.0.0.1       InLoop0

7.1.1.255/32        Direct  0    0            7.1.1.1         Tun1

8.1.1.0/24          Direct  0    0            8.1.1.1         Tun2

8.1.1.0/32          Direct  0    0            8.1.1.1         Tun2

8.1.1.1/32          Direct  0    0            127.0.0.1       InLoop0

8.1.1.255/32        Direct  0    0            8.1.1.1         Tun2

10.1.1.0/24         Direct  0    0            10.1.1.1        Vlan10

10.1.1.0/32         Direct  0    0            10.1.1.1        Vlan10

10.1.1.1/32         Direct  0    0            127.0.0.1       InLoop0

10.1.1.255/32       Direct  0    0            10.1.1.1        Vlan10

50.1.1.0/24         Static  1    0            0.0.0.0         Tun1

30.1.1.0/24         Direct  0    0            30.1.1.1        Vlan30

30.1.1.0/32         Direct  0    0            30.1.1.1        Vlan30

30.1.1.1/32         Direct  0    0            127.0.0.1       InLoop0

30.1.1.255/32       Direct  0    0            30.1.1.1        Vlan30

60.1.1.0/24         Static  1    0            0.0.0.0         Tun2

127.0.0.0/8         Direct  0    0            127.0.0.1       InLoop0

127.0.0.0/32        Direct  0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct  0    0            127.0.0.1       InLoop0

127.255.255.255/32  Direct  0    0            127.0.0.1       InLoop0

224.0.0.0/4         Direct  0    0            0.0.0.0         NULL0

224.0.0.0/24        Direct  0    0            0.0.0.0         NULL0

255.255.255.255/32  Direct  0    0            127.0.0.1       InLoop0

# Execute the display rsvp lsp verbose command on Switch A to verify the following information:

·           Tunnel 1 uses path Switch A—Switch B—Switch D, and has a bandwidth of 20000 kbps.

·           Tunnel 2 uses path Switch A—Switch C—Switch D, and has a bandwidth of 30000 kbps.

[SwitchA] display rsvp lsp verbose

Tunnel name: SwitchA_t1

Destination: 4.4.4.4                      Source: 1.1.1.1

Tunnel ID: 1                              LSP ID: 27415

LSR type: Ingress                         Direction: Unidirectional

Setup priority: 7                         Holding priority: 7

In-Label: -                               Out-Label: 1146

In-Interface: -                           Out-Interface: Vlan10

Nexthop: 10.1.1.2                         Exclude-any: 0

Include-Any: 0                            Include-all: 0

Mean rate (CIR): 20000 kbps               Mean burst size (CBS): 1000.00 bytes

Path MTU: 1500                            Class type: CT0

RRO number: 6

  10.1.1.1/32        Flag: 0x00 (No FRR)

  10.1.1.2/32        Flag: 0x00 (No FRR)

  2.2.2.2/32         Flag: 0x20 (No FRR/Node-ID)

  20.1.1.2/32        Flag: 0x00 (No FRR)

  20.1.1.4/32        Flag: 0x00 (No FRR)

  4.4.4.4/32         Flag: 0x20 (No FRR/Node-ID)

Fast Reroute protection: None

 

Tunnel name: SwitchA_t2

Destination: 4.4.4.4                      Source: 1.1.1.1

Tunnel ID: 2                              LSP ID: 27302

LSR type: Ingress                         Direction: Unidirectional

Setup priority: 7                         Holding priority: 7

In-Label: -                               Out-Label: 1150

In-Interface: -                           Out-Interface: Vlan30

Nexthop: 30.1.1.3                         Exclude-any: 0

Include-Any: 0                            Include-all: 0

Mean rate (CIR): 30000 kbps               Mean burst size (CBS): 1000.00 bytes

Path MTU: 1500                            Class type: CT0

RRO number: 6

  30.1.1.1/32        Flag: 0x00 (No FRR)

  30.1.1.3/32        Flag: 0x00 (No FRR)

  3.3.3.3/32         Flag: 0x20 (No FRR/Node-ID)

  40.1.1.3/32        Flag: 0x00 (No FRR)

  40.1.1.4/32        Flag: 0x00 (No FRR)

  4.4.4.4/32         Flag: 0x20 (No FRR/Node-ID)

Fast Reroute protection: None

Configuration files

·           Switch A:

#

ospf 1

 area 0.0.0.0

  network 1.1.1.1 0.0.0.0

  network 10.1.1.0 0.0.0.255

  network 30.1.1.0 0.0.0.255

  mpls te enable

#

 mpls lsr-id 1.1.1.1

#

vlan 10

#

vlan 30

#

vlan 70

#

vlan 80

#

mpls te

#

rsvp

#

interface LoopBack0

 ip address 1.1.1.1 255.255.255.255

#

interface Vlan-interface10

 ip address 10.1.1.1 255.255.255.0

 mpls enable

 mpls te enable

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 40000

 rsvp enable

#

interface Vlan-interface30

 ip address 30.1.1.1 255.255.255.0

 mpls enable

 mpls te enable

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 40000

 rsvp enable

#

interface Vlan-interface70

 ip address 70.1.1.1 255.255.255.0

#

interface Vlan-interface80

 ip address 80.1.1.1 255.255.255.0

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 10

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 30

#

interface HundredGigE1/0/3

 port link-mode bridge

 port access vlan 70

#

interface HundredGigE1/0/4

 port link-mode bridge

 port access vlan 80

#

interface Tunnel1 mode mpls-te

 ip address 7.1.1.1 255.255.255.0

 mpls te bandwidth ct0 20000

 mpls te record-route

 destination 4.4.4.4

#

interface Tunnel2 mode mpls-te

 ip address 8.1.1.1 255.255.255.0

 mpls te bandwidth ct0 30000

 mpls te record-route

 destination 4.4.4.4

#

 ip route-static 50.1.1.0 24 Tunnel1 preference 1

 ip route-static 60.1.1.0 24 Tunnel2 preference 1

#

·           Switch B:

#

ospf 1

 area 0.0.0.0

  network 2.2.2.2 0.0.0.0

  network 10.1.1.0 0.0.0.255

  network 20.1.1.0 0.0.0.255

  mpls te enable

#

 mpls lsr-id 2.2.2.2

#

vlan 10

#

vlan 20

#

mpls te

#

rsvp

#

interface LoopBack0

 ip address 2.2.2.2 255.255.255.255

#

interface Vlan-interface10

 ip address 10.1.1.2 255.255.255.0

 mpls enable

 mpls te enable

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 40000

 rsvp enable

#

interface Vlan-interface20

 ip address 20.1.1.2 255.255.255.0

 mpls enable

 mpls te enable

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 40000

 rsvp enable

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 10

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 20

#

·           Switch C:

#

ospf 1

 area 0.0.0.0

  network 3.3.3.3 0.0.0.0

  network 30.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

  mpls te enable

#

 mpls lsr-id 3.3.3.3

#

vlan 30

#

vlan 40

#

mpls te

#

rsvp

#

interface LoopBack0

 ip address 3.3.3.3 255.255.255.0

#

interface Vlan-interface30

 ip address 30.1.1.3 255.255.255.0

 mpls enable

 mpls te enable

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 40000

 rsvp enable

#

interface Vlan-interface40

 ip address 40.1.1.3 255.255.255.0

 mpls enable

 mpls te enable

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 40000

 rsvp enable

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 40

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 30

#

·           Switch D:

#

ospf 1

 area 0.0.0.0

  network 4.4.4.4 0.0.0.0

  network 20.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

  mpls te enable

#

 mpls lsr-id 4.4.4.4

#

vlan 20

#

vlan 40

#

vlan 50

#

vlan 60

#

mpls te

#

rsvp

#

interface LoopBack0

 ip address 4.4.4.4 255.255.255.255

#

interface Vlan-interface20

 ip address 20.1.1.4 255.255.255.0

 mpls enable

 mpls te enable

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 40000

 rsvp enable

#

interface Vlan-interface40

 ip address 40.1.1.4 255.255.255.0

 mpls enable

 mpls te enable

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 40000

 rsvp enable

#

interface Vlan-interface50

 ip address 50.1.1.4 255.255.255.0

#

interface Vlan-interface60

 ip address 60.1.1.4 255.255.255.0

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 40

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 20

#

interface HundredGigE1/0/3

 port link-mode bridge

 port access vlan 50

#

interface HundredGigE1/0/4

 port link-mode bridge

 port access vlan 60

#

Example: Configuring MPLS TE forwarding adjacency

Network configuration

As shown in Figure 2, Device A, Device B, Device C, and Device D run OSPF.

Establish an MPLS TE tunnel from Device B to Device D that uses the path Device B—Device C—Device D, and configure MPLS TE forwarding adjacency for the tunnel.

Before the tunnel is established, traffic from Device A to Device D is forwarded through the direct link Device A—Device D. After the tunnel is established, the traffic is forwarded through the MPLS TE tunnel.

Figure 2 Network diagram

 

Analysis

·           Enable MPLS TE on nodes and interfaces that the MPLS TE tunnels traverse.

·           To make forwarding adjacency take effect, you must establish two MPLS TE tunnels in opposite directions between Device B and Device D, and enable forwarding adjacency on both devices.

·           For the MPLS TE tunnel to use the path Device B—Device C—Device D, configure the path as the explicit path for the tunnel.

·           For traffic from Device A to Device D to be forwarded through the MPLS TE tunnel, make sure the tunnel's metric is less than 15 (metric 25 minus 10). This example uses 12.

Applicable hardware and software versions

The following matrix shows the hardware and software versions to which this configuration example is applicable:

 

Hardware

Software version

S6850 switch series

S9850 switch series

Release 6555P01

S9820-64H switch

Release 6555P01

 

Procedures

1.      Configure IP addresses for interfaces, configure basic OSPF, and set OSPF costs. (Details not shown.) For the configuration, see "Configuration files."

2.      Enable MPLS TE on each node and interface that the MPLS TE tunnel traverses:

# On Device B, configure an LSR ID, and enable MPLS, MPLS TE, and RSVP-TE.

<DeviceB> system-view

[DeviceB] mpls lsr-id 2.2.2.2

[DeviceB] mpls te

[DeviceB-te] quit

[DeviceB] rsvp

[DeviceB-rsvp] quit

[DeviceB] interface vlan-interface 23

[DeviceB-Vlan-interface23] mpls enable

[DeviceB-Vlan-interface23] mpls te enable

[DeviceB-Vlan-interface23] rsvp enable

[DeviceB-Vlan-interface23] quit

# On Device C, configure an LSR ID, and enable MPLS, MPLS TE, and RSVP-TE.

<DeviceC> system-view

[DeviceC] mpls lsr-id 3.3.3.3

[DeviceC] mpls te

[DeviceC-te] quit

[DeviceC] rsvp

[DeviceC-rsvp] quit

[DeviceC] interface vlan-interface 23

[DeviceC-Vlan-interface23] mpls enable

[DeviceC-Vlan-interface23] mpls te enable

[DeviceC-Vlan-interface23] rsvp enable

[DeviceC-Vlan-interface23] quit

[DeviceC] interface vlan-interface 34

[DeviceC-Vlan-interface34] mpls enable

[DeviceC-Vlan-interface34] mpls te enable

[DeviceC-Vlan-interface34] rsvp enable

[DeviceC-Vlan-interface34] quit

# On Device D, configure an LSR ID, and enable MPLS, MPLS TE, and RSVP-TE.

<DeviceD> system-view

[DeviceD] mpls lsr-id 4.4.4.4

[DeviceD] mpls te

[DeviceD-te] quit

[DeviceD] rsvp

[DeviceD-rsvp] quit

[DeviceD] interface vlan-interface 34

[DeviceD-Vlan-interface34] mpls enable

[DeviceD-Vlan-interface34] mpls te enable

[DeviceD-Vlan-interface34] rsvp enable

[DeviceD-Vlan-interface34] quit

3.      Configure OSPF TE to advertise link TE attributes:

# On Device B, enable opaque LSA advertisement and reception, and enable MPLS TE for OSPF area 0. By default, opaque LSA advertisement and reception are enabled.

[DeviceB] ospf

[DeviceB-ospf-1] opaque-capability enable

[DeviceB-ospf-1] area 0

[DeviceB-ospf-1-area-0.0.0.0] mpls te enable

[DeviceB-ospf-1-area-0.0.0.0] quit

[DeviceB-ospf-1] quit

# On Device C, enable opaque LSA advertisement and reception, and enable MPLS TE for OSPF area 0. By default, opaque LSA advertisement and reception are enabled.

[DeviceC] ospf

[DeviceC-ospf-1] opaque-capability enable

[DeviceC-ospf-1] area 0

[DeviceC-ospf-1-area-0.0.0.0] mpls te enable

[DeviceC-ospf-1-area-0.0.0.0] quit

[DeviceC-ospf-1] quit

# On Device D, enable opaque LSA advertisement and reception, and enable MPLS TE for OSPF area 0. By default, opaque LSA advertisement and reception are enabled.

[DeviceD] ospf

[DeviceD-ospf-1] opaque-capability enable

[DeviceD-ospf-1] area 0

[DeviceD-ospf-1-area-0.0.0.0] mpls te enable

[DeviceD-ospf-1-area-0.0.0.0] quit

[DeviceD-ospf-1] quit

4.      Configure MPLS TE tunnels:

# On Device B, configure MPLS TE tunnel interface Tunnel 1, and specify the tunnel destination address as the LSR ID of Device D.

[DeviceB] interface tunnel 1 mode mpls-te

[DeviceB-Tunnel1] ip address 9.2.2.2 255.255.255.0

[DeviceB-Tunnel1] destination 4.4.4.4

# Configure MPLS TE to use RSVP-TE to establish the tunnel.

[DeviceB-Tunnel1] mpls te signaling rsvp-te

[DeviceB-Tunnel1] quit

# Configure an explicit path named tun1.

[DeviceB] explicit-path tun1

[DeviceB-explicit-path-tun1] nexthop 23.23.23.3

[DeviceB-explicit-path-tun1] nexthop 34.34.34.4

[DeviceB-explicit-path-tun1]quit

# Specify explicit path tun1 for the tunnel.

[DeviceB] interface tunnel 1

[DeviceB–Tunnel1] mpls te path preference 1 explicit-path tun1

# Enable forwarding adjacency for the tunnel.

[DeviceB-Tunnel1] mpls te igp advertise

# Enable OSPF on tunnel interface Tunnel 1 and set the OSPF cost to 12 for the tunnel interface.

[DeviceB-Tunnel1] ospf 1 area 0

[DeviceB-Tunnel1] ospf cost 12

[DeviceB-Tunnel1] quit

# On Device D, configure MPLS TE tunnel interface Tunnel 1, and specify the tunnel destination address as the LSR ID of Device B.

[DeviceD] interface tunnel 1 mode mpls-te

[DeviceD-Tunnel1] ip address 9.2.2.4  255.255.255.0

[DeviceD-Tunnel1] destination 2.2.2.2

# Configure MPLS TE to use RSVP-TE to establish the tunnel.

[DeviceD-Tunnel1] mpls te signaling rsvp-te

[DeviceD-Tunnel1] quit

# Configure an explicit path named tun1.

[DeviceD] explicit-path tun1

[DeviceD-explicit-path-tun1] nexthop 34.34.34.3

[DeviceD-explicit-path-tun1] nexthop 23.23.23.2

[DeviceD-explicit-path-tun1]quit

# Specify explicit path tun1 for the tunnel.

[DeviceD] interface tunnel 1

[DeviceD–Tunnel1] mpls te path preference 1 explicit-path tun1

# Enable forwarding adjacency for the tunnel.

[DeviceD-Tunnel1] mpls te igp advertise

# Enable OSPF on tunnel interface Tunnel 1 and set the OSPF cost to 12 for the tunnel interface.

[DeviceD-Tunnel1] ospf 1 area 0

[DeviceD-Tunnel1] ospf cost 12

[DeviceD-Tunnel1] quit

Verifying the configuration

# Execute the display interface tunnel brief command on Device B and Device D. This example uses Device B. The output shows that Tunnel 1 is up.

[DeviceB] display interface tunnel brief

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Primary IP      Description

Tun1                 UP   UP       9.2.2.2

# Display routing table information on Device A. The output shows that the next hop of the route to Device D is Device B, and the cost is 22 (10 plus 12). The MPLS TE tunnel has been used during IGP route calculation.

[Device A] display ip routing-table

 

Destinations : 24        Routes : 24

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0

1.1.1.1/32         Direct  0   0           127.0.0.1       InLoop0

2.2.2.2/32         O_INTRA 10  10          12.12.12.2      Vlan12

3.3.3.3/32         O_INTRA 10  20          12.12.12.2      Vlan12

4.4.4.4/32         O_INTRA 10  22          12.12.12.2      Vlan12

9.2.2.0/24         O_INTRA 10  22          12.12.12.2      Vlan12

10.1.0.3/32        Direct  0   0           127.0.0.1       InLoop0

12.12.12.0/24      Direct  0   0           12.12.12.1      Vlan12

12.12.12.0/32      Direct  0   0           12.12.12.1      Vlan12

12.12.12.1/32      Direct  0   0           127.0.0.1       InLoop0

12.12.12.255/32    Direct  0   0           12.12.12.1      Vlan12

14.14.14.0/24      Direct  0   0           14.14.14.1      Vlan14

14.14.14.0/32      Direct  0   0           14.14.14.1      Vlan14

14.14.14.1/32      Direct  0   0           127.0.0.1       InLoop0

14.14.14.255/32    Direct  0   0           14.14.14.1      Vlan14

23.23.23.0/24      O_INTRA 10  20          12.12.12.2      Vlan12

34.34.34.0/24      O_INTRA 10  30          12.12.12.2      Vlan12

127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0

127.0.0.0/32       Direct  0   0           127.0.0.1       InLoop0

127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0

127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0

224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0

255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

Configuration files

·           Device A:

#

ospf 1

 area 0.0.0.0

  network 1.1.1.1 0.0.0.0

  network 12.12.12.0 0.0.0.255

  network 14.14.14.0 0.0.0.255

#

vlan 12

#

vlan 14

#

interface LoopBack0

 ip address 1.1.1.1 255.255.255.255

#

interface Vlan-interface12

 ip address 12.12.12.1 255.255.255.0

 ospf cost 10

#

interface Vlan-interface14

 ip address 14.14.14.1 255.255.255.0

 ospf cost 25

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 12

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 14

#

·           Device B:

#

ospf 1

 area 0.0.0.0

  network 2.2.2.2 0.0.0.0

  network 12.12.12.0 0.0.0.255

  network 23.23.23.0 0.0.0.255

  mpls te enable

#

 mpls lsr-id 2.2.2.2

#

vlan 12

#

vlan 23

#

mpls te

#

explicit-path tun1

 nexthop index 1 23.23.23.3 include strict

 nexthop index 101 34.34.34.4 include strict

#

rsvp

#

interface LoopBack0

 ip address 2.2.2.2 255.255.255.255

#

interface Vlan-interface12

 ip address 12.12.12.2 255.255.255.0

 ospf cost 10

#

interface Vlan-interface23

 ip address 23.23.23.2 255.255.255.0

 ospf cost 10

 mpls enable

 mpls te enable

 rsvp enable

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 12

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 23

#

interface Tunnel1 mode mpls-te

 ip address 9.2.2.2 255.255.255.0

 ospf cost 12

 ospf 1 area 0.0.0.0

 mpls te path preference 1 explicit-path tun1

 mpls te igp advertise

 destination 4.4.4.4

#

·           Device C:

#

ospf 1

 area 0.0.0.0

  network 3.3.3.3 0.0.0.0

  network 23.23.23.0 0.0.0.255

  network 34.34.34.0 0.0.0.255

  mpls te enable

#

 mpls lsr-id 3.3.3.3

#

vlan 23

#

vlan 34

#

mpls te

#

rsvp

#

interface LoopBack0

 ip address 3.3.3.3 255.255.255.255

#

interface Vlan-interface23

 ip address 23.23.23.3 255.255.255.0

 ospf cost 10

 mpls enable

 mpls te enable

 rsvp enable

#

interface Vlan-interface34

 ip address 34.34.34.3 255.255.255.0

 ospf cost 10

 mpls enable

 mpls te enable

 rsvp enable

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 34

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 23

#

·           Device D:

#

ospf 1

 area 0.0.0.0

  network 4.4.4.4 0.0.0.0

  network 14.14.14.0 0.0.0.255

  network 34.34.34.0 0.0.0.255

  mpls te enable

#

 mpls lsr-id 4.4.4.4

#

vlan 14

#

vlan 34

#

mpls te

#

explicit-path tun1

 nexthop index 1 34.34.34.3 include strict

 nexthop index 101 23.23.23.2 include strict

#

rsvp

#

interface LoopBack0

 ip address 4.4.4.4 255.255.255.255

#

interface Vlan-interface14

 ip address 14.14.14.4 255.255.255.0

 ospf cost 25

#

interface Vlan-interface34

 ip address 34.34.34.4 255.255.255.0

 ospf cost 10

 mpls enable

 mpls te enable

 rsvp enable

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 34

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 14

#

interface Tunnel1 mode mpls-te

ip address 9.2.2.4 255.255.255.0

 ospf cost 12

 ospf 1 area 0.0.0.0

 mpls te path preference 1 explicit-path tun1

 mpls te igp advertise

 destination 2.2.2.2

#

Related documentation

·           H3C S6850 & S9850 Switch Series MPLS Configuration Guide-Release 655x

·           H3C S6850 & S9850 Switch Series MPLS Command Reference-Release 655x

·           H3C S9820-64H Switch MPLS Configuration Guide-Release 655x

·           H3C S9820-64H Switch MPLS Command Reference-Release 655x

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网