-   Linux - Newbie (
-   -   How to set statick MAC address to my device? (

david_8274 09-06-2016 06:14 PM

How to set statick MAC address to my device?

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
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)

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

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.

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