IP Routing Policy Configuration Commands
557
Description
Use the if-match as-path command to match the AS path domain of the BGP
routing information.
Use the undo if-match as-path command to cancel the match of AS path
domain.
By default, AS path list number is not matched.
This command is an if-match sub-statement of route-policy, used to filter BGP
routing information and specify the match condition according to the AS path
attribute of the routing information.
Example
# First define an as-path numbered 2, allowing it to contain the routing
information of AS 200 and AS 300. Then define a route-policy named "test". An
if-match sub-statement is defined for Node 10 of this route-policy, which quotes
the definition of as-path.
[SW8800] ip as-path-acl 2 permit 200:300
[SW8800] route-policy test permit node 10
[3Com-route-policy] if-match as-path 2
if-match community
Syntax
if-match community { basic-community-number [ whole-match ] |
adv-community-number }
undo if-match community
View
Route policy view
Parameter
basic-community-list-number: Basic community list number, ranging from 1 to 99.
adv-community-list-number: Advanced community list number, ranging from 100
to 199.
whole-match: Exact match. That is, all specified communities must be present
and only these communities are present.
Description
Use the if-match community command to match the community attribute of the
BGP information.
Use the undo if-match community command to cancel the match of the
community attribute.
By default, no match operation is done on the community attribute of BGP routes.
This if-match sub-statement of route-policy is used to filter BGP routing
information and specify the match condition according to the community
attributes of the routing information.
Need help?
Do you have a question about the 8807 and is the answer not in the manual?
Questions and answers