clear policy rule
10-12 Policy Classification Configuration
Examples
ThisexampleshowshowtouseTable 10‐3toassignaruletopolicyprofile3thatwillfilter
EthernetIIType1526framestoVLAN7:
B3(su)->set policy rule 3 ether 1526 vlan 7
ThisexampleshowshowtouseTable 10‐3toassignaruletopolicyprofile5thatwillforward
UDPframesfromsourceport45:
B3(su)->set policy rule 5 udpportsource 45 forward
ThisexampleshowshowtouseTable 10‐3toassignaruletopolicyprofile1thatwilldropIP
sourcetrafficfromIP address1.2.3.4.Ifmask32isnotspecifiedasshown,adefaultmaskof48bits
(IPaddress+port)wouldbeapplied:
B3(su)->set policy rule 1 ipsourcesocket 1.2.3.4 mask 32 drop
clear policy rule
Usethiscommandtodeletepolicyclassificationruleentries.
Syntax
Thiscommandhastwoformsofsyntax—onetoclearanadminrule(forpolicyID0),andthe
othertoclearaclassificationrule.
clear policy rule admin-profile {vlantag data [mask mask]
clear policy rule profile-index {all-pid-entries | {ether |ipproto| ipdestsocket|
ipsourcesocket | iptos | macdest | macsource |tcpdestport | tcpsourceport |
udpdestport | udpsourceport}}
Parameters
Thefollowingparametersapplytodeletinganadminrule.
Destination or Source MAC:
macdest
macsource
MAC Address: 00-00-00-00-00-
00
1 - 48
Destination or Source TCP port:
tcpdestport
tcpsourceport
TCP Port Number:
0 - 65535 or 0 - 0xFFFF
1 - 16
Destination or Source UDP port:
udpsourceport
udpdestport
UDP Port Number:
0 - 65535 or 0 - 0xFFFF
1 - 16
vlantag VLAN tag: 1- 4094 1 -12
Table 10-3 Valid Values for Policy Classification Rules (Continued)
Classification Rule Parameter data value mask bits
admin‐profile SpecifiesthattheruletobedeletedisanadminruleforpolicyID0.
vlantagdata DeletestherulebasedonVLANtagspecifiedbydata.Valueofdatacan
rangefrom1to4094or0xFFF.