Huawei 5680 OLT native vlan configuration
1. Take effect on the ONU port
ont port native -vlan(profile-mode)
This command is used to configure the default VLAN of the ONT port. When the native VLAN function of the ONT is enabled, the native VLAN is added to the inbound untagged packets. For the outbound packets, if the packet VLAN is equal to the native VLAN, the VLAN is stripped.
Example: Set the native VLAN of ETH port 1 of ONT 0 under GPON port 0/3/1 to 100.
ont port native-vlan 1 0 eth 1 vlan 100
2. It takes effect on the OLT connection port
This command is used to configure the native VLAN of the Ethernet port. When the native VLAN function is enabled, for outgoing packets, you can determine whether the packets carry VLAN tags by comparing whether the VLAN IDs carried in the packets passing through the Ethernet port are consistent with the native VLAN IDs of the ports. The specific determination method is as follows:
When the VLAN ID carried in the packet is the same as the ID of the native VLAN, the packet does not contain a VLAN tag (that is, untag).
When the VLAN ID carried in the packet is different from the ID of the native VLAN, the packet contains a VLAN tag.
For inbound Untag packets, add a Native VLAN. By default, the native VLAN of an Ethernet port is 1
Example: Set the Native VLAN of Ethernet port 0/19/0 to 2.
native-vlan 0 vlan 2
The upstream rules of ONU ports may have
1. pvid //Untag packets in the inbound direction—Put pvid, and tag packets in the outbound direction. If they are consistent with pvid, they will be stripped
2. single tag
3. double tag
The downstream rules are generally processed in the reverse direction of the upstream rules (if not configured)