C
HAPTER
36
| VLAN Commands
Configuring MAC Based VLANs
– 1159 –
show subnet-vlan 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 VLAN ID Priority
--------------- --------------- ------- --------
192.168.12.0 255.255.255.128 1 0
192.168.12.128 255.255.255.192 3 0
192.168.12.192 255.255.255.224 4 0
192.168.12.224 255.255.255.240 5 0
192.168.12.240 255.255.255.248 6 0
192.168.12.248 255.255.255.252 7 0
192.168.12.252 255.255.255.254 8 0
192.168.12.254 255.255.255.255 9 0
192.168.12.255 255.255.255.255 10 0
Console#
CONFIGURING MAC BASED VLANS
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 143: MAC Based VLAN Commands
Command Function Mode
mac-vlan Defines the IP Subnet VLANs GC
show mac-vlan Displays IP Subnet VLAN settings PE