• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Old Debian on new plug and wrong mac address  (Read 3092 times)
hr.punio
Newbie
*

Karma: 0
Posts: 26


View Profile
« on: September 05, 2012, 07:28:36 AM »

Hello,
I  installed Debian on one plug on now I run it on another one. It works perfectly, but
mac address is wrong (seems it is assigned to the address of the previous device).
How to update mac address to the correct value?

--tomek
Logged

pacolm
Full Member
***

Karma: 1
Posts: 102


View Profile
« Reply #1 on: September 05, 2012, 07:42:18 AM »

Uboot, look for something like:

Code:
ethaddr=00:50:43:f0:2a:2a

Put the correct value using:

Code:
setenv ethaddr XX:XX:XX:XX:XX:XX
saveenv
reset
Hope it helps!
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 443


View Profile WWW
« Reply #2 on: September 05, 2012, 12:20:48 PM »

Hello,
I  installed Debian on one plug on now I run it on another one. It works perfectly, but
mac address is wrong (seems it is assigned to the address of the previous device).
How to update mac address to the correct value?
You can set the MAC address either in the U-boot environment ("hardware) or in Debian "(software").  So it depends on what you have copied.
In Debian you would set it with a "hardware ether" line in the /etc/network/interfaces file.
Of course, it's also possible to hardware ARP table entries as well, so if none of this fixes things you'll need to expand on what you mean by "it is assigned to the address of the previous device").
Logged

hr.punio
Newbie
*

Karma: 0
Posts: 26


View Profile
« Reply #3 on: September 05, 2012, 11:40:00 PM »

thanks for the explanation

--tomek
Logged

odoll
Full Member
***

Karma: 0
Posts: 148


View Profile
« Reply #4 on: September 06, 2012, 08:39:00 AM »

After changing the MAC in U-Boot please also check  /etc/udev/rules.d/70-persistent-net.rules and verify that no spurious mac addresses appear there
Logged

Pages: [1]
Print
Jump to: