![Huawei Quidway S5600 Скачать руководство пользователя страница 396](http://html.mh-extra.com/html/huawei/quidway-s5600/quidway-s5600_operation-manual_169841396.webp)
Operation Manual – Routing Protocol
Quidway S5600 Series Ethernet Switches-Release 1510
Chapter 6 IP Routing Policy Configuration
Huawei Technologies Proprietary
6-6
Operation
Command
Description
Set next hop IP
address for routing
information
apply ip next-hop
ip-address
Optional
Set local preference
of BGP routing
information
apply local-preference
local-preference
Optional
Set the cost of
routing information
apply cost
value
Optional
By default, no
action is defined to
set the routing cost
of routing
information.
Set route cost type
for routing
information
apply cost-type
[
internal
|
external
]
Optional
Set route source of
BGP routing
information
apply origin
{
igp
|
egp
as-number
|
incomplete
}
Optional
Set the tag field of
routing information
apply tag value
Optional
By default, no
action is defined to
set the tag field of
OSPF routing
information.
Note:
z
A route-policy comprises multiple nodes. The relationship among the nodes in a
route-policy is “OR”. As a result, the system examines the nodes in sequence, and
once the route passes a node in the route-policy, it will pass the matching test of the
route-policy without entering the test of the next node.
z
During the matching, the relationship among the
if-match
statements for a
route-policy node is “AND”. That is, a matching test against a node is successful
only when all the matching conditions specified by the
if-match
statements in the
node are satisfied.
z
If no
if-match
statements are specified, all the routes will filter through the node.
z
A node can comprise no
if-match
clause or multiple
if-match
statements.
z
Each node comprises a set of
if-match
and
apply
statements.
if-match
statements
define matching rules.
apply
statements specify the actions performed after a
matching test against the node is successful, and the actions can be the attribute
settings of routing information.