LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to set statick MAC address to my device? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-statick-mac-address-to-my-device-4175588877/)

david_8274 09-06-2016 06:14 PM

How to set statick MAC address to my device?
 
Hi,

It seems like my device's MAC address changes every time I boot it.

# ifconfig
eth0 Link encap:Ethernet HWaddr 0A:6B:65:14:7A:90
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3983 errors:0 dropped:2050 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:298295 (291.3 KiB) TX bytes:684 (684.0 B)
Interrupt:27

The 'HWaddr' field is different every time.
Is there a way to set a 'static' address so it remains the same after reboot?

Regards,
Wei Xu

Emerson 09-06-2016 07:27 PM

MAC address is static by default. You need to take extra steps to randomize it.

JJJCR 09-06-2016 09:21 PM

Is this a virtual machine or a physical machine?

MAC Address by default is set by the manufacturer unless you are doing some kind of low level programming and making some accidental changes to your MAC address.

jefro 09-06-2016 10:15 PM

I can't find that vendor so I think that yes it should be always the same unless it is a virtual machine.

https://www.vmware.com/support/ws55/...c_address.html


All times are GMT -5. The time now is 11:24 AM.