R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

627
Views
Routing policy node view
Predefined user roles
network-admin
Parameters
vlan-list: Specifies a space-separated list of up to 16 VLAN items. Each VLAN item specifies a VLAN ID
or a range of VLAN IDs in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater
than the start VLAN ID. Valid VLAN IDs are from 1 to 4094.
Examples
# Configure a routing policy to match VLAN 10 and VLANs in the range of 100 to 200.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy-policy1-10] if-match vlan 10 100 to 200
ip as-path
Use ip as-path to configure 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 configured.
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 more information about regular expressions,
see Fundamentals Configuration Guide.
Examples
# Configure AS path list 1 to permit routes whose AS_PATH attribute starts with 10.
<Sysname> system-view