ip irdp preference

Use ip irdp preference to specify the preference of advertised primary and secondary IP addresses on an interface.

Use undo ip irdp preference to restore the default.

Syntax

ip irdp preference preference-value

undo ip irdp preference

Default

The preference of advertised IP addresses is 0.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

preference-value: Specifies the preference in the range of –2147483648 to 2147483647.

Usage guidelines

A larger preference value represents a higher preference. To request that neighboring hosts do not use any advertised IP address as the default gateway, set the value to the minimum value.

Examples

# Specify preference 1 for IP addresses advertised on VLAN-interface 100.

<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ip irdp preference 1

Related commands

ip irdp