
C613-50186-01 Rev B
Command Reference for AR2050V
1424
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
P
OLICY
-
BASED
R
OUTING
C
OMMANDS
IP
POLICY
-
ROUTE
Before creating a policy route, you need to create the application and entities that
specify the traffic you want to route. To create an application, use the
command. To create entities, use the
, and
commands. To see existing applications and entities, use the
and
commands.
Examples
To create a policy route to route traffic that matches an application called “voice”,
comes from the entity called “inside”, and is destined for the entity called “outside”,
use the following commands:
awplus#
configure terminal
awplus(config)#
policy-based-routing
awplus(config-pbr)#
policy-based-routing enable
awplus(config-pbr)#
ip policy-route 10 match voice from inside
to outside nexthop 10.37.236.65
To delete the policy route created above, use the following commands:
awplus#
configure terminal
awplus(config)#
policy-based-routing
awplus(config-pbr)#
no ip policy-route 10
To route the above traffic via ppp0 if ppp0 is up, or ppp1 if ppp0 is down, use the
following commands:
awplus#
configure terminal
awplus(config)#
policy-based-routing
awplus(config-pbr)#
policy-based-routing enable
awplus(config-pbr)#
ip policy-route 20 match voice from inside
to outside nexthop ppp0 ppp1
To delete the policy route created above, use the following commands:
awplus#
configure terminal
awplus(config)#
policy-based-routing
awplus(config-pbr)#
no ip policy-route 20
Related
Commands