HP 5400ZL User Manual

Page 414

Advertising
background image

Classifier-Based Software Configuration
Creating a Traffic Class

3. Enter the

exit command to exit the class configuration context.

To display a class configuration, enter the

show class < ipv4 | ipv6 >

< classname > command (see Figure 9-7).

To edit a class configuration, re-enter the class configuration context
(

class command) and enter new match/ignore statements as follows:

If you do not enter a sequence number, a new statement is inserted at
the end of the class configuration.

To remove a match/ignore statement from a class configuration, enter
the

no <sequence-number > command or the complete form of the no

match ... or no ignore ... command.

To resequence the order in which match/ignore statements are listed,
enter the

resequence command (see “Resequencing Match/Ignore

Statements” on page 9-23).

To replace an existing match/ignore statement, enter the

no

<

sequence-number > command to delete the entry and re-enter a

complete <

sequence-number > match ... or <sequence-number > ignore

... command.

When you exit class configuration context, the changes are automatically
saved and applied to existing policy configurations on the switch that use
the class if the policies have not been applied to an interface. If a policy
has already been applied to an interface, the editing changes are not
accepted and an error message is displayed.

Example.

Figure 9-3 shows an example of two class configurations:

“AdminTraffic” selects the administrative traffic sent to, and received
from, the IPv4 address of an administrator’s PC.

“http” selects HTTP traffic sent to TCP ports 80, 443, and 8080, and
excludes HTTP traffic sent to, and received from, TCP port 1214.

ProCurve(config)# class ipv4 AdminTraffic

ProCurve(class-config)# match ip 15.29.16.1/10 any

ProCurve(class-config)# match ip any 15.29.16.1/10

ProCurve(class-config)# exit

ProCurve(config)# class ipv4 http

ProCurve(class-config)# match tcp any any eq 80

ProCurve(class-config)# match tcp any any eq 443

ProCurve(class-config)# match tcp any any eq 8080

ProCurve(class-config)# ignore tcp any eq 1214 any

ProCurve(class-config)# ignore tcp any any eq 1214

ProCurve(class-config)# exit

Figure 9-3. Example of a Class Configuration

9-12

Advertising
This manual is related to the following products: