Assign a VLAN to a LAN port
By default, each LAN port is an untagged member of the default VLAN, VLAN 1. If you added one or more VLANs (see Add a VLAN profile for IPv4 Internet connections), you can change the VLAN ID for a LAN port.
If you add other VLANs, you also make a LAN port a tagged or untagged member of another VLAN. Or, you can exclude a LAN port from a VLAN:
- Tagged: The LAN port inserts the VLAN tag in the traffic that it processes. Untagged traffic is forwarded to the default VLAN. A LAN port can be a tagged member of multiple VLANs.
- Untagged: The LAN port does not insert the VLAN tag in the traffic that it processes. A LAN port must be an untagged member of a VLAN, but cannot be an untagged member of more than one VLAN.
- Excluded: The LAN port drops traffic that is not directed to the VLAN.
The following is a configuration example with tagged and untagged traffic:
Example: In a typical configuration with a VoIP phone that has two LAN ports, one port is connected (through a VLAN-aware switch) to the LAN 2 port on the router, and the other port is connected to a LAN port on a computer:
- Packets coming from the VoIP phone to the LAN 2 port on the router are tagged.
- Packets coming from the computer are passing through the VoIP phone to the LAN 2 port on the router. These packets are untagged.
When you assign the LAN 2 port on the router to VLAN 5, packets entering and leaving the port are tagged with the VLAN ID 5. However, the untagged packets entering the LAN port on the router are forwarded to the default VLAN 1.
To assign a VLAN to a LAN port: