1193

<Sysname> system-view

[Sysname] route-policy policy1 permit node 10

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

[Sysname-route-policy] apply mpls-label

apply origin

Syntax apply origin { igp egp as-numberincomplete }

undo apply origin

View Routing policy view

Parameters igp: Sets the origin of BGP routing information to IGP. 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-matchip-prefix,if-match ip next-hop,if-match cost, if-match tag, route-policy,apply ip-addressnext-hop,apply local-preference,apply cost and 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

apply preference

Syntax apply preference preference

undo apply preference

View Routing policy view

Parameters preference: Routing preference, in the range of 1 to 255.

Page 1193
Image 1193
3Com MSR 50, MSR 30 manual Apply origin, Apply preference, Syntax apply preference preference Undo apply preference, 1193