Assign a MAC to a specific VLAN Cisco IOS

Posted on 2006-06-02
Last Modified: 2013-11-13
     I have a catalyst 4507R and I need to assign a MAC address to a different VLAN.  How can I do that?

Question by:sean-keys
    LVL 3

    Expert Comment

    to create vlans based on mac address of the network devices followin command can bve used on cisco switches

    (config)# mac-address-table static MAC_address vlan VLAN_#
    interface type module/port_#

    Besides specifying the MAC address of the device, and the interface where the device is located, you must also specify the VLAN that the device is located in.


    Author Comment

    Can I assign by MAC only, that way if the device gets plugged into a different port it will still be part of the same vlan?
    LVL 3

    Accepted Solution

    Yes you can do that with Dynamic VLAN Membership.
    Refer this article of Cisco,it has shown all the steps of configuration.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Managing 24/7 IT Operations is a hands-on job and indeed a difficult one. Over the years I have found some simple tips and techniques to increase the efficiency of the overall operations. The core concept has always been on continuous improvement; a…
    If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now