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.
Access portsSupportedUntagged ingress maps into the configured access VLAN.
802.1Q trunksSupportedAllowed VLAN lists and native VLAN behaviour.
SVIsSupportedVLAN interfaces can provide routed gateways.
Private VLANsNot modelledOut of scope today.
StandardCoverageNotes
IEEE 802.1QBehaviour modelTagged/untagged VLAN forwarding and trunk membership.
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.
CommandIOS-styleJunos-styleVyOS-styleNotes
vlan 10SupportedPartialPartialVLAN definition.
switchport access vlan 10Supportedn/aPartialAccess membership.
switchport trunk allowed vlan 10,20Supportedn/aPartialTrunk filtering.
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.
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.

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, QinQ, dynamic trunk negotiation fidelity, and vendor-specific VLAN database file behaviour are not modelled.