xStack DGS-3612G Layer 3 Gigabit Ethernet Managed Switch CLI Manual
config policy_route
Purpose
Used to configure the parameters to set the policy route on the Switch.
Syntax
config policy_route name <policyroute_name 32> [acl [profile_id <value 1-14>
| access_id <value 1-128>]] | nexthop <ipaddr> | {state [enable | disable]}
Description
This command is used to configure the policy route settings for a policy route
created with the
create policy_route
command. The administrator must have
previously created an access profile with an accompanying access rule using the
create access_profile profile_id
and
config access_profile profile_id
mentioned previously in this manual. The next hop router IP address must also be
specified using this command.
Parameters
name <policyroute_name 32> -
Enter an alphanumeric name of no more than 32
characters which identifies this policy route.
acl – This parameter is used to denote the access profile that will be used with this
command, by identifying the following parameters:
nexthop <ipaddr> -
Enter the IP address of the net hop router that will be
connected to the gateway router. This field must be set or no policy routing will take
place.
state [enable | disable]
– Used to enable or disable this policy route on the Switch.
Restrictions Only
administrator-level users can issue this command.
profile_id <value 1-14> -
Enter the ID number of the previously created
access profile that is to be associated with this policy route.
•
•
access_id
<
value 1-128> -
Enter the previously created access ID that
has been created in conjunction with the access profile ID mentioned
previously, that is to be associated with this policy route.
Example usage:
To configure the policy route name “manager”:
DGS-3612G:4#config policy_route name manager acl profile_id 1 access_id 2 next
hop 10.2.2.2 state enable
Command: config policy_route name manager acl profile_id 1 access_id 2 next
hop 10.2.2.2 state enable
Success.
DGS-3612G:4#
delete policy_route
Purpose
Used to delete a policy route setting.
delete policy_route name <policyroute_name 32>
Description
This command is used to delete a policy route setting.
Parameters
name <policyroute_name 32> -
Enter an alphanumeric name of no more than 32
characters to identify this policy route to be deleted.
Restrictions Only
administrator-level users can issue this command.
Syntax
Example usage:
To delete the policy route name “manager”:
202