z

z

Match conditions

Route attributes to be changed

Defining a Route Policy

Follow these steps to define a route policy:

 

To do...

Use the command...

Remarks

 

 

Enter system view

system-view

 

 

 

 

 

 

 

Define a route policy and enter

route-policy route-policy-name{ permit

Required

 

 

the route policy view

deny } node node-number

Not defined by default

 

 

 

 

 

 

 

 

 

 

 

z

z

z

The permit argument specifies the matching mode for a defined node in the route policy to be in permit mode. If a route matches the rules for the node, the apply clauses for the node will be executed and the test of the next node will not be taken. If not, however, the route takes the test of the next node.

The deny argument specifies the matching mode for a defined node in the route policy to be in deny mode. In this mode, no apply clause is executed. If a route satisfies all the if-matchclauses of the node, no apply clause for the node will be executed and the test of the next node will not be taken. If not, however, the route takes the test of the next node.

If multiple nodes are defined in a route policy, at least one of them should be in permit mode. When a route policy is applied to filtering routing information, if a piece of routing information does not match any node, the routing information will be denied by the route policy. If all the nodes in the route policy are in deny mode, all routing information will be denied by the route policy.

Defining if-match Clauses and apply Clauses

Follow these steps to define if-match clauses and apply clauses:

 

To do...

 

Use the command...

 

Remarks

 

Enter system view

 

system-view

 

 

 

 

 

 

 

Enter the route-policy

 

route-policy

 

 

 

 

route-policy-name { permit

 

Required

 

view

 

 

 

 

deny } node node-number

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Define a rule to match the

 

 

 

Optional

 

IP address of routing

 

if-match acl acl-number

 

By default, no matching is performed on

 

information

 

 

 

the address of routing information.

 

 

 

 

 

 

 

Define a rule to match the

 

 

 

Optional

 

 

if-match cost value

 

By default, no matching is performed

 

cost of routes

 

 

 

against the cost of routes.

 

 

 

 

 

 

 

 

 

 

 

 

Define a rule to match the

 

if-match interface

 

Optional

 

 

 

By default, no matching is performed on

 

next-hop interface of

 

interface-type

 

 

 

 

the next-hop interface of routing

 

routing information

 

interface-number

 

 

 

 

information.

 

 

 

 

 

 

 

 

 

 

 

 

4-3

 

 

Page 703
Image 703
3Com WX3000 operation manual Defining a Route Policy, Defining if-match Clauses and apply Clauses