Chapter 18 pbr configuration, 1 introduction to pbr, 2 pbr configuration – PLANET XGS3-24040 User Manual

Page 164: 3 pbr examples, Ntroduction to, Onfiguration, Xamples

Advertising
background image

Chapter 18 PBR Configuration

18-1

Chapter 18 PBR Configuration

18.1 Introduction to PBR

PBRPolicy-Based Routing)is a method which determines 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:

Switch#config

Switch(config)#access-list ip extended a1

Switch(Config-IP-Ext-Nacl-a1)#permit ip 192.168.1.0 0.0.0.255 any-destination

Switch(Config-IP-Ext-Nacl-a1)#deny ip 192.168.1.0 0.0.0.255 192.168.0.0 0.0.255.255

Switch(Config-IP-Ext-Nacl-a1)#exit

Switch(config)#mls qos

Switch(config)#class-map c1

Switch(Config-ClassMap-c1)#match access-group a1

Switch(Config-ClassMap-c1)# exit

Advertising