ip prefix-priority
ip prefix-priority <PREFIX-LENGTHS>
no ip prefix-priority [<PREFIX-LENGTHS>>]
Description
Configures custom IPv4 route prefix lengths for the exact prefix match tables of the switch. The switch must be rebooted to apply the change.
Following the reboot, IPv4 prefix priorities will remain in a pending state until at least one route is learned. A connected route counts so this can be as simple as having an L3 interface with an IP address in the up state.
The no form of this command resets the prefix lengths to their default
Parameter |
Description |
---|---|
<PREFIX-LENGTHS>> |
Specifies a space-separated list of exactly five prefix lengths, in descending order. Range: 8 to 31. |
Examples
Configuring custom IPv4 route prefix lengths:
switch(config)# ip prefix-priority 29 28 27 24 16 Save this config and reboot the switch for the changes to take effect ...
Resetting IPv4 route prefix lengths to their default:
switch(config)# no ip prefix-priority Save this config and reboot the switch for the changes to take effect ...
Attempting to configure custom IPv4 route prefix lengths with some lengths not in descending order:
switch(config)# ip prefix-priority 28 29 27 23 16 Prefix lengths must be specified in descending order
Attempting to configure eight prefix lengths:
switch(config)# ip prefix-priority 29 28 27 24 23 16 12 8 Invalid input: 16
Attempting to configure three prefix lengths:
switch(config)# ip prefix-priority 29 28 27 % Command incomplete.
Command History
Release |
Modification |
---|---|
10.10 |
Command introduced. |
Command Information
Platforms |
Command context |
Authority |
---|---|---|
8100 8360 |
config |
Administrators or local user group members with execution rights for this command. |