LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2007, 05:44 PM   #16
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281

Correct. If you can type your router IP address into the web browser and get the setup page, then you have the correct IP. You also have a working network connection between the router and that computer (I'm assuming you're doing this on a different computer, otherwise it has been working all this time).
 
Old 06-29-2007, 05:55 PM   #17
JSR_tuxbox
LQ Newbie
 
Registered: Jun 2007
Distribution: debian etch
Posts: 26

Original Poster
Rep: Reputation: 15
dmesg | grep eth0:

skge eth0: addr 00:0c:6e:67:87:1c
eth1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)

cat /var/log/syslog | grep eth0:

Jun 29 08:12:07 johndesk dhclient: Listening on LPF/eth0/
Jun 29 08:12:07 johndesk dhclient: Sending on LPF/eth0/
Jun 29 08:37:46 johndesk dhclient: Listening on LPF/eth0/
Jun 29 08:37:46 johndesk dhclient: Sending on LPF/eth0/
Jun 29 08:37:48 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Jun 29 08:37:53 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Jun 29 08:38:01 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
Jun 29 08:38:14 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Jun 29 08:38:26 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
Jun 29 08:38:47 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
Jun 29 08:45:09 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Jun 29 08:45:12 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Jun 29 08:45:19 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
Jun 29 08:45:39 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
Jun 29 08:45:58 johndesk dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12

whoo... glad you can make sense of this. And yes, this is a different computer

Last edited by JSR_tuxbox; 06-29-2007 at 05:57 PM.
 
Old 06-29-2007, 05:58 PM   #18
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay, so it looks like the ethernet in the machine is up and running, but the router isn't giving it an address (or the cable is bad). Do you have DHCP enabled on the router?
 
Old 06-29-2007, 05:59 PM   #19
JSR_tuxbox
LQ Newbie
 
Registered: Jun 2007
Distribution: debian etch
Posts: 26

Original Poster
Rep: Reputation: 15
yeah.. on the setup page it has a "DHCP server" option, and the radio button for "Enable" is checked. Also, the Internet Connection Type is "Automatic Configuration - DHCP". Good to hear that the ethernet is working, though.
 
Old 06-29-2007, 06:00 PM   #20
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What is the DHCP users set to? And the Lease time?
 
Old 06-29-2007, 06:01 PM   #21
JSR_tuxbox
LQ Newbie
 
Registered: Jun 2007
Distribution: debian etch
Posts: 26

Original Poster
Rep: Reputation: 15
Maximum Number of DHCP users is set to 5, and the lease time is 0 minutes. The page for the router has a note indicating that 0 means one day.

EDIT: I just upped the number of users to 15, for safety's sake. We only have 4 computers here, but why toe the line, right? Should I run dhclient again?

Last edited by JSR_tuxbox; 06-29-2007 at 06:03 PM.
 
Old 06-29-2007, 06:03 PM   #22
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Just one more stupid question, what port is the cable plugged into on the router (from the linux box)?
 
Old 06-29-2007, 06:04 PM   #23
JSR_tuxbox
LQ Newbie
 
Registered: Jun 2007
Distribution: debian etch
Posts: 26

Original Poster
Rep: Reputation: 15
It's plugged into port 2. I don't think it's a bad port or anything because it was working back when the poor thing was running Windows.
 
Old 06-29-2007, 06:07 PM   #24
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
No, I just wanted to ask stupid questions...

I guess there's a quick way to check the cable. Unplug the cable from the working box and plug it into the linux box.
 
Old 06-29-2007, 06:08 PM   #25
JSR_tuxbox
LQ Newbie
 
Registered: Jun 2007
Distribution: debian etch
Posts: 26

Original Poster
Rep: Reputation: 15
Alright, I'm about to. Should I restart the linux box after connecting, and/or run dhclient, and/or just ping away?
 
Old 06-29-2007, 06:10 PM   #26
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I would just do /etc/init.d/networking restart as root. Then try to access the linksys router.
 
Old 06-29-2007, 06:17 PM   #27
JSR_tuxbox
LQ Newbie
 
Registered: Jun 2007
Distribution: debian etch
Posts: 26

Original Poster
Rep: Reputation: 15
It WAS the cable!

...but I couldn't have done it without your know-how re: reconfiguring the setup to accept DHCP. I reset the cables, did a network restart, then a ping got another "connect: Network is unreachable". I ran dhclient again, and everything was different -- I got my first IP address! A ping then got a response, and I think I'm good to go.

So am I going to have to run dhclient every time I start this box up, or will everything automate from here on out? If not, can I add something to my startup list? Where is the startup list, anyway?

And finally, a rousing chorus of "WHO DA MAN? YOU DA MAN!!!!" It is so uplifting to see that there are genuinely helpful people still around. Gives me hope for happy software like linux. I'm glad to be a part of it!
 
Old 06-29-2007, 06:21 PM   #28
JSR_tuxbox
LQ Newbie
 
Registered: Jun 2007
Distribution: debian etch
Posts: 26

Original Poster
Rep: Reputation: 15
oh, sorry, one last thing... do I need to update the apt-get sources.list? It didn't automatically configure when I installed because it couldnt' connect.
 
Old 06-29-2007, 06:21 PM   #29
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Just sorry it took so long! I hate cable issues...

You shouldn't have to do anything since you added dhcp to your /etc/network/interfaces file. It should poll for an address at every boot (actually, I think anytime you plug/unplug the cable).

If you can't access www.google.com from an address bar later, you might have to add a nameserver to /etc/resolv.conf like we did before. YOu should be able to find them on the status page of your Linksys WRT54G.
 
Old 06-29-2007, 06:24 PM   #30
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Oh yeah, and if you want to get brave later on, most of the WRT54G's can have their firmware flashed to make a much more powerful router. I have one myself and boosted the signal strength just with a firmware upgrade. See the wikipedia article and this site.
 
  


Reply



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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
terminal can't find "make" command secret_force Linux - Software 3 07-05-2006 07:09 AM
error on "make"command; ralink 2500 driver jimbrook Linux - Wireless Networking 2 05-23-2005 10:58 PM
Where can I find the "make" & "cc" packages?? sayeed_ather Mandriva 2 04-28-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 AM.

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