Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I think you're looking for the 'range' command after 'interface':For instance to set ports 2/1 through 10 to vlan 55, run the followingswitch(config)# interface range fa 2/1 - 10switch(config-if-range)# switchport mode accessswitch(config-if-range)# ...