Each stack must use a single MAC address. When the master node fails over to the backup node, the backup node must continue to use the same MAC address that the master node was using.
Each stackable switch is assigned a single unique MAC address during production. By default, no stack MAC address is configured. You can choose any node to supply its factory assigned MAC address to form the stack MAC address.
Note
This task is not necessary when you configure the stack using Easy Setup. With Easy Setup, the MAC address is assigned by default.When you assign a MAC address to a stack, one of the stackable switches is designated as the node whose factory-assigned MAC address is used to form the stack MAC address. Once this is done, all nodes receive and store this formed MAC address in their own NVRAM. Whenever the stack boots up, this MAC address is used, regardless of which node is the master.
When new nodes are added to the stack, the new nodes must be configured with the stack MAC address. The easiest way to do this is to use the synchronize stacking {node-address node_address | slot slot_number} command.
Before being stored as the stack MAC address, the chosen node‘s factory-assigned MAC address is converted to a locally administered MAC address. This prevents duplicate MAC address problems which lead to dual master conditions. The chosen MAC address is put into effect only at node boot time. If the address needs to be changed on a single node, rebooting that node results in usage of the same address stack-wide.
If you do not configure the stack MAC address or it is not the same on all nodes, a warning message appears in the log.
Note
If the node whose MAC address is chosen was removed from the stack with the intention of using the node elsewhere in the network, and that node is selected to supply the stack MAC in its new stack, the stack MAC of the original stack must be reconfigured to prevent a duplicate MAC address in the network.To assign a MAC address to a stack, follow these steps.
Slot-1 stack.3 # show stacking configuration Stack MAC in use: 00:04:96:26:6a:f1 Node Slot Alternate Alternate MAC Address Cfg Cur Prio Mgmt IP / Mask Gateway Flags Lic ------------------ --- --- ---- ------------------ --------------- --------- --- *00:04:96:26:6a:f1 1 1 11 10.127.4.131/24 10.127.4.254 CcEeMm--- Aa 00:04:96:26:6c:93 2 2 Auto 10.127.4.132/24 10.127.4.254 CcEeMm--- Aa 00:04:96:27:c8:c7 3 3 Auto 10.127.4.133/24 10.127.4.254 CcEeMm--- Aa 00:04:96:26:5f:4f 4 4 4 10.127.4.139/24 10.127.4.254 CcEeMm--- Aa 00:04:96:1f:a5:43 5 5 Auto 10.127.4.135/24 10.127.4.254 CcEeMm--- Aa 00:04:96:28:01:8f 6 6 6 10.127.4.136/24 10.127.4.254 CcEeMm--- Aa 00:04:96:20:b2:5c 7 7 Auto 10.127.4.137/24 10.127.4.254 CcEeMm--- Aa 00:04:96:26:6c:92 8 8 Auto 10.127.4.138/24 10.127.4.254 CcEeMm--- Aa * - Indicates this node Flags: (C) master-Capable in use, (c) master-capable is configured, (E) Stacking is currently Enabled, (e) Stacking is configured Enabled, (M) Stack MAC in use, (m) Stack MACs configured and in use are the same, (N) Stack link protocol Enhanced in use, (n) Stack link protocol Enhanced configured, (i) Stack MACs configured and in use are not the same or unknown, (-) Not in use or not configured License level restrictions: (C) Core, (A) Advanced edge, or (E) Edge in use, (c) Core, (a) Advanced edge, or (e) Edge configured, (-) Not in use or not configured
For example:
Slot-1 stack.43 # configure stacking mac-address This command will take effect at the next reboot of the specified node(s).
If you enter the show stacking command now, the stack MAC flags show --i, indicating that the stack MAC is configured but is not in use. After you restart the stack, the i disappears from the Flags column.
Slot-1 stack.43 # configure stacking slot 2 mac-address This command will take effect at the next reboot of the specified node(s).
Slot-1 stack.3 # show stacking configuration Stack MAC in use: 00:04:96:26:6a:f1 Node Slot Alternate Alternate MAC Address Cfg Cur Prio Mgmt IP / Mask Gateway Flags Lic ------------------ --- --- ---- ------------------ --------------- --------- --- *00:04:96:26:6a:f1 1 1 11 10.127.4.131/24 10.127.4.254 CcEeMm--- Aa 00:04:96:26:6c:93 2 2 Auto 10.127.4.132/24 10.127.4.254 CcEeMm--- Aa 00:04:96:27:c8:c7 3 3 Auto 10.127.4.133/24 10.127.4.254 CcEeMm--- Aa 00:04:96:26:5f:4f 4 4 4 10.127.4.139/24 10.127.4.254 CcEeMm--- Aa 00:04:96:1f:a5:43 5 5 Auto 10.127.4.135/24 10.127.4.254 CcEeMm--- Aa 00:04:96:28:01:8f 6 6 6 10.127.4.136/24 10.127.4.254 CcEeMm--- Aa 00:04:96:20:b2:5c 7 7 Auto 10.127.4.137/24 10.127.4.254 CcEeMm--- Aa 00:04:96:26:6c:92 8 8 Auto 10.127.4.138/24 10.127.4.254 CcEeMm--- Aa * - Indicates this node Flags: (C) master-Capable in use, (c) master-capable is configured, (E) Stacking is currently Enabled, (e) Stacking is configured Enabled, (M) Stack MAC in use, (m) Stack MACs configured and in use are the same, (N) Stack link protocol Enhanced in use, (n) Stack link protocol Enhanced configured, (i) Stack MACs configured and in use are not the same or unknown, (-) Not in use or not configured License level restrictions: (C) Core, (A) Advanced edge, or (E) Edge in use, (c) Core, (a) Advanced edge, or (e) Edge configured, (-) Not in use or not configured