| CPC H04L 12/4633 (2013.01) [H04L 12/4641 (2013.01); H04L 45/64 (2013.01)] | 20 Claims |

|
1. A method comprising:
operating a switch as a tunnel endpoint for a plurality of tunnels with corresponding remote endpoints;
determining, by the switch, a first tunnel network identifier (TNI) identifying a first virtual local area network (VLAN) configured at the switch, and a second TNI identifying a second VLAN configured at the switch;
enabling, by the switch, the first TNI for a first tunnel of the plurality of tunnels for carrying traffic of the first VLAN, and disabling the second TNI for the first tunnel to block traffic of the second VLAN over the first tunnel to prevent looping of traffic of the second VLAN back to the switch;
maintaining, by the switch, a first data structure associated with the first tunnel and containing the first TNI, the second TNI, and information identifying the first TNI as enabled for the first tunnel and the second TNI as disabled for the first tunnel, the information identifying the first TNI as enabled for the first tunnel comprising an active indication;
selecting, by the switch, a second tunnel as a standby tunnel for the first TNI from a remainder of the plurality of tunnels; and
based on detecting unavailability of the first tunnel, enabling, by the switch, the first TNI for the second tunnel to allow traffic of the first VLAN over the second tunnel, the enabling of the first TNI for the second tunnel comprising setting, in a second data structure associated with the second tunnel and containing the first TNI, an active indication specifying the first TNI as enabled for the second tunnel.
|