Defining apply clauses – H3C Technologies H3C S10500 Series Switches User Manual

Page 372

Advertising
background image

357

To do…

Use the command…

Remarks

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.

Match routes having the specified cost if-match

cost value

Optional
Not configured by

default.

Match BGP routing information whose
extended community attribute is specified in

the extended community list(s)

if-match extcommunity
ext-comm-list-number&<1-16>

Optional
Not configured by
default.

Match routing information having specified
outbound interface(s)

if-match interface { interface-type
interface-number
}&<1-16>

Optional
Not configured by
default.

Match routing information having MPLS labels if-match mpls-label

Optional
Not configured by

default.

Match routing information having the specified
route type

if-match route-type { external-type1 |
external-type1or2 | external-type2 |
internal | is-is-level-1 | is-is-level-2 |

nssa-external-type1 |

nssa-external-type1or2 |

nssa-external-type2 } *

Optional
Not configured by

default.

Match RIP, OSPF, and IS-IS routing information
having the specified tag value

if-match tag value

Optional
Not configured by
default.

NOTE:

The if-match clauses of a routing policy node are in logic AND relationship. Routing information must
satisfy all of its if-match clauses before being executed with its apply clauses. If an if-match command

exceeds the maximum length, multiple identical if-match clauses are generated. These clauses are in

logical OR relationship. Routing information only needs to match one of them.

You can specify any number of if-match clauses for a routing policy node. If no if-match clause is
specified, and the routing policy node is in permit mode, all routing information can pass the node. If it
is in deny mode, no routing information can pass it.

If the ACL referenced by an if-match clause does not exist, the clause is always satisfied; if no rules of the
referenced ACL are matched or the matching rule is inactive, the clause is not satisfied.

An ACL specified in an if-match clause must be a non-VPN ACL.

The if-match commands for matching IPv4 destination, next hop, and source address are different from
those for matching IPv6 ones.

BGP does not support criteria for matching against outbound interfaces of routing information.

Defining apply clauses

Follow these steps to define apply clauses for a routing policy:

Advertising