Netgear R9000: No internet with "MAC Address Clone"

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2  Next
Author Message
Pioner
DD-WRT Novice


Joined: 24 Aug 2016
Posts: 18

PostPosted: Wed Mar 20, 2019 13:14    Post subject: Netgear R9000: No internet with "MAC Address Clone" Reply with quote
Hi,
I have a Netgear R9000 (my third Netgear router with DD-WRT) and I set the "MAC Clone" = "Enable" in Setup - MAC Address Clone, and the WAN MAC value was specified (various).
As a result the internet indicator is off and DHCP-address from the ISP is not assigned (0.0.0.0).
Rebooting and re-switching cable and waiting for an hour does not help.
This error is observed in all DD-WRT versions for R9000.
Although in stock Netgear-firmware it worked well.
Sponsor
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Thu Mar 21, 2019 8:31    Post subject: Reply with quote
Did you try removing power from your internet modem for a few seconds and rebooting? Some cable modems will not recognize a new MAC unless they are cold booted.
_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
Pioner
DD-WRT Novice


Joined: 24 Aug 2016
Posts: 18

PostPosted: Thu Mar 21, 2019 9:39    Post subject: Reply with quote
Yes, I waited many times from a few seconds to a few hours, with the power turned on and off.
But, I have a directly cable connection from ISP, without a modem.
WAN MACs that used to work in other routers were also checked.
I know perfectly well how this option works, and I used it for many years, DD-WRT for Netgear WNDR3800 and R7800 have no such problem, and in stock firmware is also Ok.
So it seems to be a problem in DD-WRT or incompatibility with R9000.


Last edited by Pioner on Thu Mar 21, 2019 12:21; edited 1 time in total
Pioner
DD-WRT Novice


Joined: 24 Aug 2016
Posts: 18

PostPosted: Thu Mar 21, 2019 11:08    Post subject: Reply with quote
If I set "Clone WAN MAC" = router's own MAC, the DHCP-address is released and the internet starts working. But if "Clone WAN MAC" differs by at least 1 character from the physical MAC, then there is a problem.
Pioner
DD-WRT Novice


Joined: 24 Aug 2016
Posts: 18

PostPosted: Fri Mar 22, 2019 18:58    Post subject: Reply with quote
I checked the connection in "MAC Address Clone" mode with another ISP, it did not work also.
Therefore it's not a ISP problem.
I tried to connect R9000 (as a client) to my old R7800 router (as a DHCP-server) via the WAN-port, as a result the R7800 router assigns a new IP for R9000, the cloned MAC-address of R9000 blinks in the Active Clients list, but then the connection breaks immediately, and it is looped.
How can I see in more detail what happens at the fail moment?
How to report a bug to firmware developers?
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Sat Mar 23, 2019 7:35    Post subject: Reply with quote
Have you checked the Interface status with "ifconfig"?
Pioner
DD-WRT Novice


Joined: 24 Aug 2016
Posts: 18

PostPosted: Sat Mar 23, 2019 8:23    Post subject: Reply with quote
ifconfig:

Code:

vlan2     Link encap:Ethernet  HWaddr 02:04:06:08:0A:0C 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:276 (276.0 B)  TX bytes:2052 (2.0 KiB)


vlan2 - internet for Netgear R9000;
HWaddr 02:04:06:08:0A:0C - my cloned WAN MAC;
As I can see there is no line "inet addr:... Bcast:...",
RX bytes & TX bytes - are very low, within B/KiB.
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Sat Mar 23, 2019 9:39    Post subject: Reply with quote
Have you tried a Kong Build?

http://www.desipro.de/ddwrt/K4-AC-ALPINE/
Pioner
DD-WRT Novice


Joined: 24 Aug 2016
Posts: 18

PostPosted: Sat Mar 23, 2019 10:10    Post subject: Reply with quote
Yes, without success.
I have tried a Kong Build, and Voxel's Custom R9000 NETGEAR Firmware, and all betas since 2017.
All DD-WRT for Netgear R9000 has this problem.
At the same time the stock firmware does not have this problem, and there is no this problem in DD-WRT for other Netgear models.
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Sat Mar 23, 2019 10:39    Post subject: Reply with quote
Most likely a Ethernet Driver issue.

The WAN port is on the Alpine Chip, while the LAN ports is the Atheros switch.

https://wikidevi.com/wiki/Netgear_R9000

No other router model have this hardware.

You can test with one of the LAN ports a WAN.
p1nky
DD-WRT Novice


Joined: 14 Feb 2014
Posts: 14

PostPosted: Sat Jan 16, 2021 1:55    Post subject: Reply with quote
Sorry for digging up this old thread but I just came across the same issue and I wonder if there is any fix for it in the meantime?

I am running Firmware: DD-WRT v3.0-r44715 std (11/03/20)
Update: it's the same with the latest Firmware: DD-WRT v3.0-r45454 std (01/15/21)

My ISP assigns the IP address depending on the router's MAC address and I'd like to keep the old IP address.

To add bit of current and additional information to the old post: when I clone the MAC address then it seems that the cable modem actually "sees" the cloned MAC because I do get exactly the same IP address assigned that I expected with the cloned MAC address (it shows up in "WAN IP" and also in Status/WAN).

However, I can't access the internet with any client and also the R9000 itself apparently cannot connect to the internet, at least I can see in the DDNS tab status log that it can't resolve the name of the DDNS provider ("INADYN:IP: Error '0x16' resolving host name 'freedns.afraid.org'" - and it's not just a DNS problem as I have set the google static DNS IPs for one Windows client and with that I also don't have any luck).

As soon as I disabled MAC address cloning internet access was fine again (with a changed IP address however due to my ISP).
ktuimala
DD-WRT Novice


Joined: 22 Sep 2020
Posts: 3

PostPosted: Sat Oct 23, 2021 7:55    Post subject: Reply with quote
I too am wondering if anyone has had success in using the "MAC Address Clone" feature on an R9000. I am in a situation where I am stuck with a public IP address from Spectrum that is black listed. There support is useless. I have tried keeping my equipment powered down when the lease expires and I still get the same black listed IP address. So was excited to see this feature. Unfortunately, it doesn't allow any clients to connect to the internet at all. However, I do get a new IP address, but it just isn't useable.

I have flashed to the r47581 (10/2/2021). As stated, I get a new IP address according to the WAN status page, but nothing can connect to the internet at all. Even ping from CLI on the router fails to reach google.

I did note that I get a VLAN2 entry when cloning is enabled when I run ifconfig. Normally there is only a VLAN1 entry with cloning disabled. The defaults has WAN setup as VLAN2. Also I noted that there is a bridge setup between eth0 and VLAN1.

Anyway, if anyone has solved this for the Netgear R9000, please let me know. Also if you want anymore information, please let me know and I will get it for you.
ktuimala
DD-WRT Novice


Joined: 22 Sep 2020
Posts: 3

PostPosted: Sat Oct 23, 2021 9:38    Post subject: Reply with quote
So... Funny how posting a question or asking for help suddenly helps you yield the answer? Well, that just happened to me with my R9000 and cloning my mac address. So, for the sake of anyone else stumbling on this thread, here is how I solved it.

First off, on my R9000, as I assume will be the same with other R9000s, I ssh'ed in and ran ifconfig to find the eth0, eth2, and vlan2 all share the same mac address. When using the "Mac Address Clone" option, only vlan2 gets updated with the the new mac address, which puts it out of sync with eth0 and eth2, hence the no internet access issue. So, I wrote a startup script to change the mac address of eth0, eth2, and vlan2. After restarting my modem I finally had a new IP address and working internet.

To implement this, simply go to Administration -> Commands and create the following startup script.

A note of warning, run the script first to make sure your router is still accessible. Make sure to verify with ifconfig via ssh. If so, then set it as the startup script. Otherwise you will have to reflash your router via tftp using the reset switch. (I bricked mine a few times today before discovering this solution.)

Obviously, replace <original_mac_address> with your original mac address as a reminder and <new_mac_address> with the new mac address.

Make sure you are using a legitimate mac address. I stole mine from a dead piece of equipment in my house.

Code:
# original MAC for safe keeping: <original_mac_address>
# Set hwaddr to ensure the right mac show on Setup -> Networking page
nvram set eth0_hwaddr="<new_mac_address>"
nvram set eth2_hwaddr="<new_mac_address>"
nvram commit
# Bring eth0, eth2, and vlan2 down
ip link set dev eth0 down
ip link set dev eth2 down
ip link set dev vlan2 down
# Set eth0, eth2, and vlan2 to new mac address
ip link set dev eth0 address <new_mac_address>
ip link set dev eth2 address <new_mac_address>
ip link set dev vlan2 address <new_mac_address>
# Bring eht0, eth2, and vlan2 back up
ip link set dev eth0 up
ip link set dev eth2 up
ip link set dev vlan2 up


After it is set save your startup script and reboot your router along with power cycling your modem. When it all comes up you should verify you have the new mac set by running ifconfig and see you finally have a new public IP address.

Cheers
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6446
Location: UK, London, just across the river..

PostPosted: Sat Oct 23, 2021 11:02    Post subject: Reply with quote
I've also found R9000 has a strange MAC behaviour
what is the output of this command:

nvram show | grep hwaddr


if your commands are in start up script, no need of nvram commit command there, as in start up script they will survive reboot, so on reboot it will change this mac to whatever you selected...on every start up...

for more info you can have a look at this tread...
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=330392&postdays=0&postorder=asc&start=15

i ended up manually changing each mac address i want to change...and yep bear in mind this is fragile business...must be very careful...

i first flashed with Kong build if this makes any sense...i couldn't flash with BS via TFTP...just couldn't get the right timing i guess...or the factory build was a bit bigger...47510

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
ktuimala
DD-WRT Novice


Joined: 22 Sep 2020
Posts: 3

PostPosted: Sat Oct 23, 2021 19:21    Post subject: Reply with quote
Ah... I did not know the startup script changes would make the nvram set commands moot. Good to know. Originally I noted that my changing of the mac didn't reflect in the GUI, so I did that as a measure to insure I didn't confuse myself in the future. My R9000 does a lot for me and I have configs and scripts doing all sorts of things.

Anyway, as requested, here is the output you requested. I still have my override in there. Ended up changing the mac to a virtual nic from an ESXi VM I was going to delete.

Code:
~# nvram show | grep hwaddr
eth0_hwaddr=00:0C:29:EE:98:E3
size: 45764 bytes (85308 left)
eth1_hwaddr=78:D2:94:41:7A:18
eth2_hwaddr=00:0C:29:EE:98:E3
def_hwaddr=00:0C:29:EE:98:E3
wan_hwaddr=78:D2:94:41:7A:19
vlan1_hwaddr=78:D2:94:41:7A:18
lan_hwaddr=78:D2:94:41:7A:18
wl_hwaddr=
nvram set eth0_hwaddr="00:0C:29:EE:98:E3"
nvram set eth2_hwaddr="00:0C:29:EE:98:E3"
def_whwaddr=78:D2:94:41:7A:1A
wlan0_hwaddr=78:D2:94:41:7A:1A
wlan1_hwaddr=78:D2:94:41:7A:1B
wlan2_hwaddr=8C:45:00:21:2B:31


Another question. Considering eth0 and eth2 share the same mac, if I clone to an address for something active on my network, will that cause a conflict. VLAN2 is the WAN port so it won't matter since it is segregatedon the WAN side, but I was unsure of eth0 and eth2, because eth0 is in a bridge with VLAN1. I ended up opting to use a mac address that was no longer going to risk being used on my network, just in case.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum