R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

491
apply mpls-label
Use apply mpls-label to set MPLS labels for routing information.
Use undo apply mpls-label to remove the clause configuration.
Syntax
apply mpls-label
undo apply mpls-label
Default
No MPLS label is set for routing information.
Views
Routing policy view
Default command level
2: System level
Usage guidelines
If this command fails to assign an MPLS label to a route, the route cannot be advertised.
Examples
# Configure node 10 in permit mode of routing policy policy1. Set MPLS labels for routes matching AS
path list 1.
<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
Use apply origin to set the specified origin attribute for BGP routes.
Use undo apply origin to remove the clause configuration.
Syntax
apply origin { egp as-number | igp | incomplete }
undo apply origin
Default
No origin attribute is set for BGP routing information.
Views
Routing policy view
Default command level
2: System level
Parameters
egp: Sets the origin attribute of BGP routing information to EGP.