The ripng default-route command generates a default route to the RIPng route domain.
The undo ripng default-route command disables advertising RIPng default routes and forwarding IPv6 default routes.
By default, there is no default route in RIPng route domain.
| Parameter | Description | Value |
|---|---|---|
| only | Advertises only the IPv6 default route (::/0) and suppresses the advertisement of other routes. | - |
| originate | Advertises the IPv6 default route (::/0) and does not affect the advertisement of other routes. | - |
| cost cost | Specifies the cost of the default route. | The value is an integer ranging from 0 to 15. By default, it is 0. |
Ethernet interface view, Ethernet sub-interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, Tunnel interface view, Dialer interface view, VLANIF interface view
The generated default RIPng route is forcibly advertised in the Update packet through the specified interface, regardless of whether this route already exists in the IPv6 routing table.
This command can take effect only after IPv6 is enabled for the interface by the ipv6 enable command.
# Advertise only the default route in the Update packet through the interface.
<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ipv6 enable
[sysname-GigabitEthernet0/0/0] ripng default-route only
# Advertise the default route together with other routes in the Update packet through the interface.
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ipv6 enable
[sysname-GigabitEthernet0/0/0] ripng default-route originate