The ripng default-route command generates a default route to the RIPng routing 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 the RIPng routing domain.
Parameter | Description | Value |
---|---|---|
only | Advertises only IPv6 default routes (::/0) and suppresses the advertisement of other routes. | - |
originate | Advertises IPv6 default routes (::/0) without affecting the advertisement of other routes. | - |
cost cost | Specifies the cost of default routes. | The value is an integer that ranges from 0 to 15. The default value is 0. |
The generated default RIPng route is forcibly advertised in an 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 default routes in Update packets through an interface.
<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ipv6 enable
[HUAWEI-Vlanif100] ripng default-route only
# Advertise only default routes in Update packets through an interface.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ipv6 enable [HUAWEI-GigabitEthernet0/0/1] ripng default-route only
# Advertise default routes together with other routes in Update packets through an interface.
<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ipv6 enable
[HUAWEI-Vlanif100] ripng default-route originate
## Advertise default routes together with other routes in Update packets through an interface.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ipv6 enable [HUAWEI-GigabitEthernet0/0/1] ripng default-route originate