468 CHAPTER 30: CONFIGURING BGP
Perform the following configurations in system view.
Table 553 Define a Routing Policy
Define a match rule
Perform the following configurations in BGP Routing policy view.
Table 554 Define a Match Rules
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
Define a routing policy and enter into the
Routing policy view
route-policy policy-name { permit |
deny } [ seq-number ]
Remove a specified routing policy undo route-policy policy-name [
permit | deny ] [seq-number ]
Operation Command
Specify a BGP AS path list to be matched
in routing policy
if-match as-path aspath-list-number
Delete a BGP AS path list to be matched in
routing policy
undo if-match as-path
Specify BGP community list number to be
matched in routing policy.
if-match community
{standard-community-list-number [
exact-match ] |
extended-community-list-number }
Delete BGP community list undo if-match community
Define the matched routing access control
list and prefix list in routing policy.
if-match ip address { acl-number |
ip-prefix prefix-list-name }
Remove a standard access list or a prefix
list
undo if-match ip address [ ip-prefix
]
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
Route-policy by an access list or an prefix
list specified
if-match ip next-hop { acl-number |
ip-prefix prefix-list-name }
Remove the destination address of the
matched route
undo if-match ip next-hop [ ip-prefix
]
Define matched the specified cost if-match cost cost
Delete the specified cost undo if-match cost
Operation Command
Set the BGP AS path access list apply as-path aspath-list-number
Delete BGP AS-path attribute to BGP
routes
undo apply as-path