The router-preference maximum command configures a rule to match RA messages against the highest route preference in RA messages.
The undo router-preference maximum command deletes the rule used to match RA messages against the highest route preference in RA messages.
By default, no rule is configured to match RA messages against the highest route preference in RA messages.
Parameter | Description | Value |
---|---|---|
high |
Sets the highest route preference in RA messages to high preference. |
- |
medium |
Sets the highest route preference in RA messages to medium preference. |
- |
low |
Sets the highest route preference in RA messages to low preference. |
- |
RA messages carry the route preference field. Route preferences are classified into high preference (with the value 1), medium preference (with the value 0), and low preference (with the value 3). After receiving an RA message, a host updates its default route list and selects a route in descending order of the route preference.
After a rule is configured in an IPv6 RA guard policy to match RA messages against the highest route preference in RA messages, the interface to which the policy is applied checks the route preference of the received RA messages and forwards the RA messages only when the route preference of the messages is lower than or equal to that configured in the rule. Otherwise, the interface discards the messages.