hi, anyone knows the appropriate command for switch 2960 to show which vlan is assigned to which port ?
there sould be a command like show vlan-membership but it didn't work on 2960 oe 3750 !!
Thank you Elvin, but that command shows all the vlans which my device have learnt from VTP server (as my device is VTP client), I mean a show command to just show the ports which they were assigned to a VLAN I mean switchports not all of the ports and all VLANS !
Yes, as Vijay wrote the "show vlan id XVLAN" can show you the exact VLAN and port associated to that specific VLAN including not only access ports, but trunks as well.
The command that Elvin mentioned should show you what local ports have been assigned to a particular VLAN. The trunk ports are not included in that output. You can also use "sh int switchport | i Name|Access".