F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
1071
Default command level
2: System level
Parameters
as-path-number: Specifies an AS path list by its number, in the range of 1 to 256.
&<1-16>: Indicates that the argument before it can be entered up to 16 times.
Usage guidelines
The following matrix shows the if-match as-path command and firewalls and UTM devices compatibility:
Hardware Command com
p
atible
F1000-A-EI/F1000-S-EI Yes
F1000-E Yes
F5000 Yes
Firewall module Yes
U200-A Yes
U200-S No
Examples
# Define AS path list 2, allowing BGP routing information containing AS number 200 or 300 to pass.
Configure node 10 in permit mode of routing policy test to match AS path list.
<Sysname> system-view
[Sysname] ip as-path 2 permit _*200.*300
[Sysname] route-policy test permit node 10
[Sysname-route-policy] if-match as-path 2
Related commands
ip as-path-acl
if-match community
Use if-match community to match BGP routes whose COMMUNITY attributes matches a specified
community list.
Use undo if-match community to remove the match criterion.
Syntax
if-match community { { basic-community-list-number | comm-list-name } [ whole-match ] |
adv-community-list-number }&<1-16>
undo if-match community [ { basic-community-list-number | comm-list-name } [ whole-match ] |
adv-community-list-number ]&<1-16>
Default
No community list match criterion is not configured.
Views
Routing policy view