clear policy rule
Enterasys C3 Configuration Guide 15-13
C3(su)->set policy rule 5 udpsourceport 45 forward
This example shows how to use Table 15-3 to assign a rule to policy profile 1 that will drop IP
source traffic from IP address 1.2.3.4, UDP port 67.
C3(su)->set policy rule 1 ipsourcesocket 1.2.3.4:67 mask 48 drop
clear policy rule
Use this command to delete policy classification rule entries.
Syntax
This command has two forms of syntax—one to clear an admin rule (for policy ID 0), and the other
to clear a classification rule.
clear policy rule admin-profile vlantag data [port-string port-string]
clear policy rule profile-index {all-pid-entries | {ether | ipproto | ipdestsocket
| ipsourcesocket | iptos | macdest | macsource | tcpdestport | tcpsourceport |
udpdestport | udpsourceport}}
Parameters
The following parameters apply to deleting an admin rule.
The following parameters apply to deleting a classification rule.
Defaults
When applicable, data and mask must be specified for individual rules to be cleared.
admin-profile Specifies that the rule to be deleted is an admin rule for policy ID 0.
vlantag data Deletes the rule based on VLAN tag specified by data. Value of data can
range from 1 to 4094 or 0xFFF.
port-string port-string (Optional) Specifies the port or ports to clear the rule from.
profile-index Specifies a policy profile for which to delete classification rules. Valid
profile-index values are 1 - 255.
all-pid-entries Deletes all entries associated with the specified policy profile.
ether Deletes associated Ethernet II classification rule.
ipproto Deletes associated IP protocol classification rule.
ipdestsocket Deletes associated IP destination classification rule.
ipsourcesocket Deletes associated IP source classification rule.
iptos Deletes associated IP Type of Service classification rule.
macdest Deletes associated MAC destination address classification rule.
macsource Deletes associated MAC source address classification rule.
tcpdestport Deletes associated TCP destination port classification rule.
tcpsourceport Deletes associated TCP source port classification rule.
udpdestport Deletes associated UDP destination port classification rule.
udpsourceport Deletes associated UDP source port classification rule.