LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2016, 06:14 PM   #1
david_8274
Member
 
Registered: Jun 2013
Location: California
Distribution: Ubuntu, Fedora
Posts: 75

Rep: Reputation: Disabled
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
 
Old 09-06-2016, 07:27 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
MAC address is static by default. You need to take extra steps to randomize it.
 
Old 09-06-2016, 09:21 PM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,847

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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.
 
1 members found this post helpful.
Old 09-06-2016, 10:15 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,442

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot set mac address with qemu insectiod Linux - Virtualization and Cloud 3 01-12-2014 11:07 PM
device eth0 has different mac address x201s Linux - Networking 9 11-20-2012 12:28 PM
Help: MAC address issue: what I see in Linux is not what is programmed in device emichaud1968 Linux - Hardware 1 11-26-2010 12:17 PM
Get the MAC address in Linux Device Driver saurin Programming 1 12-10-2009 10:05 PM
Set MAC/HW Address in /etc/rc.d/rc.inet1.conf? TotalDefiance Slackware 6 09-29-2005 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration