摘要:
A method of automatically determining an attached device type for a multi-port LAN switch, and configuring the port based on the attached device type is provided. The method comprises setting a LAN switch port to a port mode, and determining, during a first period of time, whether an attached device is attempting to insert at the LAN switch port. If the attached device is attempting to insert during this first period of time, the method continues by configuring the LAN switch port in the port mode. If the attached device is not attempting to insert during the first period of time, the method continue by setting the LAN switch port in an adapter mode, transmitting a test frame to the attached device, and then determining, during a second period of time, whether a response frame is received from the attached device. If a response frame is received during the second period of time, the method further includes configuring the LAN switch port in the adapter mode.