Chapter 18 Pbr Configuration; Introduction To Pbr; Pbr Configuration; Pbr Examples - Planet XGS3-42000R User Manual

4-slot layer 3 ipv6/ ipv4 routing chassis switch
Table of Contents

Advertisement

Chapter 18 PBR Configuration

18.1 Introduction to PBR

PBR(Policy-Ba sed Routing)is a method which det ermines the next-hop of the data packets by policy
messages such as source address, destination address, IP priority, TOS value, IP protocol, source port No,
destination port No, etc.

18.2 PBR Configuration

The PBR configuration task list is as follows:
Initiate PBR function
Enable or disable PBR function automatically when turn on or turn off the QoS function at global mode.
Configuration classmap
Establish a class rule and apply different policies on different kinds of data streams thereafter.
Configuration policymap
A policymap can be established after the data streams are classified. Assign each stream to previously
created class-map and then enter the policy class-map mode. In this way different data streams can now be
assigned to different next-hop IP address and apply the policy to the port.
A policy will not be valid until it is bonded to a specified port.

18.3 PBR Examples

Example1 :
On port ethernet1/1, apply policy-based routing on packages from 192.168.1.0/ 24 segment, and set the
next-hop as 218.31. 1.119, meanwhile the local network IP of this network ranges within 192. 168. 0.0/16. To
assure normal communication in local network, messages from 192.168.1.0/ 24 to local IP 192.168.0.0/16 are
not applied with policy routing.
Configuration procedure is as follows:
XGS 3-42000R#config
XGS 3-42000R(config)#access-list ip extended a1
XGS 3-42000R(config-IP-Ext-Nacl-a1)#permit ip 192.168.1.0 0.0. 0.255 any-destination
XGS 3-42000R(config-IP-Ext-Nacl-a1)#deny ip 192.168.1.0 0.0.0. 255 192.168.0. 0 0.0.255.255
XGS 3-42000R(config-IP-Ext-Nacl-a1)#exit
XGS 3-42000R(config)#mls qos
XGS 3-42000R(config)#class-map c1
XGS 3-42000R(config-ClassMap-c1)#match access-group a1
XGS 3-42000R(config-ClassMap-c1)# exit
XGS 3-42000R(config)#policy-map p1
XGS 3-42000R(config-P olicyMap-p1)#class c1
XGS 3-42000R(config-P olicyMap-p1-Class-c1)#set ip nexthop 218.31.1.119
18-1

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents