LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2005, 06:07 PM   #1
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Rep: Reputation: 0
linksys router in linux


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.
 
Old 03-13-2005, 07:55 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,922

Rep: Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999
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.

Last edited by michaelk; 03-13-2005 at 07:58 PM.
 
Old 03-13-2005, 08:59 PM   #3
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 03-13-2005, 09:47 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,922

Rep: Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999
What Distribution / version are you running?

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)
 
Old 03-13-2005, 10:05 PM   #5
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
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.

Last edited by reefa; 03-13-2005 at 10:11 PM.
 
Old 03-14-2005, 12:14 AM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
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.

Hope that helps.
 
Old 03-14-2005, 12:39 AM   #7
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
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.

Thanks

Last edited by reefa; 03-14-2005 at 12:57 AM.
 
Old 03-14-2005, 02:19 AM   #8
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
I figured it out, my broadcast IP was miss typed, thanks all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Networking in Linux with Linksys Router dsai Linux - Networking 1 06-15-2005 09:49 AM
Linksys router question on Linux? wardialer Linux - Security 3 02-03-2005 06:26 PM
Linksys Router behind a Linux LAN ysa475 Linux - Wireless Networking 0 07-05-2004 09:06 PM
LINKSYS vs LINUX Router? bryan1138 Linux - Security 1 01-19-2004 03:53 PM
Linux box can't see linksys router mjohns63 Linux - Networking 0 07-23-2003 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration