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.
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. |
- |
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
<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
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] ipv6 enable [*HUAWEI-GigabitEthernet0/1/0] ripng default-route originate
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] ipv6 enable [*HUAWEI-GigabitEthernet0/1/0] ripng default-route only