The default-route-advertise command configures an IS-IS device to generate a default route.
The undo default-route-advertise command cancels the default route generated by an IS-IS device.
By default, an IS-IS device does not generate a default route.
Parameter | Description | Value |
---|---|---|
always |
Enables an IS-IS device to advertise the default IPv4 route unconditionally. This parameter is specified by default when the default-route-advertise command is run. In this case, if the avoid-learning parameter is not specified, the device is allowed to calculate the IS-IS default routes advertised by other devices, which may cause routing loops. |
- |
match |
If a default route generated by other routing protocols or other IS-IS processes exists in the routing table, the default route is advertised through an LSP. |
- |
default |
When a device has an active default IPv4 route, which belongs to a process of another routing protocol or belongs to another IS-IS process, this parameter enables the device to advertise the default route through a local LSP. However, if the avoid-learning parameter is not specified, the device is allowed to calculate the IS-IS default routes advertised by other neighbors. As a result, the default route that belongs to the process of another routing protocol or belongs to another IS-IS process on the local device may become inactive. If this problem occurs, the device no longer advertises the default route through a local LSP. |
- |
route-policy route-policy-name |
Specifies the name of a route-policy.
|
The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
route-filter route-filter-name |
Specifies the name of a route-filter.
|
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters. |
cost cost |
Specifies a cost for the default route. |
The value is an integer and its range varies with the cost type.
The default value is 0. The cost type can be configured using the cost-style command. |
tag tag |
Specifies the tag value of the default route to be advertised. The advertised LSPs contain the administrative tag value only when the IS-IS cost type is wide, wide-compatible, or compatible. |
The value is an integer ranging from 1 to 4294967295. The default value is 0. |
level-1 |
Sets the level as Level-1. |
- |
level-2 |
Sets the level as Level-2. If no level is specified, the level of the default route is Level-2. |
- |
level-1-2 |
Sets the level as Level-1-2. |
- |
avoid-learning |
Prevents the specified IS-IS process from adding a learned default IPv4 route to the routing table.
|
- |
Usage Scenario
The default-route-advertise command run in the IS-IS view takes effect only for the base topology.
When IS-IS and other routing protocols are running on a network, use either of the following methods to allow the traffic within the IS-IS domain to be transmitted to other routing domains:Prerequisites
IS-IS processes have been enabled using the isis command.
Configuration Impact
Precautions
If this command is run on a Level-1 router, the router advertises default routes only to a Level-1 area.
<HUAWEI> system-view [~HUAWEI] route-policy policy1 permit node 10 [*HUAWEI-route-policy] quit [*HUAWEI] isis 1 [*HUAWEI-isis-1] default-route-advertise route-policy policy1 cost 15