interfaces dataplane <interface-name> mac <mac-addr>
Sets the MAC address of a data plane interface.
The default MAC address for an interface is the factory-set MAC address.
- interface-name
- The name of a data plane interface. For more information about the supported interface name formats, refer to Data Plane Interface.
- mac-addr
- A MAC address. The format of the address is six 8-bit numbers, separated by colons, in hexadecimal; for example, 00:0a:59:9a:f2:ba.
Configuration mode
interfaces {
dataplane interface-name {
mac mac-addr
}
}
Use this command to set the media access control (MAC) address of a data plane interface.
Some data plane interfaces provide the ability to change their MAC addresses. This command allows you to change the MAC addresses of these interfaces.
Use the set form of this command to set the MAC address of an interface.
Use the delete form of this command to delete the MAC address of an interface, restoring the factory-assigned MAC address.