Patent ID: 8432910

Claim:
A packet transfer apparatus comprising: a first table including network addresses, each of the network addresses being arranged according to a priority which is indicated by a subnet-mask of a destination IP address; a second table including type information, virtual LAN identification information, address information and output port information, for each entry, the type information indicating a type of a MAC address or an IP address, the virtual LAN identification information identifying an Virtual LAN, the address information including a MAC address or an IP address, the output port information indicating an output port; a first determination section to search for a network address matching a network address of a destination IP address, when included in an input packet, by referring to the first table; a second determination section to perform a full-width search of the second table, after the first determination section searches for the network address, using the type information, the virtual LAN identification information and the network address as search keys so as to determine an output port corresponding to the network address; and when the destination IP address is not included in the input packet, the second determination performs a full-width search of the second table using the type information, the virtual LAN identification information and a MAC address included in the input packet as search keys so as to determine an output port corresponding to the MAC address.