Today I needed to locate a workstation and reassign it to a different vlan. Because this location had two routers and two switches I had to do some Sherlock Homes detective work.
From router 1 “show arp | include .135″ – This command allowed me to view the mac addresses of any devices that contained 135 in the IP Address.
From switch 1 “show mac-address-table | include 0000.1111.AAAA” – Allowed me to see what interface the device was connected to. In this case it ended up being interface 01
From switch 1 “show mac-address-table interface fastEthernet 0/01” – Allowed me to see what device was connected to that interface. Multiple devices where listed to that interface, meaning a switch was connected to that port and the device I am looking for is behind that switch.
From switch 2 “show mac-address-table | include 0000.1111.AAAA” – Allowed me to see what interface the device was connected to. Turns out to be interface 02
From switch 2 “show mac-address-table interface fa0/02” –Confirm that only a phone and workstation were attached to that interface.
From switch 2 “show interfaces status” Returns port, description, vlan, & interface status information.
From switch 2 “configure terminal” and assigned the VLAN information using commands
“switchport access vlan 999” to assign non-trunking devices to vlan 999
“ switchport trunk native vlan 999” to inform trunking devices to assign vlan 999 to non-trunking devices behind it.
“description computername” to leave a description on the interface
“Shut” and “No Shut” on the interface to reboot the phone and workstation.
“show running-config interface fastEthernet 0/2” to view interface configuration.