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

Table Of Contents
1077
deny: Specifies the match mode for the AS path list as deny.
permit: Specifies the match mode for the AS path list as permit.
regular-expression: Specifies the AS_PATH regular expression, a string of 1 to 50 characters.
BGP routing updates contain the AS_PATH attribute field that identifies the autonomous systems through
which the routing information has passed. An AS_PATH regular expression, for example, ^200. *100$,
matches the AS_PATH attribute that starts with AS200 and ends with AS100. For the meanings of special
characters used in regular expressions, see Getting Started Guide.
Usage guidelines
The following matrix shows the ip 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
# Create AS path list 1, permitting routing information whose AS_PATH attribute starts with 10.
<Sysname> system-view
[Sysname] ip as-path 1 permit ^10
ip community-list
Use ip community-list to configure a community list entry.
Use undo ip community-list to remove a community list or entry.
Syntax
ip community-list { basic-comm-list-num | basic comm-list-name } { deny | permit }
[ community-number-list ] [ internet | no-advertise | no-export | no-export-subconfed ] *
undo ip community-list { basic-comm-list-num | basic comm-list-name } [ deny | permit ]
[ community-number-list ] [ internet | no-advertise | no-export | no-export-subconfed ] *
ip community-list { adv-comm-list-num | advanced comm-list-name } { deny | permit } regular-expression
undo ip community-list { adv-comm-list-num | advanced comm-list-name } [ deny | permit ]
[ regular-expression ]
Default
No community list is configured.
Views
System view
Default command level
2: System level