If-Match As-Path - Huawei quidway s3526 series Getting Started

Hide thumbs Also See for quidway s3526 series:
Table of Contents

Advertisement

Command Manual - Routing Protocol
Quidway S3500 Series Ethernet Switches
Filtration is performed by quoting an ACL or a prefix address list.
For the related commands, see 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 and apply tag.
Example
# Define one 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 is enable to pass the if-match sub-statement.
[Quidway-route-policy] if-match ip-prefix p1

5.1.14 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 based access control list number, ranging from 1 to 199.
Description
Using the if-match as-path command, you can match the AS path domain of the BGP
routing information; using the undo if-match as-path command, you can cancel the
match of AS path domain.
By default, AS path list number is not matched.
Example
# An as-path numbered as 2 is defined first, allowing the routing information of AS 100
and 200. Then the route-policy named test is defined. The node No.10 of this
route-policy defines a if-match sub-statement, which quotes the definition of as-path.
[Quidway] ip as-path-acl 2 permit 100:200
[Quidway] route-policy test permit node 10
[Quidway-route-policy] if-match as-path 2
Chapter 5 IP Routing Policy Configuration Commands
Huawei Technologies Proprietary
5-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents