configure switch mac-addressNEW!

configure switch mac-address [mac_address | factory]

Description

Configures an alternate MAC address.

Syntax Description

mac-address Specifies configuring System MAC to a desired value, or the factory-assigned Universally Administered Address.
mac_addressSpecifies the unique MAC address to use for switch operations.
factorySpecifies to restore System MAC to the factory-assigned Universally Administered Address (default).

Usage Guidelines

This command enables you to set a new MAC address that differs from the original one stored in the Electrically Erasable Programmable Read-Only Memory (EEPROM). The alternate MAC address is saved in a persistent "well-known info" database, which is used by the operating system for switch management tasks. When restarting, the operating system detects if an alternate MAC address has been configured. If it has, the operating system overwrites the factory MAC address.

This feature is only applicable to standalone switches and does not support switch stacks.

You cannot configure a Locally Administered Address (LAA) as the alternate MAC address.

You cannot configure multicast MAC addresses as the alternate MAC address.

Example

The following example configures the MAC address `E4:DB:AE:6D:70:01`:

# configure switch mac-address E4:DB:AE:6D:70:01
Warning: This command will cause the switch to use the specified MAC address for all switch operations, including management, protocols, security, policies and
layer-3 routing.  The specified MAC address MUST be unique within its operable
layer-2 domain to avoid network impact.
Do you want to continue? (y/N) Yes
This command will take effect at the next reboot

History

This command was first available in version 32.1.

Platform Availability

This command is available on all Universal switches supported in this document.