Specifying the preference of advertised IP addresses
About specifying the preference of advertised IP addresses
Every IP address advertised in RAs has a preference value. A larger preference value represents a higher preference. The IP address with the highest preference is selected as the default gateway address.
You can specify the preference for IP addresses to be advertised on a router interface.
An address with the minimum preference value (-2147483648) will not be used as a default gateway address.
Procedure
Enter system view.
system-view
Enter interface view.
interface interface-type interface-number
Specify the preference of advertised primary and secondary IP addresses on the interface.
ip irdp preference preference-value
The default preference is 0.
The preference applies to all advertised primary and secondary IP addresses on the interface.