1194 CHAPTER 78: ROUTING POLICY COMMON CONFIGURATION COMMANDS

Description Use the apply preference command to set a preference for a routing protocol.

Use the undo apply preference command to remove the clause configuration.

No preference is set for a routing protocol by default.

If you set preferences for routing protocols with the preference command, using the apply preference command will set a new preference for a matched routing protocol. Other routing protocols not satisfying criteria still use the preferences set by the preference command.

Examples # Create routing policy policy1 with node 10, matching mode as permit. If a route matches OSPF external route type, set the preference for the routing protocol to 90.

<Sysname> system-view

[Sysname] route-policy policy1 permit node 10

[Sysname-route-policy] if-match route-type external-type1or2

[Sysname-route-policy] apply preference 90

apply preferred-value

Syntax apply preferred-value preferred-value

undo apply preferred-value

View Routing policy view

Parameters preferred-value: Preferred value, in the range of 0 to 65535.

Description Use the apply preferred-valuecommand to apply a preferred value to BGP routes.

Use the undo apply preferred-valuecommand to remove the clause configuration.

No preferred value is set for BGP routes by default.

Examples # Create routing policy policy1 with node 10, matching mode as permit. If a BGP route matches AS-path-ACL 1, set the preferred value 66 for the BGP route.

<Sysname> system-view

[Sysname] route-policy policy1 permit node 10

[Sysname-route-policy] if-match as-path 1

[Sysname-route-policy] apply preferred-value 66

apply tag

Syntax apply tag value

undo apply tag

Page 1194
Image 1194
3Com MSR 30, MSR 50 manual Apply preferred-value, Apply tag, Syntax apply tag value Undo apply tag