Chapter 21
| VLAN Commands
Configuring MAC Based VLANs
show subnet-vlan
Configuring MAC Based VLANs
This command displays IP Subnet VLAN assignments.
Command Mode
Privileged Exec
Command Usage
◆
Use this command to display subnet-to-VLAN mappings.
◆
The last matched entry is used if more than one entry can be matched.
Example
The following example displays all configured IP subnet-based VLANs.
Console#show subnet-vlan
IP Address
Mask
---------------
---------------
192.168.12.0
255.255.255.128
192.168.12.128
255.255.255.192
192.168.12.192
255.255.255.224
192.168.12.224
255.255.255.240
192.168.12.240
255.255.255.248
192.168.12.248
255.255.255.252
192.168.12.252
255.255.255.254
192.168.12.254
255.255.255.255
192.168.12.255
255.255.255.255
Console#
When using IEEE 802.1Q port-based VLAN classification, all untagged frames
received by a port are classified as belonging to the VLAN whose VID (PVID) is
associated with that port.
When MAC-based VLAN classification is enabled, the source address of untagged
ingress frames are checked against the MAC address-to-VLAN mapping table. If an
entry is found for that address, these frames are assigned to the VLAN indicated in
the entry. If no MAC address is matched, the untagged frames are classified as
belonging to the receiving port's VLAN ID (PVID).
Table 114: MAC Based VLAN Commands
Command
mac-vlan
show mac-vlan
VLAN ID
Priority
-------
--------
1
3
4
5
6
7
8
9
10
Function
Defines the IP Subnet VLANs
Displays IP Subnet VLAN settings
– 610 –
0
0
0
0
0
0
0
0
0
Mode
GC
PE