tunnel-number
Use tunnel-number to specify an interface number range for automatically created bypass tunnels.
Use undo tunnel-number to restore the default.
Syntax
tunnel-number min min-number max max-number
undo tunnel-number
Default
No interface number range is specified, and the PLR cannot set up a bypass tunnel automatically.
Views
MPLS TE auto FRR view
Predefined user roles
network-admin
Parameters
min min-number max max-number: Specifies a range of interface numbers for automatically created bypass tunnels. The value ranges for the min-number and max-number arguments vary by device operating mode. For more information about configuring the device operating mode, see Fundamentals Configuration Guide.The min-number must be smaller than or equal to the max-number, and the specified interface number range must include no more than 1000 interface numbers.
Usage guidelines
To enable the PLR to automatically create bypass tunnels, you must perform the following tasks:
Enable auto FRR globally by using the auto-tunnel backup command.
Specify the interface number range for bypass tunnels by using the tunnel-number command.
The PLR uses the interface numbers in the specified range in ascending order for the bypass tunnels.
When you use the tunnel-number command, follow these restrictions and guidelines:
If you execute this command multiple times, the most recent configuration takes effect.
If bypass tunnels are already created automatically, make sure the min-number is not greater than the minimum interface number used by the existing bypass tunnels. The max-number is not smaller than the maximum interface number used by the existing bypass tunnels.
The interface number range specified by this command can include the interface numbers used by the tunnel interfaces created by the interface tunnel command. However, those interface numbers cannot be used for bypass tunnels, unless they are released by the undo interface tunnel command.
Examples
# Specify interface numbers 800 to 900 for automatically created bypass tunnels.
<Sysname> system-view [Sysname] mpls te [Sysname-te] auto-tunnel backup [Sysname-te-auto-bk] tunnel-number min 800 max 900
Related commands
auto-tunnel backup