Help Center > > FAQs> Network Configurations> Others> How Can I Obtain the MAC Address of My ECS?

How Can I Obtain the MAC Address of My ECS?

Updated at:Sep 10, 2020 GMT+08:00

This section describes how to obtain the MAC address of an ECS.

The MAC address of an ECS cannot be changed.

Linux (CentOS 6)

  1. Log in to the Linux ECS.
  2. Run the following command to view the MAC address of the ECS:

    ifconfig

    Figure 1 Obtaining the MAC address

Linux (CentOS 7)

  1. Log in to the Linux ECS.
  2. Run the following command to view the MAC address of the ECS:

    ifconfig

    Figure 2 Obtaining the NIC information
  3. Run the following command to view the MAC address of NIC eth0:

    ifconfig eth0 |egrep "ether"

    Figure 3 Obtaining the MAC address of eth0
  4. Obtain the returned MAC address.

    ifconfig eth0 |egrep "ether" |awk '{print $2}'

    Figure 4 Obtaining the MAC address of eth0

Windows

  1. Press Win+R to start the Run text box.
  2. Enter cmd and click OK.
  3. Run the following command to view the MAC address of the ECS:

    ipconfig /all

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel