< Home

ipv6 default-route-advertise

Function

The ipv6 default-route-advertise command configures the switch to advertise default IPv6 routes.

The undo ipv6 default-route-advertise disables the switch from advertising default IPv6 routes.

By default, the switch does not advertise default IPv6 routes.

Format

ipv6 default-route-advertise [ always | match default | route-policy route-policy-name ] [ cost cost | tag tag | [ level-1 | level-2 | level-1-2 ] ] * [ avoid-learning ]

undo ipv6 default-route-advertise

Parameters

Parameter Description Value
always Indicates that the switch always advertises default IPv6 routes. -
match default Indicates that if the routing table contains a default IPv6 route generated by other routing protocols but not IS-IS, the default route is advertised through an LSP. -
route-policy route-policy-name Specifies the name of a route-policy. A Level-1-2 device advertises default routes to the IS-IS routing domain only when there are external routes matching the route-policy in the routing table of the device. This prevents routing blackhole when link faults make some important external routes unavailable but default routes are still advertised. This route-policy does not affect external route import in IS-IS. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
cost cost Specifies the cost value of an advertised default route. The value is an integer that ranges from 0 to 4261412864.
tag tag Specifies the tag value of an advertised default route. The value is an integer that ranges from 1 to 4294967295.
level-1 Sets the level of advertised default IPv6 routes to Level-1. If the level is not specified, Level-2 default routes are generated by default. -
level-2 Sets the level of advertised default IPv6 routes to Level-2. If the level is not specified, Level-2 default routes are generated by default. -
level-1-2 Sets the level of advertised default IPv6 routes to Level-1-2. If the level is not specified, Level-2 default routes are generated by default. -
avoid-learning Prevents an IS-IS process from learning default routes and adding them to the routing table. If there has been an active default IPv6 route in the routing table, the default IPv6 route becomes inactive after this parameter is specified. -

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario
Generally, if other routing protocols are configured on an IS-IS network, to forward traffic in the IS-IS routing domain outside the domain, use the following two methods:
  • Configure IS-IS on a Level-1-2 device to advertise default routes into the IS-IS routing domain.
  • Configure IS-IS on a Level-1-2 device to import routes of other routing domains into the IS-IS routing domain.
Advertising default routes is easy to configure and does not require an IS-IS process to learn external routes. You can run the ipv6 default-route-advertise command to configure IS-IS devices to advertise default routes into the IS-IS routing domain.
Precautions

Using the route-policy, you can force IS-IS to generate default routes only when there are matched routes in the routing table.

  • If the apply isis level-1 command is used in the route-policy view, IS-ISv6 can generate default routes in Level-1 LSPs. If the apply isis level-1 command is used in the route-policy view, IS-IS can generate default routes in Level-1 LSPs.

  • If the apply isis level-2 command is used in the route-policy view, IS-ISv6 can generate default routes in Level-2 LSPs.

  • If the apply isis level-1-2 command is used in the route-policy view, IS-ISv6 can generate default routes in Level-1 and Level-2 LSPs.

The ipv6 default-route-advertise command can take effect only after IPv6 is enabled for the IS-IS process by the ipv6 enable command.

Creating a route-policy before it is referenced is recommended. By default, nonexistent route-policies cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent route-policy is referenced using the current command, an ABR advertises the default IPv6 route to the IS-IS domain as long as the local routing table contains external routes.

Example

# Configure the current switch to generate default IPv6 routes in Level-1-2 LSPs.

<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] isis 1
[HUAWEI-isis-1] ipv6 enable
[HUAWEI-isis-1] ipv6 default-route-advertise level-1-2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >