12-5
View
Route policy view
Default Level
2: System level
Parameters
rt route-target
: Sets the route target extended community attribute, which is a string of 3 to 21
characters. A
route-target
has one of the following three forms:
z
16-bit AS number: 32-bit self-defined number, for example, 101:3;
z
32-bit IP address: 16-bit self-defined number, for example, 192.168.122.15:1.
z
32-bit AS number: 16-bit self-defined number, for example, 70000:3. The AS number
should be no less than 65536.
&<1-16>
: Indicates the argument before it can be entered up to 16 times.
additive
: Adds the specified attribute to the original RT community attribute.
Description
Use the
apply extcommunity
command to apply the specified RT extended community
attribute to BGP routes.
Use the
undo apply extcommunity
command to remove the clause configuration.
No RT extended community attribute is set for BGP routing information by default.
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
apply isis
Syntax
apply isis
{
level-1
|
level-1-2
|
level-2
}
undo apply isis
View
Route policy view
Default Level
2: System level
Parameters
level-1
: Redistributes routes into IS-IS level-1.
level-2
: Redistributes routes into IS-IS level-2.
level-1-2
: Redistributes routes into both IS-IS level-1 and level-2.