First; it's worth stating for general understanding that Ingress = Incoming/Entering/Receiving; Egress = Outgoing/Exiting/Transmitting.
Second; here we are optionally using an Ingress Filter, and are not using Forbidden Egress at all. When speaking of VLANs it is best to avoid using the word "forbidden" unless we really mean the "Forbidden Egress" feature. Less confusion will ensue.
- Enabling the ingress-filter ['
set port ingress-filter
<port_string
> enable
'] prevents a packet from being accepted for port ingress if the packet's assigned VLAN would not be permitted to egress the same port. Forbidden egress ['set vlan forbidden
<VLAN_id
> <port_string
>'] (1) prevents the port from egressing packets of the specified VLAN and (2) ensures that any Dynamic requests (via for example GVRP or Dynamic VLAN Egress) for the port to join the VLAN will be ignored.
Scenario 1 [PVID 1, Tagged VLAN 1000 egress] Results:
outgoing descriptions are functionally correct incoming untagged packet = VLAN 1, packet will exit another VLAN 1 port incoming packet tagged with VLAN 1000, packet will exit another VLAN 1000 port incoming packet tagged with VLAN 2000, packet will exit another VLAN 2000 port
Scenario 2 [PVID 1000, Tagged VLAN 1000 egress] Results:
outgoing descriptions are functionally correct incoming packet untagged = VLAN 1000, packet will exit another VLAN 1000 port incoming packet tagged with VLAN 2000, packet will exit another VLAN 2000 port incoming packet tagged with VLAN 1000, packet will exit another VLAN 1000 port
Scenario 3 [PVID 1, Tagged VLAN 1000 egress, ingress filter enabled] Results:
outgoing descriptions are functionally correct incoming untagged packet = VLAN 1, dropped due to ingress filter incoming packet tagged with VLAN 1000, packet will exit another VLAN 1000 port incoming packet tagged with VLAN 2000, dropped due to ingress filter
Scenario 4 [PVID 1000, Tagged VLAN 1000 egress, ingress filter enabled] Results:
outgoing descriptions are functionally correct incoming packet untagged = VLAN 1000, packet will exit another VLAN 1000 port incoming packet tagged with VLAN 2000, dropped due to ingress filter incoming packet tagged with VLAN 1000, packet will exit another VLAN 1000 port