Does anyone know if this can be done to a workstation? I know phones can be done through option codes, but I think those codes are vendor specific. Is there an option that anyone knows of that will assign a workstation to a vlan?
You need to configure dot1x authentication on the switch.
When the workstation connects to the switchport it will ask for authentication and on successfull authentication it will put in a particular vlan and on auth fail onto a different vlan.
There are 2 options that i know of
1) VMPS (Vlan Membership Policy Server) where you set up a database of workstation mac-addresses to vlan mappings. Very time consuming and i'm not aware of that many people using it. Old technology to a large extent replacd by
2) 802.1x - you can authenticate users/machines on the switches and do a dynamic vlan assignment based on their credentials. You need a AAA server and it again it is not something you configure in a couple of minutes :-)
I'm not aware of a way to do it via DHCP but others may know.