Apply Preference - H3C S7500E Series Command Manual

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
egp: Sets the origin of BGP routing information to EGP.
as-number: Autonomous system number for EGP routes, in the range of 1 to 65535.
incomplete: Sets the origin of BGP routing information to unknown.
Description
Use the apply origin command to apply the specified origin attribute to BGP routes.
Use the undo apply origin command to remove the clause configuration.
No origin attribute is set for routing information by default.
Related commands: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, apply ip-address next-hop,
apply local-preference, apply cost, apply tag.
Examples
# Create routing policy policy1 with node 10, matching mode as permit. If a route
matches AS-path-ACL 1, set the origin for the route to IGP.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply origin igp

6.1.10 apply preference

Syntax
apply preference preference
undo apply preference
View
Routing policy view
Parameters
preference: Routing preference, in the range of 1 to 255.
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.
Chapter 6 Routing Policy Configuration Commands
6-8

Advertisement

Table of Contents
loading

Table of Contents