Chapter 36: VLAN Commands
Configuring MAC Based VLANs
– 1113 –
D
EFAULT
S
ETTING
None
C
OMMAND
M
ODE
Global Configuration
C
OMMAND
U
SAGE
•
The MAC-to-VLAN mapping applies to all ports on the switch.
•
Source MAC addresses can be mapped to only one VLAN ID.
•
Configured MAC addresses cannot be broadcast or multicast addresses.
•
When MAC-based, IP subnet-based, and protocol-based VLANs are
supported concurrently, priority is applied in this sequence, and then
port-based VLANs last.
•
The binary equivalent mask matching the characters in the front of the
first non-zero character must all be 1s (e.g., 111, i.e., it cannot be 101
or 001...). A mask for the MAC address: 00-50-6e-00-5f-b1 translated
into binary:
MAC: 00000000-01010000-01101110-00000000-01011111-10110001
could be: 11111111-11xxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx
So the mask in hexadecimal for this example could be:
ff-fx-xx-xx-xx-xx/ff-c0-00-00-00-00/ff-e0-00-00-00-00
E
XAMPLE
The following example assigns traffic from source MAC address 00-00-00-
11-22-33 to VLAN 10.
Console(config)#mac-vlan mac-address 00-00-00-11-22-33 vlan 10
Console(config)#
show mac-vlan
This command displays MAC address-to-VLAN assignments.
C
OMMAND
M
ODE
Privileged Exec
C
OMMAND
U
SAGE
Use this command to display MAC address-to-VLAN mappings.
E
XAMPLE
The following example displays all configured MAC address-based VLANs.
Console#show mac-vlan
MAC Address VLAN ID Priority
Содержание SSE-G2252
Страница 42: ...44 General IP Routing on page 627...
Страница 174: ...Chapter 6 VLAN Configuration Configuring VLAN Mirroring 178 Figure 6 27 Showing the VLANs to Mirror...
Страница 511: ...Chapter 14 Basic Administration Protocols UDLD Configuration 518 Figure 14 100 Displaying UDLD Neighbor Information...
Страница 603: ...Chapter 16 IP Configuration Setting the Switch s IP Address IP Version 6 609...
Страница 883: ...Chapter 24 General Security Measures Port based Traffic Segmentation 894...
Страница 989: ...Chapter 30 Congestion Control Commands Automatic Traffic Control Commands 1000 Console...
Страница 1007: ...Chapter 33 Address Table Commands 1019...
Страница 1137: ...Chapter 38 Quality of Service Commands 1150...
Страница 1366: ...Chapter 46 IP Routing Commands Global Routing Configuration 1381 Connected 2 Total 2 FIB 0 Console...