Set ip next-hop (pbr) – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 1041
QoS Commands
Software Reference for x310 Series Switches
C613-50046-01 REV A
AlliedWare Plus
TM
Operating System - Version 5.4.4C
39.35
set ip next-hop (PBR)
Forwards traffic matching this class-map to the specified nexthop.
When this command is set, all packets that match a selected class-map will be forwarded
to the specified nexthop.
The no variant of this command removes the next-hop address (in the context of its
policy-map and class-map) from the configuration.
Syntax
set ip next-hop <ip-addr>
no set ip next-hop
Mode
Policy Map Class Configuration
Usage
In typical deployments of policy-based routing, some traffic types require normal routing
(i.e. via the routes in the IP routing table) while other traffic types require policy based
routing.
Where the traffic to be policy routed is a subset of the traffic that is to be normally routed,
then the configuration is reasonably simple. The policy-map will contain one or more
classes that match the traffic to be policy routed, and will have their next-hop configured
by this command - set ip next-hop (PBR). The remaining traffic will be conventionally
routing routed according to the rules set for the default class - providing that this is not
subject to the set ip next-hop (PBR).
The situation becomes a little more complex where the traffic requiring normal routing is
a subset of the traffic to be policy-routed. In this situation the policy-map would need to
contain one, or more, classes that match the requirement for normal routing, These classes
would not be configured with a set ip next-hop (PBR) command. Then the remaining
traffic classes that require normal routing would have the set ip next-hop (PBR)
command applied to them. Note that this traffic could be just the default class, if ALL other
traffic types were to be policy-routed.
Also note that the order in which the classes are configured in the policy-map is
important; because traffic is matched against the classes in the order that they were
assigned to the policy-map.
Details of a practical example of such a policy-based routing is shown in
Example
To forward a packet to a 192.168.1.1, use the commands:
Parameter Description
<ip-addr>
The IP address of the next hop destination.
awplus#
configure terminal
awplus(config)#
policy-map pmap1
awplus(config-pmap)#
class cmap1
awplus(config-pmap-c)#
set ip next-hop 192.168.1.1