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.
to convert a layer 3 port to a layer 2 Port on a switch, you can use the below command and check.switchportor if you want to use switch as L2 and not L3 you should disable the routing ie. "no ip routing". command on switch