1. An information processing apparatus comprising: a storing unit that stores therein first association information, in which address information on a device connected to a port is associated with information indicating a logical network to which the device belongs, and second association information, in which information indicating the port is associated with the information indicating the logical network to which the device connected to the port belongs; and a transferring unit that receives data containing address information on a transmission source device, that specifies, when the address information on the transmission source device matches the address information indicated by the first association information, the logical network that is indicated by the first association information and is associated with the matched address information, that specifies, when the specified logical network matches the logical network indicated by the second association information, the port that is indicated by the second association information and is associated with the matched logical network, and that transfers the data to the specified port.