主权项 |
1. A method comprising:
receiving, by a network device, a first message from a first device,
the first device being associated with a particular virtual media access control (VMAC) address; determining, by the network device, that no other message has been received, prior to the first message, from any device associated with the particular VMAC address; assigning, by the network device, the first device to a first virtual local area network (VLAN) based on the first message and based on determining that no other message has been received, prior to the first message, from any device associated with the particular VMAC address; receiving, by the network device, a second message from a second device,
the second device being associated with the particular VMAC address; determining, by the network device, that the first device is already assigned to the first VLAN; assigning, by the network device, the second device to a second VLAN based on the second message and based on determining that the first device is already assigned to the first VLAN; detecting, by the network device, a failure of the first device; and reassigning, by the network device, the second device from the second VLAN to the first VLAN based on detecting the failure of the first device. |