< Home

ipv6 default-route-advertise

Function

The ipv6 default-route-advertise command configures routers to generate the default IPv6 route.

The undo ipv6 default-route-advertise command cancels this configuration.

By default, this configuration is disabled.

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

Advertises default routes all the time. The parameter always is a default value.

-

match default

If a default IPv6 route generated by other routing protocols or other IS-IS processes exists in the routing table, the default IPv6 route is advertised through an LSP.

-

route-policy route-policy-name

Specifies the name of the specified routing policy. IS-IS does not advertise default routes, if no route matches the routing policy.

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 of the default route.

The cost is an integer ranging from 0 to 4261412864.

tag tag

Indicates the tag of the advertised default routes.

It is an integer ranging from 1 to 4294967295.

level-1

Sets the level as Level-1.

-

level-2

Sets the level as Level-2.

-

level-1-2

Sets the level as Level-1-2.

NOTE:

If you do not specify a level, Level-2 routes are generated by default.

-

avoid-learning

Indicates that the default routes to be advertised cannot be learnt by the IS-IS process and cannot be added to the routing table. If the default IPv6 routes are in active state in the routing table, after this parameter is specified, the default IPv6 routes become inactive.

-

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

This command is valid only for an IPv6 base topology.

This command can be set on the Level-1 router or Level-2 router.

By using the routing policy, you can configure IS-ISv6 to generate default routes only when there is matched entry in the routing table.
  • If the apply isis level-1 command is used in the routing policy view, IS-ISv6 can generate default routes in L1 LSP.

  • If the apply isis level-2 command is used in the routing policy view, IS-ISv6 can generate default routes in L2 LSP.

  • If the apply isis level-1-2 command is used in the routing policy view, IS-ISv6 can generate default routes in L1 LSP and L2 LSP.

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

Precautions

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

# Set the current router to generate the default IPv6 routes in Level-1-2 LSP.

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