VLAN tagging (IEEE 802.1Q) is a networking standard that defines the VLAN. You can configure a port as either a trunk or an access port. With the native VLAN ID, you can add the port (in trunk mode) to more than one VLAN. Access ports belong to native VLANs, while trunk ports belong to more than one VLAN, including the native VLAN.
Configure the Access/Trunk Mode
Configure the Native VLAN ID
The native VLAN ID is the ID of the default VLAN (usually vlan-id 1) in which the port belongs. Every port should be included in at least one VLAN.
Add a Port to a VLAN with Tagged Packet
Add a Port to a VLAN with Untagged Packet
Configuring the CPU Egress Rate Limit for an VLAN Interface
Creating a VLAN within the VLAN Range
VLAN Configuration Example
In the following topology, the VLANs are configured for each switch.
Figure 4-1.VLAN configuration.
Configuring Switch A
For Switch A, you should configure ge-1/1/1 through ge-1/1/4 as access ports and te-1/1/49 as the trunk port because the 10Gbit link will trunk the traffic of VLAN-2 and VLAN-3.
Configuring Switch B
For Switch B, configure ge-1/1/1 through ge-1/1/4 as access ports and te-1/1/49 as the trunk port because the 10 Gbit link will trunk the traffic of VLAN-2 and VLAN-3.