macsource
tcpdestport
tcpsourceport
udpdestport
udpsourceport
data
mask mask
vlan vlan
cos cos
drop | forward
Defaults
None.
Mode
Switch command, read‐write.
Usage
Table
9‐35 provides the set policy rule data values that can be entered for a particular classification
type, and the mask bits that can be entered for each classifier associated with that parameter.
Table 9-35 Valid Values for Policy Classification Rules
Classification Rule Parameter
ether
ipproto
Destination or Source IP Address:
ipdestsocket
ipsourcesocket
iptos
Destination or Source MAC:
macdest
macsource
Destination or Source TCP port:
tcpdestport
tcpsourceport
Classifies based on MAC source address.
Classifies based on TCP destination port.
Classifies based on TCP source port.
Classifies based on UDP destination port.
Classifies based on UDP source port.
Specifies the code for a predefined classifier. This value is dependent on
the classification type entered. Refer to Table
classification type.
(Optional) Specifies the number of significant bits to match, dependent on
the data value entered. Refer to Table
classification type and data value.
Classifies to a VLAN ID.
Specifies that this rule will classify to a Class‐of‐Service ID. Valid values
are 0 ‐ 4095. A value of ‐1 indicates that no CoS forwarding behavior
modification is desired. (Not supported on B3, C3, and G3.)
Specifies that packets within this classification will be dropped or
forwarded.
data value
Type field in Ethernet II packet:
1536 - 65535 or 0x600 - 0xFFFF
Protocol field in IP packet:
0 - 255 or 0 - 0xFF
IP Address in dotted decimal
format: 000.000.000.000 and
(Optional) post-fixed port: 0 -
65535
Type of Service field in IP packet:
0 - 252 or 0 - 0xFC
MAC Address: 00-00-00-00-00-
00
TCP Port Number:
0 - 65535 or 0 - 0xFFFF
9‐35 for valid values for each
9‐35 for valid values for each
mask bits
1- 16
1- 8
1 - 48
1- 8
1 - 48
1 - 16
D-Series CLI Reference 9-11
set policy rule