H3C S6550X-HI Series Command Reference Manual page 2061

Table of Contents

Advertisement

Syntax
apply local-preference preference
undo apply local-preference
Default
No local preference is set for BGP routes.
Views
Routing policy node view
Predefined user roles
network-admin
Parameters
preference
Examples
# Configure node 10 in permit mode for routing policy policy1 to set a local preference of 130 for
BGP routes matching AS path list 1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy-policy1-10] if-match as-path 1
[Sysname-route-policy-policy1-10] apply local-preference 130
apply origin
Use
apply origin
Use
undo apply origin
Syntax
apply origin { egp as-number | igp | incomplete }
undo apply origin
Default
No ORIGIN attribute is set for BGP routes.
Views
Routing policy node view
Predefined user roles
network-admin
Parameters
egp as-number
number in the range 1 to 4294967295 for EGP routes.
: Sets the ORIGIN attribute to IGP.
igp
incomplete
Examples
# Configure node 10 in permit mode for routing policy policy1 to set the ORIGIN attribute to IGP for
BGP routes matching AS path list 1.
<Sysname> system-view
: Specifies a local preference in the range of 0 to 4294967295.
to set the ORIGIN attribute for BGP routes.
to restore the default.
: Sets the ORIGIN attribute to EGP. The
: Sets the ORIGIN attribute to UNKNOWN.
as-number
9
argument specifies an AS

Advertisement

Table of Contents
loading

Table of Contents