A method and apparatus for automatically configuring a physical port of a switch with features appropriate to a connection type snoops incoming packets to determine the connection type and executes a port configuration macro installed on the switch to apply appropriate features for the connection type.