mac-address (Ethernet)
To set the MAC layer address of an Ethernet interface, use the
mac-address
command in interface configuration
mode. To return the device to its default MAC address, use the
no
form of this command.
mac-address value1.value2.value3
no mac-address
Syntax Description
High 2 bytes of the MAC address in hexadecimal format. Range is from 0 to ffff.
value1.
Middle 2 bytes of the MAC address in hexadecimal. Range is from 0 to ffff.
value2.
Low 2 bytes of the MAC address in hexadecimal. Range is from 0 to ffff.
value3
Command Default
The default MAC address is read from the hardware burned-in address (BIA).
Command Modes
Interface configuration
Command History
Modification
Release
This command was first introduced.
Release 3.7.2
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
The MAC address must be in the form of three 4-digit values (12 digits in dotted decimal notation).
The
mac-address
command is available for all types of line card Ethernet interfaces (Gigabit Ethernet,
10-Gigabit Ethernet) and for the Management Ethernet interface.
Task ID
Operations
Task ID
read, write
interface
Examples
This example shows how to set the MAC address of a Ten Gigabit Ethernet interface located at 0/3/0/0:
RP/0/RSP0/CPU0:router(config)#
interface TenGigE 0/1/0/0
Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Command Reference,
Release 5.3.x
101
Ethernet Interface Commands on the Cisco ASR 9000 Series Router
mac-address (Ethernet)