H3C Technologies H3C S12500 Series Switches User Manual
Page 425

409
•
BGP does not support criteria for matching against outbound interfaces of routing information.
To define if-match clauses for a routing policy:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter routing policy view.
route-policy route-policy-name { deny
| permit } node node-number
N/A
3.
Define match criteria for IPv4 routes.
•
Match IPv4 routing information
specified in the ACL:
if-match acl acl-number
•
Match IPv4 routing information
specified in the IP prefix list:
if-match ip-prefix ip-prefix-name
•
Match IPv4 routing information
whose next hop or source is
specified in the ACL or IP prefix
list:
if-match ip { next-hop |
route-source } { acl acl-number |
ip-prefix ip-prefix-name }
Optional.
Not configured by
default.
4.
Match IPv6 routing information whose
next hop or source is specified in the ACL
or IP prefix list.
if-match ipv6 { address | next-hop |
route-source } { acl acl-number |
prefix-list ipv6-prefix-name }
Optional.
Not configured by
default.
5.
Match BGP routing information whose AS
path attribute is specified in the AS path
lists.
if-match as-path
AS-PATH-number&<1-16>
Optional.
Not configured by
default.
6.
Match BGP routing information whose
COMMUNITY attribute is specified in the
community lists.
if-match community
{ { basic-community-list-number |
comm-list-name } [ whole-match ] |
adv-community-list-number }&<1-16>
Optional.
Not configured by
default.
7.
Match routes having the specified cost.
if-match cost value
Optional.
Not configured by
default.
8.
Match BGP routing information whose
extended community attribute is specified
in the extended community lists.
if-match extcommunity
ext-comm-list-number&<1-16>
Optional.
Not configured by
default.
9.
Match routing information having
specified outbound interfaces.
if-match interface { interface-type
interface-number }&<1-16>
Optional.
Not configured by
default.
10.
Match routing information having MPLS
labels.
if-match mpls-label
Optional.
Not configured by
default.