ip irdp preference

Syntax

ip irdp preference <LEVEL>

Description

Specifies the IRDP preference level. If a host receives multiple router advertisement messages from different routers, the host selects the router that sent the message with the highest preference as the default gateway.

Command context

config-if

Parameters

<LEVEL>

Specifies the IRDP preference level. Range: -2147483648 to 2147483647. Default: 0.

Authority

Administrators or local user group members with execution rights for this command.

Example

Setting the IRDP preference level for interface 1/1/1 to 25.

switch(config)# interface 1/1/1
switch(config-if)# ip irdp preference 25