4.2.3.3
Advanced 802.1Q VLAN Setting
Ingress filters configuration
When a packet was received on a port, you can govern the switch to drop it or not if it is an untagged packet. Furthermore, if the
received packet is tagged but not belonging to the same VALN group of the receiving port, you can also control the switch to forward
or drop the packet. The example below configures the switch to drop the packets not belonging to the same VLAN group and forward
the packets not containing VLAN tags.
VLAN Commands
show vlan mode
Display the current VLAN mode.
vlan mode (disabled|port‐based|dot1q)
Change VLAN mode.
Parameters:
(disabled|port‐based|dot1q) specifies the VLAN mode.
NOTE: Change the VLAN mode for every time, user have to restart the switch for valid value.
vlan add <1‐4094> <NAME> <cpu‐port|no‐cpu‐port> <LIST> [<LIST>]
Add or edit VLAN entry.
Parameters:
<1‐4094> specifies the VLAN id or Group id (if port based VLAN mode)
<NAME> specifies the VLAN group name.
<cpu‐port|no‐cpu‐port> specifies the CPU port belong this VLAN group.
st
1
<LIST> specifies the ports to be set to VLAN members.
nd
2
[<LIST>] specifies the ports to be set to tagged members. If not entered, all members set to untagged.
e.g. vlan add 1 vlan1 cpu‐port 1‐4 . This VLAN entry has four members (from port1 to port4) and all members are untagged.
no vlan <1‐4094>
Delete VLAN entry.
Parameters:
<1‐4094> specifies the VLAN id or group id (if port based VLAN).
e.g. no vlan 1
show vlan [<1‐4094>]
Show VLAN entry information.
Parameters:
[<1‐4094>] specifies the VLAN id, null means all valid entries.
e.g. show vlan 1
show vlan static
Show static VLAN entry information.
vlan pvid <LIST> <1‐4094>
Set port default VLAN id.
Parameters:
<LIST> specifies the ports to be set.
<1‐4094> specifies the port VLAN id.
show vlan pvid [<LIST>]
Show port default VLAN id.
Parameters:
[<LIST>] specifies the ports to be showed. If not entered, all port's PVID will be showed.
vlan filter <enable|disable> <enable|disable> <LIST>
Set ingress filter rules.
Parameters:
st
<enable|disable> specifies the non‐members packet will be forwarded or not. If set enable, forward only packets with VID
1
matching this port's configured VID.