apply ip-precedence
Use apply ip-precedence to set an IP precedence for matching routes.
Use undo apply ip-precedence to restore the default.
Syntax
apply ip-precedence { value | clear }
undo apply ip-precedence
Default
No IP precedence is set.
Views
Routing policy node view
Predefined user roles
network-admin
Parameters
value: Specifies an IP precedence in the range of 0 to 7.
clear: Clears the IP precedence of matching routes.
Examples
# Configure node 10 in permit mode for routing policy policy1 to set an IP precedence of 3 for BGP routes matching extended community list 100.
<Sysname> system-view [Sysname] ip extcommunity-list 100 permit rt 100:100 [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match extcommunity 100 [Sysname-route-policy-policy1-10] apply ip-precedence 3