Example for Configuring a Dynamic MPLS TE Tunnel
Networking Requirements
As shown in Figure 4-30, an enterprise establishes its own MPLS backbone network with LSRA, LSRB, and LSRC deployed. The MPLS backbone network uses OSPF. A tunnel needs to be set up over the public network on the MPLS backbone network to transmit L2VPN or L3VPN services, and the tunnel must be able to adapt to network topology changes to ensure stable data transmission.
RSVP-TE is used to establish a dynamic MPLS TE tunnel.
Configuration Roadmap
The configuration roadmap is as follows:
On the MPLS backbone network, MPLS LDP and MPLS TE tunnels can carry L2VPN or L3VPN services. Configure an MPLS TE tunnel to ensure stable data transmission upon frequent topology changes on the enterprise network.
Configure OSPF to ensure that there are reachable routes between devices on the MPLS backbone network.
Enable MPLS TE and RSVP-TE on each node so that an MPLS TE tunnel can be set up.
Enable OSPF TE so that TE information can be advertised to other nodes through OSPF.
Create a tunnel interface on the ingress node, configure tunnel attributes, and enable MPLS TE CSPF to create a dynamic MPLS TE tunnel.
Import traffic to the TE tunnel to forward traffic destined from PC1 to PC2 through the TE tunnel.
Procedure
- Assign IP addresses to interfaces.
# Configure LSRA.
<HUAWEI> system-view [~HUAWEI] sysname LSRA [*HUAWEI] commit [~LSRA] vlan batch 10 100 [*LSRA] interface vlanif 10 [*LSRA-Vlanif10] ip address 10.1.1.1 255.255.255.0 [*LSRA] interface vlanif 100 [*LSRA-Vlanif100] ip address 172.1.1.1 255.255.255.0 [*LSRA-Vlanif100] quit [*LSRA] interface 10ge 1/0/0 [*LSRA-10GE1/0/0] port link-type trunk [*LSRA-10GE1/0/0] port trunk allow-pass vlan 100 [*LSRA-10GE1/0/0] quit [*LSRA] interface 10ge 2/0/0 [*LSRA-10GE2/0/0] port link-type trunk [*LSRA-10GE2/0/0] port trunk allow-pass vlan 10 [*LSRA-10GE2/0/0] quit [*LSRA] interface loopback 1 [*LSRA-LoopBack1] ip address 1.1.1.9 255.255.255.255 [*LSRA-LoopBack1] quit [*LSRA] commit
# Configure IP addresses for interfaces of LSRB and LSRC according to Figure 4-30. The configurations of LSRB and LSRC are similar to the configuration of LSRA, and are not mentioned here.
- Configure OSPF to advertise routes.
# Configure LSRA.
[~LSRA] ospf 1 [*LSRA-ospf-1] area 0.0.0.0 [*LSRA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0 [*LSRA-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255 [*LSRA-ospf-1-area-0.0.0.0] quit [*LSRA-ospf-1] quit [*LSRA] commit
The configurations on the LSRB and LSRC are similar to that on LSRA and are not mentioned here.
After the configurations are complete, run the display ip routing-table command on each LSR. You can see that the LSRs have learned the routes from each other.
- Configure basic MPLS functions and enable MPLS TE and RSVP-TE.
Enable MPLS, MPLS TE, and RSVP-TE globally on each node and interfaces along the tunnel.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.9 [*LSRA] mpls [*LSRA-mpls] mpls te [*LSRA-mpls] mpls rsvp-te [*LSRA-mpls] quit [*LSRA] interface vlanif 100 [*LSRA-Vlanif100] mpls [*LSRA-Vlanif100] mpls te [*LSRA-Vlanif100] mpls rsvp-te [*LSRA-Vlanif100] quit [*LSRA] commit
The configurations of LSRB and LSRC are similar to the configuration of LSRA, and are not mentioned here.
- Configure IS-IS TE.
# Configure LSRA.
[~LSRA] ospf 1 [*LSRA-ospf-1] opaque-capability enable [*LSRA-ospf-1] area 0.0.0.0 [*LSRA-ospf-1-area-0.0.0.0] mpls-te enable [*LSRA-ospf-1-area-0.0.0.0] quit [*LSRA-ospf-1] quit [*LSRA] commit
The configurations of LSRB and LSRC are similar to the configuration of LSRA, and are not mentioned here.
- Configure an MPLS TE tunnel interface and enable MPLS TE CSPF.
On the ingress node of the tunnel, create a tunnel interface, and set the IP address, tunnel protocol, destination IP address, tunnel ID, and dynamic signaling protocol for the tunnel interface.
# Configure LSRA.
[~LSRA] interface tunnel 1 [*LSRA-Tunnel1] ip address unnumbered interface loopback 1 [*LSRA-Tunnel1] tunnel-protocol mpls te [*LSRA-Tunnel1] destination 3.3.3.9 [*LSRA-Tunnel1] mpls te tunnel-id 100 [*LSRA-Tunnel1] mpls te signal-protocol rsvp-te [*LSRA-Tunnel1] commit [~LSRA-Tunnel1] quit [~LSRA] mpls [~LSRA-mpls] mpls te cspf [*LSRA-mpls] quit [*LSRA] commit
- Import traffic to the TE tunnel to forward traffic destined from PC1 to PC2 through the TE tunnel.
Create a static route on the tunnel ingress to import traffic to the TE tunnel.
# Configure LSRA.
[~LSRA] ip route-static 10.2.1.0 255.255.255.0 tunnel1 [*LSRA] commit
- Verify the configuration.
After the configurations are complete, run the display interface tunnel command on LSRA. You can see that the tunnel interface status is Up.
[~LSRA] display interface tunnel 1 Tunnel1 current state : UP (ifindex: 724) Line protocol current state : UP Last line protocol up time : 2014-06-07 01:56:03 Description: ...
Run the display mpls te tunnel-interface command on LSRA. You can view tunnel interface information.
[~LSRA] display mpls te tunnel-interface Tunnel Name : Tunnel1 Signalled Tunnel Name: - Tunnel State Desc : CR-LSP is Up Tunnel Attributes : Active LSP : Primary LSP Traffic Switch : - Session ID : 100 Ingress LSR ID : 1.1.1.9 Egress LSR ID: 3.3.3.9 Admin State : UP Oper State : UP Signaling Protocol : RSVP FTid : 1 Tie-Breaking Policy : None Metric Type : None Bfd Cap : None Reopt : Disabled Reopt Freq : - Inter-area Reopt : Disabled Auto BW : Disabled Threshold : - Current Collected BW: - Auto BW Freq : - Min BW : - Max BW : - Offload : Disabled Offload Freq : - Low Value : - High Value : - Readjust Value : - Offload Explicit Path Name: - Tunnel Group : - Interfaces Protected: - Excluded IP Address : - Referred LSP Count : 0 Primary Tunnel : - Pri Tunn Sum : - Backup Tunnel : - Group Status : - Oam Status : - IPTN InLabel : - Tunnel BFD Status : - BackUp LSP Type : None BestEffort : Disabled Secondary HopLimit : - BestEffort HopLimit : - Secondary Explicit Path Name: - Secondary Affinity Prop/Mask: 0x0/0x0 BestEffort Affinity Prop/Mask: 0x0/0x0 IsConfigLspConstraint: - Hot-Standby Revertive Mode: Revertive Hot-Standby Overlap-path: Disabled Hot-Standby Switch State: CLEAR Bit Error Detection: Disabled Bit Error Detection Switch Threshold: - Bit Error Detection Resume Threshold: - Ip-Prefix Name : - P2p-Template Name : - PCE Delegate : No LSP Control Status : Local control Auto BW Remain Time : - Reopt Remain Time : - Primary LSP ID : 1.1.1.9:1 LSP State : UP LSP Type : Primary Setup Priority : 7 Hold Priority: 7 IncludeAll : 0x0 IncludeAny : 0x0 ExcludeAny : 0x0 Affinity Prop/Mask : 0x0/0x0 Resv Style : SE Configured Bandwidth Information: CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0 CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0 CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0 CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0 Actual Bandwidth Information: CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0 CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0 CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0 CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0 Explicit Path Name : - Hop Limit: - Record Route : Disabled Record Label : Disabled Route Pinning : Disabled FRR Flag : Disabled IdleTime Remain : - BFD Status : - Soft Preemption : Disabled Reroute Flag : Disabled Pce Flag : Normal
Run the display mpls te cspf tedb all command on LSRA. You can view link information in the TEDB.
[~LSRA] display mpls te cspf tedb all Maximum Nodes Supported: 2000 Current Total Node Number: 3 Maximum Links Supported: 8000 Current Total Link Number: 4 Id Router-Id IGP Process-Id Area Link-Count 1 3.3.3.9 OSPF 1 0 1 2 1.1.1.9 OSPF 1 0 1 3 2.2.2.9 OSPF 1 0 2
Configuration Files
LSRA configuration file
# sysname LSRA # vlan batch 10 100 # mpls lsr-id 1.1.1.9 # mpls mpls te mpls rsvp-te mpls te cspf # interface Vlanif10 ip address 10.1.1.1 255.255.255.0 # interface Vlanif100 ip address 172.1.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface 10GE1/0/0 port link-type trunk port trunk allow-pass vlan 100 # interface 10GE2/0/0 port link-type trunk port trunk allow-pass vlan 10 # interface LoopBack1 ip address 1.1.1.9 255.255.255.255 # interface Tunnel1 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 3.3.3.9 mpls te tunnel-id 100 # ospf 1 opaque-capability enable area 0.0.0.0 network 1.1.1.9 0.0.0.0 network 172.1.1.0 0.0.0.255 mpls-te enable # ip route-static 10.2.1.0 255.255.255.0 tunnel1 # return
LSRB configuration file
# sysname LSRB # vlan batch 100 200 # mpls lsr-id 2.2.2.9 # mpls mpls te mpls rsvp-te # interface Vlanif100 ip address 172.1.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface Vlanif200 ip address 172.2.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface 10GE1/0/0 port link-type trunk port trunk allow-pass vlan 100 # interface 10GE2/0/0 port link-type trunk port trunk allow-pass vlan 200 # interface LoopBack1 ip address 2.2.2.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 2.2.2.9 0.0.0.0 network 172.1.1.0 0.0.0.255 network 172.2.1.0 0.0.0.255 mpls-te enable # return
LSRC configuration file
# sysname LSRC # vlan batch 20 200 # mpls lsr-id 3.3.3.9 # mpls mpls te mpls rsvp-te # interface Vlanif20 ip address 10.2.1.1 255.255.255.0 # interface Vlanif200 ip address 172.2.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface 10GE1/0/0 port link-type trunk port trunk allow-pass vlan 200 # interface 10GE2/0/0 port link-type trunk port trunk allow-pass vlan 20 # interface LoopBack1 ip address 3.3.3.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 172.2.1.0 0.0.0.255 mpls-te enable # return