Command Line Interface
4-332
4
Example
The following example displays all configured IP subnet-based VLANs.
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).
mac-vlan
This command configures MAC address-to-VLAN mapping. Use the
no
form to
remove an assignment.
Syntax
mac-vlan
mac-address
mac-address
vlan
vlan-id
no mac-vlan mac-address
{
mac-address
|
all
}
•
mac-address
– The source MAC address to be matched. Configured MAC
addresses can only be unicast addresses. The MAC address must be
specified in the format xx-xx-xx-xx-xx-xx or xxxxxxxxxxxx.
•
vlan-id
– VLAN to which the matching source MAC address traffic is
forwarded. (Range: 1-4094)
Default Setting
None
Console#show subnet-vlan
IP address Mask VLAN ID
----------------- ----------------- ---------
192.168.12.0 255.255.255.128 2
192.168.12.128 255.255.255.192 3
192.168.12.192 255.255.255.224 4
192.168.12.224 255.255.255.240 5
192.168.12.240 255.255.255.248 6
192.168.12.248 255.255.255.252 7
192.168.12.252 255.255.255.254 8
192.168.12.254 255.255.255.255 9
192.168.12.255 255.255.255.255 10
Console#
Table 4-84 IP Subnet VLAN Commands
Command
Function
Mode
Page
mac-vlan
Defines the IP Subnet VLANs
GC
4-331
show subnet-vlan
Displays IP Subnet VLAN settings
PE
4-331
Summary of Contents for 6152PL2 FICHE
Page 2: ......
Page 6: ...vi ...
Page 8: ...viii ...
Page 32: ...Tables xxxii ...
Page 38: ...Figures xxxviii ...
Page 56: ...Initial Configuration 2 10 2 ...
Page 378: ...Configuring the Switch 3 322 3 ...
Page 817: ......