Study FAQ
How do I configure access VLANs and a restricted 802.1Q trunk on CX 6300?
Also asked as 2
- How do I connect untagged hosts to two VLANs carried over one CX 6300 uplink?
- How should I set access ports, native VLAN, and allowed VLANs on a CX 6300 trunk?
Answer
On two standalone CX 6300 switches running AOS-CX 10.13, put each untagged host port in its intended Layer 2 access VLAN. Configure the inter-switch link as a Layer 2 trunk with the same native VLAN, native tagging behavior, and explicit allowed VLANs at both ends. The trunk can carry VLANs 10 and 20 in tagged frames while keeping their forwarding domains separate.
For an isolated lab, create VLANs 10, 20, and 99 on both switches. Confirm the example port numbers exist, keep the uplink shut during configuration, and retain console access. In global configuration mode, use the following interface commands on each end:
interface 1/1/1
no routing
vlan access 10
no shutdown
exit
interface 1/1/2
no routing
vlan access 20
no shutdown
exit
interface 1/1/48
shutdown
no routing
vlan trunk native 99
vlan trunk allowed 10,20,99
VLAN 99 is the untagged native VLAN in this example. Defining the native VLAN on 10.13 enables vlan trunk allowed all, so place the explicit list after the native command. A mismatched native VLAN can put the same untagged traffic into different VLANs on the two switches. Keep the port down while checking both ends and use no shutdown on the uplinks once the settings match.
Verify the intended membership with show vlan port for each access port and the uplink, then test a same-subnet host pair in each VLAN. This Layer 2 exercise provides no route between VLAN 10 and VLAN 20.
AOS-CX 10.13 access VLAN configuration · AOS-CX 10.13 native VLAN command · AOS-CX 10.13 trunk forwarding behavior · AOS-CX 10.13 Layer-2 Bridging Guide for CX 6300/6400
Full explanation
HPE6-A86: Configuring VLAN Membership, 802.1Q Tagging and LLDP Validation
Study guide · HPE6-A86
Read the full explanation