This section provides an example for configuring the IP-prefix tunnel function to automatically establish MPLS TE tunnels in a batch.
In Figure 1, a customer expects to establish MPLS TE tunnels to form a full-mesh network and configure Auto FRR for each tunnel. Establishing tunnels one by one is laborious and complex. In this case, the IP-prefix tunnel function can be configured to automatically establish MPLS tunnels in a batch.
Device Name |
Interface Name |
IP Address and Mask |
---|---|---|
LSRA |
Loopback0 |
1.1.1.9/32 |
GE 0/1/0 |
10.1.1.1/24 |
|
GE 0/1/1 |
10.1.2.1/24 |
|
LSRB |
Loopback0 |
2.2.2.9/32 |
GE 0/1/0 |
10.1.1.2/24 |
|
GE 0/1/1 |
10.1.3.1/24 |
|
LSRC |
Loopback0 |
3.3.3.9/32 |
GE 0/1/1 |
10.1.2.2/24 |
|
GE 0/1/2 |
10.1.3.2/24 |
The configuration roadmap is as follows:
Configure IS-IS and IS-IS TE.
Enable MPLS TE and BFD globally on each device.
Configure an IP prefix list.
Configure a P2P TE tunnel template.
Configure the automatic primary tunnel function.
To complete the configuration, you need the following data:
IP address of each interface on each node: values shown in Figure 1
LSR ID of each node: loopback addresses shown in Figure 1
IS-IS process number (1), IS-IS level (level-2), and network entity name of each node:
IP prefix name on each node: te-tunnel
P2P TE tunnel template name on each node: te-tunnel
# Configure LSRA.
[~LSRA] ip ip-prefix te-tunnel permit 2.2.2.9 32 [*LSRA] ip ip-prefix te-tunnel permit 3.3.3.9 32 [*LSRA] commit
The configurations on LSRB and LSRC are similar to the configuration on LSRA. For configuration details, see Configuration Files in this section.
# Configure LSRA.
[~LSRA] mpls te p2p-template te-tunnel [*LSRA-te-p2p-template-te-tunnel] bandwidth ct0 1000 [*LSRA-te-p2p-template-te-tunnel] fast-reroute [*LSRA-te-p2p-template-te-tunnel] commit [~LSRA-te-p2p-template-te-tunnel] quit
The configurations on LSRB and LSRC are similar to the configuration on LSRA. For configuration details, see Configuration Files in this section.
# Configure LSRA.
[~LSRA] mpls te auto-primary-tunnel ip-prefix te-tunnel p2p-template te-tunnel [*LSRA] commit
The configurations on LSRB and LSRC are similar to the configuration on LSRA. For configuration details, see Configuration Files in this section.
[~LSRA] display mpls te tunnel
* means the LSP is detour LSP
-------------------------------------------------------------------------------
Ingress LsrId Destination LSPID In/OutLabel R Tunnel-name
-------------------------------------------------------------------------------
1.1.1.9 2.2.2.9 16 -/3 I AutoTunnel32769
2.2.2.9 1.1.1.9 10 3/- E AutoTunnel32769
1.1.1.9 3.3.3.9 17 -/3 I AutoTunnel32770
3.3.3.9 1.1.1.9 9 3/- E AutoTunnel32770
1.1.1.9 2.2.2.9 13 -/48060 I AutoBypassTunnel_1.1.1.9_2.2.2.9_32771
2.2.2.9 3.3.3.9 8 48061/3 T AutoBypassTunnel_2.2.2.9_3.3.3.9_32771
3.3.3.9 2.2.2.9 7 48060/3 T AutoBypassTunnel_3.3.3.9_2.2.2.9_32771
1.1.1.9 3.3.3.9 15 -/48060 I AutoBypassTunnel_1.1.1.9_3.3.3.9_32772
2.2.2.9 1.1.1.9 9 3/- E AutoBypassTunnel_2.2.2.9_1.1.1.9_32772
3.3.3.9 1.1.1.9 8 3/- E AutoBypassTunnel_3.3.3.9_1.1.1.9_32772
-------------------------------------------------------------------------------
R: Role, I: Ingress, T: Transit, E: Egress
Obtain a tunnel name, for example, AutoTunnel32769, displayed in the Tunnel-name column. Run the display mpls te tunnel-interface auto-primary-tunnel AutoTunnel32769 command to view detailed information about the specified tunnel.
LSRA configuration file
# sysname LSRA # mpls lsr-id 1.1.1.9 # mpls mpls te mpls te auto-frr mpls rsvp-te mpls te cspf # mpls te p2p-template te-tunnel record-route label bandwidth ct0 1000 fast-reroute # mpls te auto-primary-tunnel ip-prefix te-tunnel p2p-template te-tunnel # isis 1 is-level level-2 cost-style wide network-entity 10.0000.0000.0001.00 traffic-eng level-2 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.1 255.255.255.0 isis enable 1 mpls mpls te mpls te bandwidth max-reservable-bandwidth 10000 mpls te bandwidth bc0 10000 mpls rsvp-te # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.2.1 255.255.255.0 isis enable 1 mpls mpls te mpls te bandwidth max-reservable-bandwidth 10000 mpls te bandwidth bc0 10000 mpls rsvp-te # interface LoopBack0 ip address 1.1.1.9 255.255.255.255 isis enable 1 # ip ip-prefix te-tunnel index 10 permit 2.2.2.9 32 ip ip-prefix te-tunnel index 20 permit 3.3.3.9 32 # return
LSRB configuration file
# sysname LSRB # mpls lsr-id 2.2.2.9 # mpls mpls te mpls te auto-frr mpls rsvp-te mpls te cspf # mpls te p2p-template te-tunnel record-route label bandwidth ct0 1000 fast-reroute # mpls te auto-primary-tunnel ip-prefix te-tunnel p2p-template te-tunnel # isis 1 is-level level-2 cost-style wide network-entity 10.0000.0000.0002.00 traffic-eng level-2 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.2 255.255.255.0 isis enable 1 mpls mpls te mpls te bandwidth max-reservable-bandwidth 10000 mpls te bandwidth bc0 10000 mpls rsvp-te # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.3.1 255.255.255.0 isis enable 1 mpls mpls te mpls te bandwidth max-reservable-bandwidth 10000 mpls te bandwidth bc0 10000 mpls rsvp-te # interface LoopBack0 ip address 2.2.2.9 255.255.255.255 isis enable 1 # ip ip-prefix te-tunnel index 10 permit 1.1.1.9 32 ip ip-prefix te-tunnel index 20 permit 3.3.3.9 32 # return
LSRC configuration file
# sysname LSRC # mpls lsr-id 3.3.3.9 # mpls mpls te mpls te auto-frr mpls rsvp-te mpls te cspf # mpls te p2p-template te-tunnel record-route label bandwidth ct0 1000 fast-reroute # mpls te auto-primary-tunnel ip-prefix te-tunnel p2p-template te-tunnel # isis 1 is-level level-2 cost-style wide network-entity 10.0000.0000.0003.00 traffic-eng level-2 # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.2.2 255.255.255.0 isis enable 1 mpls mpls te mpls te bandwidth max-reservable-bandwidth 10000 mpls te bandwidth bc0 10000 mpls rsvp-te # interface GigabitEthernet0/1/2 undo shutdown ip address 10.1.3.2 255.255.255.0 isis enable 1 mpls mpls te mpls te bandwidth max-reservable-bandwidth 10000 mpls te bandwidth bc0 10000 mpls rsvp-te # interface LoopBack0 ip address 3.3.3.9 255.255.255.255 isis enable 1 # ip ip-prefix te-tunnel index 10 permit 1.1.1.9 32 ip ip-prefix te-tunnel index 20 permit 2.2.2.9 32 # return