cancel
Showing results for 
Search instead for 
Did you mean: 

ACL for add-vlan-id

ACL for add-vlan-id

Danial_Jalil
New Contributor
I want to add an ingress ACL to a port that adds a vlan to an untagged traffic. if the traffic is tagged it should add a second vlan. following is my code but somehow i am facing error. is it the right syntax to implement it

entry testing {
if match all {
} then {
permit;
add-vlan-id 51;
}
}

#configure access-list testing ports 4 ingress
23 REPLIES 23

Sushruth_Sathya
Extreme Employee
Could you try the following -
entry rule {
if {
vlan-format untagged;
} then {
add-vlan-id 51;
class-id 2;
}
}

I remember encountering this in a case. "Add-Vlan-Id" works with class-id. Also ensure the VLAN ID you are adding is an available VLAN on the ingress and egress ports.

Available VLAN means that the VLAN must be added to both the ingress and egress ports.

If you want to remove and ACL on a port, then the command is -
unconfig access-list ingress/egress

Can you also tell me how to remove the vlan on the other side. is there any ACL rule or anything that can remove the added acl on the other port at egress..

it works, it seems for ingress ACL class id is needed..thank you for the help Sushruth.. you are awesome 
GTM-P2G8KFN