A method, for use by a learning internetwork switch, for performing proxy forwarding between a first device on a first virtual local area network and a second device on a second virtual local area network, where the first virtual local area network and the second virtual local area network are locally attached to the learning internetwork switch, the method comprising:
- receiving a packet from the first device that specifies a network layer destination address and a data link layer destination address, wherein the specified network layer destination address is a network layer address associated with the second device and the data link layer destination address is a data link layer address associated with a first port of a router connected to the learning internetwork switch;
- performing a lookup operation to determine a data link layer address associated with the second device;
- if the data link layer address associated with the second device is found during the lookup operation, then
- changing the data link layer destination address specified in the packet to the data link layer address associated with the second device, and
- forwarding the packet to the second device over the second virtual local area network.