[SOLVED] Can't connect from linux to Linksys WRT1200AC router -- using ethernet
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't connect from linux to Linksys WRT1200AC router -- using ethernet
My old router (connected to a cable modem) tends to drop wifi every 24 hours or so, so I thought I would get another one. I tried two, the Linksys WRT1200AC of the subject line, and a Netgear AC router. Neitehr one worked.
I would get the modem and router started, then boot my desktop. The indicator light would go on as it powered up, then would turn off in mid-boot. The desktop uses dhcp with no pre-assigned address. It works correctly on the old (Netgear) router, and worked on the one before that. It works plugging into the modem directly. But this behavior baffles me. Of course tech support at Linksys is no help. They asked if I had plugged in the ethernet cable. Sheesh.
Has anyone heard of such a problem? My desktop is a shuttle, with debian testing.
The network logs say that DHCPDISCOVER is never answered, so it gives up.
Let us start with the router and let's assume you have a dedicated modem that you'd attach to the wan port of the router.
On normal start up on most soho routers, they should offer a dhcp address. If your linux has some static in it or it is not refreshing the lease then you may have to put a static ip in linux to contact the router. Then the first thing I'd do is try to access the router's gui.
If the desktop works directly connected to the MODEM then I assume its functioning correctly and so something else is the problem. Not sure about your ISP but it is not uncommon for only one IP address to be assigned based upon the connected devices ISP. If you swap routers or your desktop cables connected to the MODEM make sure you cycle the MODEM's power. This will erase the MODEMs volatile memory.
What do you mean by can't connect? The desktop using DHCP should acquire an IP address if connected to a router regardless of the WAN side. You should be able to ping the router as well as access its web configuration pages.
First, to reply to jefro: Yes, I am connecting the router to a dedicated cable modem attached to the wan port of the router, then I attach the desktop machine to the router's LAN ports. I have tried several of the ports. As far as I can tell there are no static address on the machine. With the old router (which I am using now since the new one won't work), I do have the desktop directed to a fixed local LAN IP, but that is a function of the router (netgear), but that should stay with the router.
One bad thing, the result of ifconfig eth0 reports the same HWaddr as it does with the old router, so I guess something in the machine expects the old router to still be there. How do I tell it otherwise? But it also reports a new inet address. on the old router it is 10.... and in the new one it was 192.168.... I believe (I failed to print that, will try again. So, you think I should put a static IP address in the desktop? I will try that for the next boot.
To michaelk: The indicator light I meant was an led on the front of the new router indicating connections. It lights up for the port I plugged into for a while, while my boot process is looking for the right video settings (it's a long story with my Shuttle machine, but that has to be set manually to get decent resolution). Once the machine has done that (it takes exactly one minute), then the indicator light goes off, meaning, I presume, that the connection has been terminated by either the computer or the router.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
(lots of times), then
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
whereas the old router gives
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 10.0.0.1
DHCPACK from 10.0.0.1
bound to 10.0.0.109 -- renewal in 37242 seconds.
So, if it really is this HWaddr issue, how do I reset it?
I can't see how a static IP or something like that could be causing the problem (though it might solve it!), since connecting the cable from the computer to the modem directly works fine. But then the phones, tablets, and my wife's laptop would not work, and that would be bad.
The desktop has no wifi built-in, and would require a card of some sort, but with no space in this little computer it'd have to be external, and more money than it is worth. I would like to get a more stable and faster (is it??) router working with this computer and the other devices. But this is a RPITA.
More to michaelk Can't connect means I can't ping the router, or anything else. No traffic seems to get through. I will print out the output of ifconfig in a few minutes.
Well, no luck so far. Ifconfig actually had no useful network information at all, no inet addr, etc. I tried setting a static IP, but again the connection went dead (the led on the router went out) during the boot. I tried installing NetworkManager (I had not needed it before). No difference.
The desktop PC is not acquiring anything from the router; it seems not to know it is there (and conversely). ifup eth0 does not help. I am very frustrated with this; any help would be appreciated -- and I thank the two of you who tried so far.
If you see a router flying out the window, that would be my house.
Just a follow-up. I gave up on the router, took it back and got another one, not an AC router, but an Asus RTN-66U. Plugged it in, turned everything on, and it worked perfectly out of the box. Thank God that Best Buy has a good returns policy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.