ripng default-route
Use ripng default-route to configure a RIPng interface to advertise a default route with a specified metric.
Use undo ripng default-route to disable a RIPng interface from sending a default route.
Syntax
ripng default-route { only | originate } [ cost cost-value | route-policy route-policy-name ] *
undo ripng default-route
Default
A RIPng process does not advertise a default route.
Views
Interface view
Predefined user roles
network-admin
Parameters
only: Advertises only an IPv6 default route (::/0).
originate: Advertises an IPv6 default route (::/0) and other routes.
cost-value: Specifies a cost for the default route, in the range of 1 to 15. The default is 1.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. The command advertises a default route only when a route in the routing table matches the routing policy.
Usage guidelines
This command enables the interface to advertise a RIPng default route in a route update regardless of whether the default route exists in the local IPv6 routing table.
A RIPng interface configured to advertise a default route does not receive any default routes from its neighbors.
Examples
# Configure RIPng on VLAN-interface 100 to advertise only a default route.
<Sysname> system-view [Sysname] interface vlan-interface 100 [Sysname-Vlan-interface100] ripng default-route only
# Configure RIPng on VLAN-interface 101 to advertise a default route and other routes.
<Sysname> system-view [Sysname] interface vlan-interface 101 [Sysname-Vlan-interface101] ripng default-route originate