468CHAPTER 30: CONFIGURING BGP

Perform the following configurations in system view.

Table 553 Define a Routing Policy

Operation

Command

 

 

Define a routing policy and enter into the

route-policy policy-name{ permit

Routing policy view

deny } [ seq-number ]

 

 

Remove a specified routing policy

undo route-policy policy-name[

 

permit deny ] [seq-number]

 

 

Define a match rule

Perform the following configurations in BGP Routing policy view.

Table 554 Define a Match Rules

Operation

Command

 

 

Specify a BGP AS path list to be matched

if-matchas-pathaspath-list-number

in routing policy

 

 

 

Delete a BGP AS path list to be matched in

undo if-match as-path

routing policy

 

 

 

Specify BGP community list number to be

if-match community

matched in routing policy.

{standard-community-list-number [

 

exact-match ]

 

extended-community-list-number }

 

 

Delete BGP community list

undo if-match community

 

 

Define the matched routing access control

if-match ip address { acl-number

list and prefix list in routing policy.

ip-prefixprefix-list-name }

 

 

Remove a standard access list or a prefix

undo if-match ip address [ ip-prefix

list

]

 

 

Define matched the type of interface

if-match interface [ type number ]

 

 

Remove the matched interface

undo if-match interface

 

 

Specify the next hop to be matched in

if-match ip next-hop { acl-number

Route-policy by an access list or an prefix

ip-prefixprefix-list-name }

list specified

 

 

 

Remove the destination address of the

undo if-match ip next-hop [ ip-prefix

matched route

]

 

 

Define matched the specified cost

if-match cost cost

 

 

Delete the specified cost

undo if-match cost

 

 

By default, AS regular expression, community list, interface type, IP address range, and metric value are not matched.

See “Define matching rules” of “Configuration of IP Routing Policy” for details.

Define an apply clause

Perform the following configurations in Routing policy view.

Table 555 Define An Apply Clause

Operation

Command

 

 

Set the BGP AS path access list

apply as-pathaspath-list-number

 

 

Delete BGP AS-path attribute to BGP

undo apply as-path

routes

 

 

 

Page 472
Image 472
3Com 10014299 Define a match rule, Define an apply clause, Perform the following configurations in Routing policy view