IP Routing Policy Configuration Commands 557DescriptionUse the if-match as-path command to match the AS path domain of the BGProuting information.Use the undo if-match as-path command to cancel the match of AS pathdomain.By default, AS path list number is not matched.This command is an if-match sub-statement of route-policy, used to filter BGProuting information and specify the match condition according to the AS pathattribute of the routing information.Example# First define an as-path numbered 2, allowing it to contain the routinginformation of AS 200 and AS 300. Then define a route-policy named "test". Anif-match sub-statement is defined for Node 10 of this route-policy, which quotesthe 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 2if-match community Syntaxif-match community { basic-community-number [ whole-match ] |adv-community-number }undo if-match communityViewRoute policy viewParameterbasic-community-list-number: Basic community list number, ranging from 1 to 99.adv-community-list-number: Advanced community list number, ranging from 100to 199.whole-match: Exact match. That is, all specified communities must be presentand only these communities are present.DescriptionUse the if-match community command to match the community attribute of theBGP information.Use the undo if-match community command to cancel the match of thecommunity 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 routinginformation and specify the match condition according to the communityattributes of the routing information.