LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-11-2004, 01:42 PM   #1
zaz04
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
ethernet configuration with router problem


Hello,
I'm trying to get my ethernet to work with my router. Running FC2. I am able to get online at work using DHCP but at home, I cannot. At home, my linux computer is connected to a linksys router which is connected to a modem and to a computer running the PPPoE protocol (DSL connection) and set to assign DHCP.

I know the driver configuration is fine, since network connectivity is fine at work.

I can't seem to ping the router but I can ping myself. Using the GUI, I get an error message telling me to check the cable. All connections have been checked and the cable has been checked as well. The computer (when booted to windows) can connect via the network cable.
I have run ifconfig and dhcpd and present it below. I've been working on this for some time, and hopefully someone can point me in the right direction. It seems like this problem is fundamental since I can't even seem to ping the router. Thanks in advance.

[root@localhost zzoltani]# /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0F:1F:1F:52:F0
inet6 addr: fe80::20f:1fff:fe1f:52f0/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4110 errors:0 dropped:0 overruns:0 frame:0
TX packets:4110 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5645739 (5.3 Mb) TX bytes:5645739 (5.3 Mb)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@localhost zzoltani]# ping 192.168.1.1
connect: Network is unreachable

[root@localhost zzoltani]# /sbin/dhclient
Internet Software Consortium DHCP Client V3.0.1rc12
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.


sit0: unknown hardware address type 776
/sbin/dhclient-script: configuration for sit0 not found.
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:0f:1f:1f:52:f0
Sending on LPF/eth0/00:0f:1f:1f:52:f0
Listening on LPF/sit0/
Sending on LPF/sit0/
Listening on LPF/lo/
Sending on LPF/lo/
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on sit0 to 25²•.255.255.255 port 67 interval 15
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

[root@localhost zzoltani]# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 lo
127.0.0.0 * 255.0.0.0 U 0 0 0 lo

Last edited by zaz04; 11-11-2004 at 01:43 PM.
 
Old 11-11-2004, 02:17 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
So this shows you never got a dhcp allocation..

Are you sure there is a working dhcp server?
Log into the router and view the leases to see if the eth0 MAC address has an ip allocated..
Turn iptables off, do /etc/init.d/iptables stop and then do ifdown eth0 and ifup eth0..

and as a last resort..
do ifdown eth0 and ifconfig eth0 192.168.1.2 and try pinging 192.168.1.1
 
Old 11-11-2004, 02:47 PM   #3
zaz04
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Peter,
Thanks for your thoughts. Unfortunately, I'm not able to log onto the router in the way that you describe. The router is a linksys which has a web based interface that is used to perform all setup and diagnostic tests.
I tried to do: ifdown eth0 and ifconfig eth0 192.168.1.2 and try pinging 192.168.1.1.
I get the message "Destination Host Unreachable."
I know that DHCP is working, because it is enabled on the router and my computer runing on Windows can successfully get an IP. Perhaps there is something else I could try?
 
Old 11-11-2004, 04:12 PM   #4
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
have u ran the adsl-setup to configure pppoe for ur computer?
 
Old 11-11-2004, 09:38 PM   #5
zaz04
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
The computer I'm trying to connect is just a computer on the LAN and so it shouldn't be connecting via PPPoE which is what I believe adsl-setup would do. The router is indeed connected through the PPPoE protocol. Is this correct? Any ideas why the same machine under windows can pick up an IP via DHCP but linux can't?

Thanks again for the replies
 
Old 11-12-2004, 04:34 PM   #6
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
u can try basic stuff, when u boot up with windows ipconfig and check the router ip addy. U could also try linksys website to see if there is anything on there about linux drivers. Like I say basic but u never know. If ur cables are working ok then it can only be ur configuration set up. have u got any output in /var/log/ that may give u more info.....sometimes it can be just something really simple that u may have missed
ps check in ur bios pnp it maybe that windoze recognises ur set up but it may not be enabled in bios...just a thought

Last edited by mermxx; 11-12-2004 at 04:36 PM.
 
Old 11-12-2004, 10:08 PM   #7
mcfaddenj
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
Hi,

I think I'm fighting the same problem--except I;m working with a motorola WR850G wireless/wired/broadband router. If I read your posting correctly you have access to the GUI stuff coming out of your router but it's not connecting to the net. I'm not sure why yet--actually that was what I was researching when I came across your question--but I got net access after I dumped using DHCP to get the IP address and assigned a static IP address. That might be iffy if you're running a mixed network with computers that are getting their addresses through DHCP but if you know the base address your router will start from then add all the connection's (computers) that may be on the LAN then you should be able to pick a status IP address above the highest that the router will choose. I have up to 5 computers on the LAN with a base assignment of 192.168.0.2 so I picked 192.168.0.20 for my static address in the Linux Box.

I'm still hoping to get the DHCP angle up and running and will keep you informed if you'd like. Also if you come up with anything helpful I'd appriciate hearing about it.


Hope this helps

Joe
 
Old 11-16-2004, 10:45 AM   #8
zaz04
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
resolution

Turns out rebooting the computer, turning the router off and on again, and swithching the port the cable was connected to resolved the issue. I had tried this previously but it worked this time around. Thanks for the other notes and ideas.
 
Old 11-16-2004, 02:22 PM   #9
mcfaddenj
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
Lightbulb

That's good, in fact you've given me something else to try to get off the dependency on the static IP address

Thanks
 
  


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
Problem connecting using ethernet router RoughEdge Linux - Networking 8 04-30-2004 05:35 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 01:52 AM
Simple ethernet configuration problem wmeler Linux - Networking 7 02-05-2004 12:22 AM
RedHat 9 dhcp configuration problem for intel ethernet card linux_issues Linux - Networking 9 11-04-2003 01:52 PM
Ethernet Card Configuration Problem saravanan1979 Linux - Software 4 06-12-2002 08:58 AM

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

All times are GMT -5. The time now is 03:53 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