MAC-Based VLAN

Network Diagram

Figure 2 Network diagram for MAC-based VLAN configuration


Network Requirements

l          As shown in Figure 2, GigabitEthernet 1/0/1 of Switch A and GigabitEthernet 1/0/1 of Switch B are each connected to a meeting room. Laptop 1 and Laptop 2 are used for meeting and each of them may be used in any of the two meeting rooms.
l          Laptop 1 and Laptop 2 are owned by different departments. The two departments use VLAN 100 and VLAN 200 respectively. It is required that each Laptop could access only its corresponding server regardless of the meeting room it is used in.
l          The MAC address of Laptop 1 is 000d-88f8-4e71, and that of Laptop 2 is 0014-222c-aa69.

Configuration Example

l          Configuration on Switch A
#
 mac-vlan mac-address 000d-88f8-4e71 vlan 100 priority 0
 mac-vlan mac-address 0014-222c-aa69 vlan 200 priority 0
#
vlan 100
#
vlan 200
#
#
interface GigabitEthernet1/0/1
 port link-type hybrid
 port hybrid vlan 1 100 200 untagged
 mac-vlan enable
#
interface GigabitEthernet1/0/2
 port link-type trunk
 port trunk permit vlan 1 100 200
The configuration on Switch B is the same as that on Switch A.
l          Configuration on Core Switch
#
vlan 100
#
vlan 200
#
interface GigabitEthernet1/0/3
 port link-type trunk
 port trunk permit vlan 1 100 200
#
interface GigabitEthernet1/0/4
 port link-type trunk
 port trunk permit vlan 1 100 200
#
interface GigabitEthernet1/0/13
 port access vlan 100
#
interface GigabitEthernet1/0/14
 port access vlan 200         

Comments

Popular posts from this blog

How To Add Print Button to Blogger Posts

INSTALL CISCO VPN CLIENT ON WINDOWS 10 (32 & 64 BIT). FIX REASON 442