The circuit default-tag command sets an administrative tag value for an interface on which IS-IS process is enabled.
The undo circuit default-tag command restores the default administrative tag value of an interface on which IS-IS process is enabled.
By default, the administrative tag value of all interfaces is 0.
circuit default-tag tag [ level-1 | level-2 ]
undo circuit default-tag [ tag ] [ level-1 | level-2 ]
| Parameter | Description | Value |
|---|---|---|
| tag | Specifies the administrative tag value for an interface. |
It is an integer and ranges from 1 to 4294967295. |
| level-1 | Specifies the administrative tag value for all the Level-1 interfaces of a specified IS-IS process. |
- |
| level-2 | Specifies the administrative tag value for all the Level-2 interfaces of a specified IS-IS process. If neither Level 1 nor Level-2 is specified, an administrative tag value is configured for both Level-1 and Level-2 interfaces. |
- |
Usage Scenario
The administrative tag carries the administrative information about an IP address prefix. It is used to control the routes of different levels and routes imported from multiple areas. Administrative tags can advertise IP address prefixes in the IS-IS domain to control routes, simplifying management.
After the circuit default-tag command is run, all routes of a specified IS-IS process carry an administrative tag value. The administrative tag value can be used by a routing policy to filter routes as needed.
Prerequisites
An IS-IS process has been enabled using the isis command.
Precautions
When the cost type of IS-IS is wide, wide-compatible, or compatible, the administrative tag value is advertised in the LSP. The cost type can be configured using the cost-style command.
The administrative tag value configured using the circuit default-tag command is the global administrative tag value. The interface administrative tag configured using the isis tag-value command takes precedence over the global administrative tag.
# Set the value of the administrative tag of the Level-1 interface to 30.
<sysname> system-view
[sysname] isis 1
[sysname-isis-1] circuit default-tag 30 level-1
<sysname> system-view
[sysname] isis 1
[sysname-isis-1] topology red topology-id 10
[sysname-isis-1-topology-red] circuit default-tag 30 level-1