982
Command Reference for AT-IX5-28GPX High Availability, High Power Video Surveillance PoE Switch
C613-50057-01 REV A
AlliedWare Plus™ Operating System - Version 5.4.5-0.x
Q
O
S C
OMMANDS
SET
IP
NEXT
-
HOP
(PBR)
set ip next-hop (PBR)
Overview
When this command is set, all packets that match a selected class-map will be
forwarded to the specified next hop.
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 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. 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.
For more information, see the “Policy-Based Routing” section of the
QoS Feature
Overview and Configuration Guide
.
Example
To forward a packet to a 192.168.1.1, use the commands:
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
Parameter
Description
<
ip-addr
>
The IP address of the next hop destination.