Hence, network devices in the network, for example host network devices, etc., can reach the distributed IP gateway using the shared MAC address in the shared IP address, where any one of the two network switching devices receiving a packet destined for the shared MAC address and the shared IP address can perform layer 3 switching of the packet to a prescribed gateway.