![Huawei S6700 Series Скачать руководство пользователя страница 618](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517618.webp)
l
If a route does not match any node, it is denied by the Route-Policy.
l
If all the nodes in the routing policy are in
deny
mode, all the routes are denied by the Route-
Policy.
When a Route-Policy is used to filter the routing information, the node with the smaller value
of
node
is tested first.
Step 3
(Optional) Run:
description
text
The description of the routing policy is configured.
----End
10.4.3 (Optional) Configuring the If-Match Clause
The
if-match
clauses define the rules for matching certain route attributes.
Context
Do as follows on the switch to which the Route-Policy is applied:
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
route-policy
route-policy-name
{
permit
|
deny
}
node
node
The Route-Policy view is displayed.
Step 3
Run the following command as required:
l
Run:
if-match acl
{
acl-number
|
acl-name
}
The ACL is configured to match the routes.
l
Run:
if-match cost
cost
The cost is set to match the routes.
l
Run:
if-match interface
interface-type
interface-number
The outbound interface is configured to match the routes.
l
Run:
if-match ip
{
next-hop
|
route-source
|
group-address
} {
acl
{
acl-number
|
acl-
name
} |
ip-prefix
ip-prefix-name
}
The next hop, the source address or the multicast group address is configured to match the
routes.
l
Run:
if-match ip-prefix
ip-prefix-name
The IP prefix list is configured to match the routes.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
10 Routing Policy Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
599