config router policy
Description: Configure router policies.
config route policy
edit <name>
set input-device <name1>
set srcaddr <name1>
set dstaddr <name1>
set service <name1>, <name2>, …
set *target <name1>
set status [enable | disable]
set comment {string}
unset
next
show
abort
end
delete <name>
purge
move <name1> [before | after] <name2>
show
end
Sample command:
config router policy
edit 1
set input-device lan
set srcaddr all
set dstaddr all
set service ALL
set target target.port1
set status enable
set comment this is a test policy
next
end
| Parameter | Description | Type | Size | Default | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| input-device | Incoming interface name. | option | - | none | ||||||||||
|
||||||||||||||
| srcaddr | Source address. | option | - | none | ||||||||||
|
||||||||||||||
| dstaddr | destination address. | option | - | none | ||||||||||
|
||||||||||||||
| service | Service/service group names. | option | - | none | ||||||||||
|
||||||||||||||
|
target |
The PBR's out-going interface and next-hop. |
option |
- |
none |
||||||||||
|
|
|
|||||||||||||
|
status |
Status of the policy based the routing rule. |
option |
- |
enable |
||||||||||
|
|
|
|||||||||||||
|
comment |
Comment on the policy. |
string |
1 - 255 characters in length |
none |
||||||||||