CLI Reference Guide-R05

Table Of Contents
Chapter 19
| VLAN Commands
Configuring IP Subnet VLANs
– 556 –
When an untagged frame is received by a port, the source IP address is checked
against the IP subnet-to-VLAN mapping table, and if an entry is found, the
corresponding VLAN ID is assigned to the frame. If no mapping is found, the
PVID of the receiving port is assigned to the frame.
The IP subnet cannot be a broadcast or multicast IP address.
When MAC-based, IP subnet-based, or protocol-based VLANs are supported
concurrently, priority is applied in this sequence, and then port-based VLANs
last.
Example
The following example assigns traffic for the subnet 192.168.12.192, mask
255.255.255.224, to VLAN 4.
Console(config)#subnet-vlan subnet 192.168.12.192 255.255.255.224 vlan 4
Console(config)#
show interfaces
subnet-vlan
This command displays a brief summary of IP Subnet VLAN settings.
Syntax
show interfaces subnet-vlan
Command Mode
Privileged Exec
Example
The following example displays a summary of configured IP subnet-based VLANs.
Console#show interfaces subnet-vlan
Port IP Address Mask
-------- --------------- ---------------
Eth 1/1 192.168.12.0 255.255.255.128
Eth 1/2 192.168.12.128 255.255.255.192
Eth 1/3 192.168.12.192 255.255.255.224
Eth 1/4 192.168.12.224 255.255.255.240
Eth 1/5 192.168.12.240 255.255.255.248
Eth 1/6 192.168.12.248 255.255.255.252
Eth 1/7 192.168.12.252 255.255.255.254
Eth 1/8 192.168.12.254 255.255.255.255
Eth 1/9 192.168.12.255 255.255.255.255
Console#