Configuring Apply Clauses - HP FlexFabric 12900E Series Configuration Manual

Hide thumbs Also See for FlexFabric 12900E Series:
Table of Contents

Advertisement

Configuring apply clauses

Except for the apply commands used for setting the next hop for IPv4 and IPv6 routes, all apply
commands are the same for IPv4 and IPv6 routing.
To configure apply clauses:
Step
1.
Enter system view.
2.
Enter routing policy node
view.
3.
Set the AS_PATH attribute for
BGP routes.
4.
Delete
COMMUNITY
BGP routes.
5.
Set
COMMUNITY
BGP routes.
6.
Set a cost for routes.
7.
Set a cost type for routes.
8.
Set the extended community
attribute for BGP routes.
9.
Set the next hop for routes.
10. Set an IP precedence for
matching routes.
11. Redistribute routes to the
specified IS-IS level.
12. Set a local preference for BGP
routes.
13. Set MPLS labels.
14. Set the ORIGIN attribute for
BGP routes.
15. Set a preference.
Command
system-view
route-policy
route-policy-name { deny |
permit } node node-number
apply
as-number&<1-32> [ replace ]
the
specified
apply
attribute
for
{
comm-list-name } delete
apply community { none |
additive
the
specified
{ community-number&<1-32> |
attribute
for
aa:nn&<1-32> | internet |
no-advertise | no-export |
no-export-subconfed
[ additive ] }
apply cost [ + | - ] cost-value
apply cost-type { external |
internal | type-1 | type-2 }
apply extcommunity { rt
route-target
[ additive ]
apply ip-precedence { value |
clear }
apply isis { level-1 | level-1-2
| level-2 }
apply
preference
apply mpls-label
apply origin { egp as-number
| igp | incomplete }
apply preference preference
as-path
comm-list
comm-list-number
}
}&<1-32>
Set the next hop for IPv4
routes:
apply
ip-address
next-hop
ip-address
[ public | vpn-instance
vpn-instance-name ]
Set the next hop for IPv6
routes:
apply
ipv6
next-hop
ipv6-address
local-preference
480
Remarks
N/A
N/A
By default, no AS_PATH attribute is
set for BGP routes.
By
default,
no
|
attribute is deleted for BGP routes.
|
By default, no community attribute is
set for BGP routes.
*
By default, no cost is set for routes.
By default, no cost type is set for
routes.
By default, no extended community
attribute is set for BGP routes.
By default, no next hop is set for
IPv4 or IPv6 routes.
The apply ip-address next-hop
and
apply
ipv6
commands
do
not
redistributed IPv4 and IPv6 routes.
By default, no IP precedence is set.
By
default,
routes
redistributed into the specified IS-IS
level.
By default, no local preference is set
for BGP routes.
By default, no MPLS label is set.
By default, no ORIGIN attribute is
set for BGP routes.
By default, no preference is set.
COMMUNITY
next-hop
apply
to
are
not

Advertisement

Table of Contents
loading

Table of Contents