Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches Chapter 6 IP Routing Policy Configuration Commands
Huawei Technologies Proprietary
6-12
Related commands: if-match interface, if-match ip next-hop, if-match cost,
if-match tag, route-policy, apply ip next-hop, apply cost, apply local-preference,
apply origin, apply tag.
Example
# Define an if-match sub-statement. When the sub-statement is used for filtering route
information, the route information filtered by route destination address through address
prefix list p1 can pass the if-match sub-statement.
[Quidway-route-policy] if-match ip-prefix p1
6.1.15 if-match as-path
Syntax
if-match as-path acl-number
undo if-match as-path
View
Route policy view
Parameter
acl-number: AS path list number, ranging from 1 to 199.
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.
[Quidway] ip as-path-acl 2 permit 200:300
[Quidway] route-policy test permit node 10
[Quidway-route-policy] if-match as-path 2