class

OVERVIEW

Category:

Primary context:

config

Related Commands

policy (page 398)

 

 

Usage: [no] class <address-family> <name>

Description: Create a classifier class and enter the class context. Parameters are address family(ipv4 or ipv6) and class name.

COMMAND STRUCTURE

[no] class ipv4 -- Enter ipv4 class name (ASCII-STR) (p. 80)

[no] class ipv6 -- Enter ipv6 class name (ASCII-STR) (p. 80)

class resequence -- Renumber the entries in the class. (p. 80)

ipv4 -- Enter ipv4 class name (ASCII-STR) (p. 80)

start-seq-num< 1 to 2147483647 > -- Specify the starting sequence number. (p. 80)

incr-num< 1 to 2147483646 > -- Specify the increment. (p. 80)

ipv6 -- Enter ipv6 class name (ASCII-STR) (p. 80)

start-seq-num< 1 to 2147483647 > -- Specify the starting sequence number. (p. 80)

incr-num< 1 to 2147483646 > -- Specify the increment. (p. 80)

EXAMPLES

Example: class

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

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

Example: class

“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 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

COMMAND DETAILS

incr-num (p. 80)

ipv6 (p. 80)

start-seq-num (p. 80)

ipv4 (p. 80)

resequence (p. 80)

 

 

 

 

© 2009 Hewlett-Packard Development Company, L.P.

79