2 ROUTERS with the SAME mac address

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
the_boink
DD-WRT Novice


Joined: 03 Jan 2016
Posts: 1

PostPosted: Sun Jan 03, 2016 13:26    Post subject: 2 ROUTERS with the SAME mac address Reply with quote
I've flashed 2 routers (DLINK 868L rev B) with the dd-wrt firmware (12-24-2015-r28598/dlink-dir868l-revb/dir868b-webflash.bin)

They now show the exact same mac address in the status page. Causing all kind of problems.

Does anyone why this is, and how to fix this?
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6865
Location: Romerike, Norway

PostPosted: Sun Jan 03, 2016 19:30    Post subject: Reply with quote
Is the MAC addresses the one set in hardware?

You can configure MAC adresses for the bridges under the Setup->Networking Tab.
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Mon Jan 04, 2016 2:57    Post subject: Re: 2 ROUTERS with the SAME mac address Reply with quote
the_boink wrote:


Does anyone why this is, and how to fix this?


You saved the config file from router1 and used it on router2?

_________________
Kernel panic: Aiee, killing interrupt handler!
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Mon Jan 04, 2016 17:37    Post subject: Re: 2 ROUTERS with the SAME mac address Reply with quote
the_boink wrote:
I've flashed 2 routers (DLINK 868L rev B) with the dd-wrt firmware (12-24-2015-r28598/dlink-dir868l-revb/dir868b-webflash.bin)

They now show the exact same mac address in the status page. Causing all kind of problems.

Does anyone why this is, and how to fix this?
This was an upgrade, or after the 'factory-to-ddwrt.bin' I presume? I also presume that the MAC you're seeing does match one of the routers' labels (and the label do not-match each other)? Ie, what LOM said; you applied a backup from one onto the other...

Unless you've flashed the same CFE to both, you just need to either reset the one that's wrong (vs the label) and manually set it up, or just change the appropriate nvram parameters to match the correct addresses; there should be several, but you'd just want to use the same offsets from the base label values.
To check, run this in the Admin->Commands window:
Code:
nvram show|grep mac
Or use telnet/ssh. To fix them:
Code:
nvram set {parameter}={correct value and syntax}
nvram commit && reboot

_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
madman999
DD-WRT Guru


Joined: 11 Jun 2012
Posts: 1042

PostPosted: Mon Jan 04, 2016 17:45    Post subject: Reply with quote
i have the same issue with a pair of Archer C9 that I bought recently. I didn;t copy any configs from one to the other.

I just used the factory to dd-wrt.bin for version 28493 file on both with a reset(probably a mistake) and both come up with a eth0 mac address of 00:90:4C:0E:51:23

On one of the units, I did a nvram set et0macaddr={the address printed on the router} and it fixed eth0 and eth1 but eth2 remained as 00:90:4C:0E:51:23

I;ve never had an issue like this before.

_________________
Please state what make and model router plus the build number and type of DD-WRT you are using. Screen prints and a network diagram can are also helpful. Before you create a new post, use the search function. Chances are your issue has happened to someone else.

Common F.A.Q.
Where can I get the latest test Firmware or older ones?
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/

Asus RT-AC66R on 3.x 28072 Giga
TP-Link Archer C9 on 3.x r54095
madman999
DD-WRT Guru


Joined: 11 Jun 2012
Posts: 1042

PostPosted: Tue Jan 05, 2016 15:15    Post subject: Reply with quote
i often wonder at what point will manufacturers begin to recycle mac addresses since they need to be unique.

the problem this time was some weirdness in how dd-wrt determines or pulls the mac address from the unit and populates the nvram variables. issues caused by differences in routers could be the cause of all the bricked builds lately. all it takes is for some bad variables to make your router inoperable.

the solution for me was to issue the commands

nvram set et0macaddr={the mac address of the router}
nvram commit
reboot

then to fix eth2

nvram set 1:macaddr={the mac address incremented by 2}

to fix br and br:0 go into setup/networking/bridge and set the mac address to the mac address of the router as well

however, this solution was only for my Archer C9. I have a Asus RT-AC66U that doesn;t have these nvram variables. Also for some reason eth0 and eth1 are identical but my Internet works.

_________________
Please state what make and model router plus the build number and type of DD-WRT you are using. Screen prints and a network diagram can are also helpful. Before you create a new post, use the search function. Chances are your issue has happened to someone else.

Common F.A.Q.
Where can I get the latest test Firmware or older ones?
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/

Asus RT-AC66R on 3.x 28072 Giga
TP-Link Archer C9 on 3.x r54095
<Kong>
DD-WRT Guru


Joined: 15 Dec 2010
Posts: 4339
Location: Germany

PostPosted: Tue Jan 05, 2016 16:39    Post subject: Reply with quote
If you used reset and the macs are still the same, then it is probably a problem with the extracted macs.
In the nit code for the 880 there is a badly copied macaddr, going to fix this with my upcoming commits.
softbilly
DD-WRT Novice


Joined: 23 Apr 2020
Posts: 1

PostPosted: Sun Apr 26, 2020 11:45    Post subject: Reply with quote
Here is what I changed using ssh connect to Router
(under windows use Putty, User=root, PW=<Your password>).

Before change I could not use 2 Dlink 868L B1 as Client Bridge connected at the same time to 5GHz wireless network (ony one at the time was working)

:: Change HWAddr Wireless 2.4 GHz ::
nvram set eth1_hwaddr=00:90:4C:1F:F0:1C
nvram set wl0.1_hwaddr=00:90:4C:1F:F0:1C
nvram set wl0_hwaddr=00:90:4C:1F:F0:1C

:: Change HWAddr Wireless 5 GHz ::
nvram set eth2_hwaddr="00:90:4C:1E:50:30"
nvram set wl1_hwaddr="00:90:4C:1E:50:30"
nvram set wl1.1_hwaddr="00:90:4C:1E:50:30"

:: Change WAN MAC Adress ::
nvram set wan_hwaddr=00:90:4C:1F:F0:21

:: Change LAN MAC Adress ::
:: In this example Bridge is done with 5GHz wireless ::
nvram set 1:macaddr="00:90:4C:1E:50:30"
nvram set lan_hwaddr="00:90:4C:1E:50:30"

:: Save to nvram ::
nvram commit

:: Reboot the router ::
reboot
Display posts from previous:    Page 1 of 1
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum