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 |
Indicates that default routes are advertised unconditionally.This parameter is the command default. |
- |
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 |
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. |
- |
route-policy route-policy-name |
Specifies the name of a route-policy. If external routes match the route-policy, the default route is advertised through an LSP. The route-policy specified in the command does not affect the import of external routes by IS-IS. |
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 route filter policy. The policy is used to filter the imported routes so that only some of the routes of other routing domains can be imported. |
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 device from adding the learned default route to the routing table. If there are active default routes in the routing table, they are set to the inactive state. |
- |
Usage Scenario
The default-route-advertise command run in the IS-IS topology view takes effect only for the IS-IS 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
After this command is run on an IS-IS device, all traffic in an IS-IS domain will be forwarded by this IS-IS device to a destination outside the domain, which may overburden the device. Therefore, run the command on a device with high performance.
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] quit [*HUAWEI] ip topology red [*HUAWEI] isis 1 [*HUAWEI-isis-1] cost-style wide [*HUAWEI-isis-1] topology red topology-id 10 [*HUAWEI-isis-1-topology-red] default-route-advertise route-policy policy1 cost 15