摘要 |
Disclosed are a method and an apparatus for implementing virtual local area network (VLAN) domain mapping and access control. The method comprises: receiving a data packet that is sent through a user network interface (in an uplink direction) or a PON dedicated interface (in a downlink direction); extracting header data of the data packet, performing mark identification on the header data to obtain a VLAN ID of the data packet, and obtain a user network interface number; querying an access control table or a VLAN conversion configuration table according to the user network interface number and the VLAN ID, to obtain a VLAN conversion manner and a data packet processing manner; and processing the data packet according to the data packet processing manner, and converting the VLAN according to the VLAN conversion manner. |