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.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| VLAN database | Supported | VLAN 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 ports | Supported | Untagged ingress maps into the configured access VLAN. |
| 802.1Q trunks | Supported | Allowed VLAN lists and native VLAN behaviour. |
| SVIs | Supported | VLAN 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) | Supported | dot1q-tunnel ports carry the customer’s tag inside a provider S-tag. |
| Voice VLAN | Supported | switchport voice vlan adds the voice VLAN to a phone port. |
| DTP | Behaviour model | Dynamic modes negotiate trunk or access; DTP frames are on the wire in a capture (Packet Lens), decoded by Wireshark. |
| Private VLANs | Not modelled | Out of scope today. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| IEEE 802.1Q | Supported | Tagged/untagged VLAN forwarding and trunk membership. Tags are on the wire in a capture. |
| IEEE 802.1ad | Supported | Q-in-Q: S-tag (0x88a8) outside the C-tag. |
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
vlan <id> | Supported | Creates VLAN. |
| VLAN name | Supported | Metadata / config emission. |
switchport mode access | Supported | Access VLAN behaviour. |
switchport access vlan <id> | Supported | Assigns access VLAN. |
switchport mode trunk | Supported | Enables trunk behaviour. |
switchport trunk allowed vlan | Supported | Filters tagged VLANs. |
| Native VLAN | Supported | Untagged trunk traffic maps to native VLAN. |
| SVI | Supported | interface 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-tunnel | Supported | Q-in-Q customer edge; show dot1q-tunnel. |
switchport voice vlan <id> | Supported | Data VLAN plus voice VLAN on one port. |
Vendor command matrix
Section titled “Vendor command matrix”| Command | IOS-style | Junos-style | VyOS-style | Notes |
|---|---|---|---|---|
vlan 10 | Supported | Supported | Partial | VLAN definition. Junos: set vlans NAME vlan-id N. |
switchport access vlan 10 | Supported | Supported | Partial | Access membership. Junos: vlan members by name, id, range or all. VyOS: a bridge member’s native-vlan. |
switchport trunk allowed vlan 10,20 | Supported | Supported | Partial | Trunk filtering. VyOS: a bridge member’s allowed-vlan. |
set vlans USERS vlan-id 10 | n/a | Supported | n/a | Junos commit creates canonical VLAN entry. |
set interfaces ge-0/0/0 unit 0 family ethernet-switching interface-mode access | n/a | Supported | n/a | Junos access mode. |
set interfaces ge-0/0/1 unit 0 family ethernet-switching interface-mode trunk | n/a | Supported | n/a | Junos trunk mode. |
set interfaces ge-0/0/1 native-vlan-id 10 | n/a | Supported | n/a | Junos native VLAN. |
set switch-options voip interface IF vlan V | n/a | Supported | n/a | Junos voice VLAN; access-ports means every access port. |
show vlan brief | Supported | Partial | Partial | VLAN membership view. |
show interfaces trunk | Supported | Partial | Partial | Trunk state view. |
Behaviour notes
Section titled “Behaviour notes”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.
Examples
Section titled “Examples”Canonical example
configure terminalvlan 10 name USERSinterface GigabitEthernet0/1 switchport mode access switchport access vlan 10interface GigabitEthernet0/24 switchport mode trunk switchport trunk allowed vlan 10,20endshow vlan briefVendor styles
IOS-style
vlan 10 name USERSinterface GigabitEthernet0/1 switchport mode access switchport access vlan 10Junos-style
set vlans USERS vlan-id 10set interfaces ge-0/0/1 unit 0 family ethernet-switching interface-mode accessset interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members USERSVyOS-style
set interfaces ethernet eth1 vif 10 description USERSset interfaces ethernet eth1 vif 10 address 10.0.10.1/24Try it
Section titled “Try it”Known limits
Section titled “Known limits”Private VLANs and vendor-specific VLAN database file behaviour are not modelled.