How to Configure Access in VLAN Dynamic Mode

Save

Dynamic Virtual Local Area Network (VLAN) mode allows a switch to automatically configure a port for a specific VLAN, based on the MAC address of the device connecting to the switch. This is in contrast to static VLAN mode, where a network administrator must configure each port on a switch individually for VLAN access. Dynamic VLAN mode depends on the proper setup of a VLAN Management Policy Server (VMPS), a Cisco-proprietary protocol that can run on either a switch or a separate Linux-based server.

Things You'll Need

  • Cisco IOS switch
  • VMPS server
  • Computer
  • Console cable
  • Connect to the switch using either the console cable or a telnet connection. The console cable connection must have flow control set to “none,” baud rate to “9600,” data bits to “8” and parity to “1.” Telnet connections require only that your computer be able to reach the management IP address of the switch.

  • Type “ena” and press “enter” to begin enabled mode. Enter the password if prompted and press “enter.”

  • Enter global configuration mode by entering “config t” or “configure terminal.”

  • Type the command “vmps server [IP address] primary” and press “enter.” The “[IP address]” is the address (for example, 192.168.2.1) of a switch or computer storing the VLAN-to-MAC assignment information.

  • Type “interface [interface name]” and press "enter" to begin configuring the first interface. Cisco assigns interface names based on the type of interface, followed by the blade number and then followed by the actual port numbers. For example, fast Ethernet port 24 on a switch with no additional blades would be accessed by typing “interface fa0/24” (without the quotation marks).

  • Type “switchport mode access” and press “enter.” This will place that port into VLAN access mode.

  • Type “switchport access vlan dynamic” and press “enter.” This allows that port to perform dynamic VLAN assignments, based on the MAC address of the device plugged into it.

  • Repeat steps 5 through 7 for each interface you wish to configure for dynamic access.

  • Type “end” and press “enter” to leave global configuration.

  • Type “copy run start” or “copy running-config startup-config” and press “enter” to commit configuration to NVRAM (non-volatile random-access memory).

References

  • Photo Credit Thinkstock/Comstock/Getty Images
Promoted By Zergnet

Comments

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!