Patent ID: 7496052

Claim:
In a network connected device, a method for VLAN ID (Virtual Local Area Network Identifier) discovery for Ethernet ports comprising: generating a series of request packets from a host device, wherein said generating said series of request packets includes: opening a network interface between said host device and a network switch supporting at least one VLAN identified by a unique VLAN ID out of a plurality of different possible VLAN IDs previously stored in said host device; in response to said opening said network interface, automatically generating each said request packet containing a destination ID of a network gateway/DHCP (Dynamic Host Configuration Protocol) server accessible via a connected network through said network switch; and encoding within said generated request packet said unique VLAN ID; issuing said series of generated request packets to said network switch, wherein each said request packet requests a response from said network switch indicating whether a VLAN associated with said unique VLAN ID encoded within each said request packet is supported by said network switch; receiving a response packet from said network switch; determining from a response ID associated with said received response packet whether a VLAN having a corresponding VLAN ID is supported by the network switch, wherein said determining includes: parsing a header of the response packet for the associated ID; and matching the associated response ID to a corresponding VLAN ID within said plurality of VLAN IDs previously stored in said host device; storing the corresponding VLAN ID matching the associated response ID within a storage location, wherein said storage location is utilized for selecting VLAN IDs of supported VLANs for encoding within data packets being generated at the host device; and subsequent to storing within said storage location the corresponding VLAN ID matching the associated response ID, issuing data packets to only those VLANs that are supported within the network switch, wherein said issuing includes: generating a data packet; and encoding a VLAN ID register within the data packet with one of said VLAN IDs from among multiple VLAN IDs stored within the storage location.