XGS-5240-Series User Manual

Table Of Contents
Configuration Guide of XGS-5240-Series
26-2
policy-map <policy-map-name>
no policy-map <policy-map-name>
Set up or delete a policy-map.
4. Configure a policy map corresponding to a class map
Command
Explanation
Policy-map Configuration Mode
class <class-map-name>
no class <class-map-name>
Correspond a class-map, and enter the
policy map mode.
5. Configure nexthop IPv4 address
Command
Explanation
Policy-class-map Mode
set ipv4 [default] nexthop
[vrf <vrf>]
<nexthop-ip>
no set ipv4 nexthop
Set nexthop IP for the classified traffic, the
no command cancels the new assigned
value.
6. Configure the port binding policy map
Command
Explanation
Port Mode
service-policy {input <policy-map-nam
e> | output <policy-map-name>}
no service-policy {input <policy-map-n
ame> | output <policy-map-name>}
Apply a policy map to the specified port.
Only one policy map can be applied to
each direction of each port. Egress policy
map is not supported yet.
7. Configure the VLAN binding policy map
Command
Explanation
Global Configuration Mode
service-policy input <policy-map-nam
e> vlan <vlan-list>
no service-policy input <policy-map-na
me> vlan <vlan-list>
Apply a policy map to the specified VLAN
interface; the no command deletes the
specified policy map applied to the VLAN
interface.
26.3 PBR Examples
Example:
On port ethernet1/0/1, apply policy-based routing on packages from 192.168.1.0/24