HP VPN Firewall Appliances Network Management Command Reference

1070
Table 242 Command output.
Field Descri
p
tion
Route-policy Routing policy name.
Permit Match mode: permit or deny.
if-match ip-prefix abc Match criterion.
apply cost 120 If the criterion is matched, set a cost of 120 for routing information.
Related commands
route-policy
if-match as-path
Use if-match as-path to specify AS path lists for matching against the AS_PATH attribute of BGP routing
information.
Use undo if-match as-path to remove the match criterion.
Syntax
if-match as-path as-path-number&<1-16>
undo if-match as-path [ as-path-number&<1-16> ]
Default
No match criterion is configured.
Views
Routing policy view
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.
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