F3215-HP Load Balancing Module Network Management Command Reference-6PW101
546
Views
Routing policy view
Default command level
2: System level
Parameters
rt route-target: Sets the route target (RT) extended community attribute, which is a string of 3 to 21
characters.
soo site-of-origin: Sets the Site of Origin (SoO) extended community attribute, which is a string of 3 to 21
characters.
A route-target or site-of-origin has one of the following forms:
• 16 -bit AS number—32-bit self-defined number, for example, 101:3.
• 32-bit IP address—16-bit self-defined number, for example, 192.168.122.15:1.
• 32-bit AS number—16-bit self-defined number, for example, 70000:3. The AS number must be no
less than 65536.
&<1-16>: Indicates that the argument before it can be entered up to 16 times.
additive: Adds the specified attribute to the original RT community attribute.
Examples
# Configure node 10 in permit mode of routing policy policy1. If a BGP route matches AS path list 1, add
the RT extended community attribute 100:2 to the route.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply extcommunity rt 100:2 additive
# Configure node 10 in permit mode of routing policy policy2. If a BGP route matches AS path list 2, add
the SoO extended community attribute 100:3 to the route.
<Sysname> system-view
[Sysname] route-policy policy2 permit node 10
[Sysname-route-policy] if-match as-path 2
[Sysname-route-policy] apply extcommunity soo 100:3 additive
apply local-preference
Use apply local-preference to configure the specified local preference for BGP routes.
Use undo apply local-preference to remove the clause configuration.
Syntax
apply local-preference preference
undo apply local-preference
Default
No local preference is configured for BGP routing information.
Views
Routing policy view