Skip to content

VLANs

VLAN support is the base of the switching model. netverdict tracks VLAN membership, access/trunk behaviour, native VLAN handling, allowed VLAN lists, and SVI-backed L3 reachability.

AreaLevelNotes
VLAN databaseSupportedVLAN IDs and names are stored and emitted. On IOS and EOS an access port creates a missing VLAN (IOS prints % Access VLAN does not exist. Creating vlan N); NX-OS does not. no vlan N leaves its access ports inactive; no vlan 1 is refused. Enforced where the configuration states a database (vlan / no vlan lines or VTP); a switch from a topology document carries what its ports say.
Access portsSupportedUntagged ingress maps into the configured access VLAN.
802.1Q trunksSupportedAllowed VLAN lists and native VLAN behaviour.
SVIsSupportedVLAN interfaces can provide routed gateways. An inbound ACL on the SVI filters what is routed through it; the port’s own stages run first. See Switching.
Q-in-Q (802.1ad)Supporteddot1q-tunnel ports carry the customer’s tag inside a provider S-tag.
Voice VLANSupportedswitchport voice vlan adds the voice VLAN to a phone port.
DTPBehaviour modelDynamic modes negotiate trunk or access; DTP frames are on the wire in a capture (Packet Lens), decoded by Wireshark.
Private VLANsNot modelledOut of scope today.
StandardCoverageNotes
IEEE 802.1QSupportedTagged/untagged VLAN forwarding and trunk membership. Tags are on the wire in a capture.
IEEE 802.1adSupportedQ-in-Q: S-tag (0x88a8) outside the C-tag.
FeatureStatusNotes
vlan <id>SupportedCreates VLAN.
VLAN nameSupportedMetadata / config emission.
switchport mode accessSupportedAccess VLAN behaviour.
switchport access vlan <id>SupportedAssigns access VLAN.
switchport mode trunkSupportedEnables trunk behaviour.
switchport trunk allowed vlanSupportedFilters tagged VLANs.
Native VLANSupportedUntagged trunk traffic maps to native VLAN.
SVISupportedinterface VlanX participates in routing, with an IPv4 address, an IPv6 address, or both; the header alone creates it (unassigned). no interface VlanX removes it. On IOS, IOS-XE, NX-OS and EOS switches it is up while a port carrying its VLAN is up and forwarding (autostate), and a down SVI loses its connected routes; an IOS switch has a shut Vlan1 by default. An excluded port (switchport autostate exclude) does not count toward it; no autostate (IOS-XE, NX-OS, EOS) keeps it up. An SVI whose VLAN does not exist is down.
switchport mode dot1q-tunnelSupportedQ-in-Q customer edge; show dot1q-tunnel.
switchport voice vlan <id>SupportedData VLAN plus voice VLAN on one port.
CommandIOS-styleJunos-styleVyOS-styleNotes
vlan 10SupportedSupportedPartialVLAN definition. Junos: set vlans NAME vlan-id N.
switchport access vlan 10SupportedSupportedPartialAccess membership. Junos: vlan members by name, id, range or all. VyOS: a bridge member’s native-vlan.
switchport trunk allowed vlan 10,20SupportedSupportedPartialTrunk filtering. VyOS: a bridge member’s allowed-vlan.
set vlans USERS vlan-id 10n/aSupportedn/aJunos commit creates canonical VLAN entry.
set interfaces ge-0/0/0 unit 0 family ethernet-switching interface-mode accessn/aSupportedn/aJunos access mode.
set interfaces ge-0/0/1 unit 0 family ethernet-switching interface-mode trunkn/aSupportedn/aJunos trunk mode.
set interfaces ge-0/0/1 native-vlan-id 10n/aSupportedn/aJunos native VLAN.
set switch-options voip interface IF vlan Vn/aSupportedn/aJunos voice VLAN; access-ports means every access port.
show vlan briefSupportedPartialPartialVLAN membership view.
show interfaces trunkSupportedPartialPartialTrunk state view.

Switching decisions use VLAN as part of the bridge-domain key. MAC learning in VLAN 10 never satisfies forwarding in VLAN 20.

At a Q-in-Q customer edge the customer’s own tag becomes the inner tag. Two customers on the same customer VLAN stay apart.

Canonical example
configure terminal
vlan 10
name USERS
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
interface GigabitEthernet0/24
switchport mode trunk
switchport trunk allowed vlan 10,20
end
show vlan brief

Vendor styles

IOS-style
vlan 10
name USERS
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
Junos-style
set vlans USERS vlan-id 10
set interfaces ge-0/0/1 unit 0 family ethernet-switching interface-mode access
set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members USERS
VyOS-style
set interfaces ethernet eth1 vif 10 description USERS
set interfaces ethernet eth1 vif 10 address 10.0.10.1/24

Private VLANs and vendor-specific VLAN database file behaviour are not modelled.