66
CSA-7400 QSG
ACL UDF add
Description
Add an ACL UDF.
Prerequisite
None
Syntax
acl udf set <0-5> l4header <OFFSET_LIST> <PROTOCOL>
<0-5>
ACL UDF priority, 5 means the highest priority, 0
means the lowest priority.
OFFSET_LIST
Word(4 byte) offset list .eg:0,2-3,14
Options
PROTOCOL
L4 protocol . eg: 17 for UDP 6 for TCP
Example
Add an ACL rule to make all packets with L4 user udp data’ the second word is 0x01020304
and source/destination port is 177’s packet will redirect to port xe1.
ACL UDF delete
Description
Delete an ACL UDF.
Prerequisite
None
Syntax
acl udf delete <0-5>
Options
<0-5>
ACL UDF priority, 5 means the highest priority, 0
means the lowest priority.
Example
Delete an ACL rule
ADLINK(fabric)# acl udf set 1 l4header 1 17 177
ADLINK(fabric)# acl udf del 1
ADLINK(fabric)# acl udf set 1 l4header 1 17 177
ADLINK(fabric)# show udf 1
udf_id protocol port offset
1 17 177 1
ADLINK(fabric)# acl add 1 redirectport=xe1 policer=1 offset1=0x01020304
ADLINK(fabric)# show acl
index priority policer_id action qualifiers......
0 1 1 redirectPort=xe1 offset1=0x01020304/0xffffffff