router-preference

Configures the router preference field value advertised in RAs. The options are high, medium, and low. This value is used to prioritize and select the default router when multiple routers are discovered.

Supported on the following devices:

Syntax

router-preference [high|medium|low]

Parameters

router-preference [high|medium|low]
router-preference [high|medium|low] Sets this router‘s preference over other routers, in the link, to be the default router. The options are high, low, and medium. The default value is medium.
The following points should be taken into consideration when configuring router preference:
  • For a router to be selected as a default router, the router‘s lifetime should not be equal to “0”.
  • To enable default router selection, using router information contained in RAs, configure default router selection on that interface.

Examples

nx9500-6C8809(config-ipv6-radv-policy-test)#router-preference high
nx9500-6C8809-6C8809(config-ipv6-radv-policy-test)#show context
ipv6-router-advertisement-policy test
 ra suppress
 ra interval 200
 managed-config-flag
 nd-reachable-time global
 router-lifetime 2000
 advertise mtu
 advertise hop-limit
 router-preference high
 check-ra-consistency
 dns-server 2002::2 lifetime 3000
 domain-name TechPubs lifetime infinite
nx9500-6C8809(config-ipv6-radv-policy-test)#

Related Commands

no (ipv6-ra-policy-config-commands) Removes the router preference field value advertised in RAs