ripng default-route

Function

The ripng default-route command advertises a default route to the RIPng routing domain.

The undo ripng default-route command disables the advertisement of RIPng default routes and the forwarding of IPv6 default routes.

By default, a RIPng device does not advertise a default route to the RIPng routing domain.

Format

ripng default-route only [ [ cost cost ] | [ tag tag ] ] *

ripng default-route originate [ [ cost cost ] | [ tag tag ] ] *

undo ripng default-route

Parameters

Parameter Description Value
cost cost

Specifies the cost of the default route.

The value is an integer ranging from 0 to 15. By default, the value is 0.

tag tag

Specifies the tag of an external route.

The value is an integer ranging from 0 to 65535. By default, the value is 0.

originate

Advertises the IPv6 default route (::/0) along with other routes.

-

only

Advertises only the IPv6 default route (::/0) and suppresses the advertisement of other routes.

-

Views

100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, Global VE sub-interface view, Tunnel interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ripng write

Usage Guidelines

Usage Scenario

RIPng does not advertise default routes automatically. To enable an interface to advertise default routes in Update packets, run the ripng default-route command.

Example

# Set the cost of the default route to 5.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/0] ripng default-route only cost 5
# Advertise the default route along with other routes in the Update packet through a specified interface.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/0] ripng default-route originate
# Advertise only the default route in the Update packet through a specified interface.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/0] ripng default-route only
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >