HP MSR2000/3000/4000 Router Series Layer 3 - IP Routing Command Reference
569
vlan-id1 to vlan-id2: Specifies a VLAN ID range. Both vlan-id1 and vlan-id2 are in the range of 1 to
4094. The vlan-id2 value must be no less than the vlan-id1 value.
&<1-16>: Indicates that the argument before it can be entered up to 16 times.
Examples
# Configure node 10 of routing policy policy1 to match routes whose VLAN ID is 10 or falls into the
VLAN ID range of 100 to 200.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy-policy1-10] if-match vlan 10 vlan 100 to 200
ip as-path
Use ip as-path to create an AS path list.
Use undo ip as-path to remove an AS path list.
Syntax
ip as-path as-path-number { deny | permit } regular-expression
undo ip as-path as-path-number [ regular-expression | deny | permit ]
Default
No AS path list is created.
Views
System view
Predefined user roles
network-admin
Parameters
as-path-number: Specifies a number for the AS path list, in the range of 1 to 256.
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 an AS path regular expression, a string of 1 to 63 characters.
Usage guidelines
BGP routing updates contain an AS_PATH attribute field that identifies the ASs through which the routes
have passed. An AS path regular expression, for example, ^200. *100$, matches the AS_PATH
attribute that starts with AS 200 and ends with AS 100. For the meanings of special characters used in
regular expressions, see Fundamentals Configuration Guide.
Examples
# Create AS path list 1 to permit routes whose AS_PATH attribute starts with 10.
<Sysname> system-view
[Sysname] ip as-path 1 permit ^10
Related commands
• apply as-path
• display ip as-path