Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Has anyone ever tried running a linux server through a WRT54G LinkSys router? I cant connect through the PPPoE internet connection of the router.
My linux box is connected to the linksys router and the router is connected to the linksys hub, if I connect the linux server to the linksys hub then I can connect to the internet, but it wont work if i connect the linux server to the linksys router. Any help is appreciated, thank you.
When you connect the linux server to the router you need to reconfigure the network interface for a LAN setup. The server does not need to run PPPoE since this is handled by the router. If you intend on forwarding any services to the linux box be sure to configure it with a static IP address.
I've done exactly as you told me, and I have configured the eth0 with ifconfig to setup my static ip's, but the router seems to just ignore my configuration and i cant get connected to the internet, I can't even ping the LAN ip's.
Thanks for replying to my post
You will also need to update the /etc/resolv.conf file to add the DNS information.
You find the info from the router's WAN configuration pages. The format of the resolv.conf file is:
nameserver xxx.xxx.xxx.xxx. (i.e the IP address)
I'm running slackware 9.1.
I have already entered the DNS servers in my /etc/resolv.conf.
I think I might be messing something up in ifconfig I've tried all sorts of different combinations of IP's, at first I used the local default router IP's with ifconfig which are
IP: 192.168.1.102
MASK: 255.255.255.0
GATE: 192.168.1.1
that didn't work so I used the IP, Mask and Gateway my ISP assigned me, and that didnt work either. Which IP's am I suppose to use with this linksys router?
Nothing works, I cant ping any IP's even local or anything on the internet.
I tried something funny earlier, I went into my linksys config website at 192.168.1.1 and then under advanced routing I setup destination lan ip, mask, gateway for my linux box and then i could actually connect with ssh client to the linux box from my window XP but then it stopped working after 10 seconds, now i cant even connect to it anymore.
I also tried adding this line:
route add default gw xxx.xxx.xxx.xxx and it says Network unreachable, I wonder why.
reefa: First, with the linux box connected to the router and with it powered up, try powering down the linksys router for a few seconds and then powering it back up. That often resolves odd conflicts.
If that fails, then the router may be configured in an odd way, especially if you have been modifying settings. Try starting at the beginning with the router.
Press the reset switch on the back for 10 sec to restore the initial configuration. That removes all passwords, restores all settings to the default settings and returns the firmware to the version originally shipped with the router. It will also delete your ISP password and user name, so you will need to reenter them later.
With the linux box running and connected to the router, power down the DSL modem and the router. Power up the modem, wait until the modem WAN connection is reestablished and then power up the router. Ping 192.168.1.1 and log into the router configuration page at that address.
At the router configuration page, select the WAN Configuration Type as PPPoE and reenter your username and password. Go to the Status page and press the Connect button if you are not already connected. That should do it.
If you upgraded the firmware, you will need to do it again, as the reset removed the update.
If you are still unable to connect to the internet, here are a few thing to test/try:
Can you ping 192.168.1.1?
Can you ping the WinXP box from the linux box?
Can the WinXP box ping the linux box?
Try reverting the linux box IP address to a DHCP assignment for now, restart the network service (VERY IMPORTANT) and see if your linux box appears in the router DHCP table. Start simple and work your way up.
Have you assigned an IP address to the linux box that fall within the range used by the router DHCP (I think the answer is yes)? Then try changing the linux box to 192.168.1.200, if that is outside of the router DHCP range.
So far I've tried everything you said, but the strange thing is I can ping the linux box from my windows xp, and I can also ssh to the linux box from my windows xp, but I cannot ping my windows box from my linux box, any ideas why?
I'm also having problems pinging my wireless laptops which also run Windows. They all have dhcp automatically assigned to em and they browse the web without problems.
I also tried pinging the broadcast ip from my linux box with ping -b 192.168.1.1 and it works fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.