The VLAN (Virtual Local Area Network) is named “Virtual LAN” in Chinese.
VLAN divides a physical LAN into multiple logical LAN, and each VLAN is a broadcast domain.Hosts in VLAN can interact with messages through traditional Ethernet communication, while if hosts in different VLAN need communication, it must be achieved through network layer devices such as router or three-layer switch.
The following describes the port-based Vlan rule:
The Access port can only belong to one VLAN, so its default VLAN is the VLAN where it is located, no need to set; the Hybrid port and Trunk ports can belong to multiple VLAN, so set the default VLAN ID of the port.
1. Access port: receive the received message without tag and add the default Tag to the message. When the received message with Tag, ① receives the VLAN ID is the same as the default VLAN ID. If the message is discarded when VLAN ID is sent, the Tag is removed.
2. Trunk port: When the message is received without Tag, When the port has already been added to the default VLAN, Package the Tag of the default VLAN for the message and forward it, When the port does not join the default VLAN, Discard the message; When the received message carries a Tag, When the VLAN ID is the VLAN ID allowed through by this port, Receiving the message, When the VLAN ID is not the VLAN ID allowed by that port, Discard the message; When sending a message, When the VLAN ID is the same as the default VLAN ID, do away with Tag, Send this message when the VLAN ID is different from the default VLAN ID, Keeping the original Tag, Send the message.
3. Hybrid port: The operation when receiving the message is the same as that of the Trunk port. When sending the message, the VLAN ID carried in the message is the VLAN ID allowed of the port, and the port can configure whether to carry Tag when sending the message of the VLAN (including the default VLAN).
The following figure is our HDV 8pon port epon olt:
Our HDV 8pon port epon olt to configure the default vlan command in the port is: port default-vlan 100.
The command to add the port to the corresponding vlan is: vlan hybrid 100 untagged.You can change hybrid to access and trunk, and untagged can be changed to tagged, depending on demand.