LinuxQuestions.org
Review your favorite Linux distribution.
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 08-16-2006, 04:08 PM   #1
andigeniu
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora Core 5
Posts: 8

Rep: Reputation: 0
Ethernet problem - IP not detected by DHCP


Hi,

I'm using an old Red Hat 9 distro with an Intel(R) PRO/1000 CT Network Connection ethernet card. I installed the driver e1000-7.1.9 from the Intel(R) web site but at startup and every time I type "ifup eth0" my IP is not detected.

I have DSL internet and aquire my adress through DHCP. On the other boot, on win xp the IP is detected.

When I type ifconfig I get

Code:
eth0      Link encap:Ethernet  HWaddr 00:0D:61:11:FA:65
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6182 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:405549 (396.0 Kb)  TX bytes:2422 (2.3 Kb)
          Base address:0x9000 Memory:f2000000-f2020000
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1295 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1295 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:87973 (85.9 Kb)  TX bytes:87973 (85.9 Kb)
and for dhclient:

Code:
Listening on LPF/eth0/00:0d:61:11:fa:65
Sending on   LPF/eth0/00:0d:61:11:fa:65
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 lo to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 19
ip length 351 disagrees with bytes received 355.
accepting packet with data after udp payload.
ip length 351 disagrees with bytes received 355.
accepting packet with data after udp payload.
ip length 351 disagrees with bytes received 355.
accepting packet with data after udp payload.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 9
ip length 351 disagrees with bytes received 355.
accepting packet with data after udp payload.
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
In /etc/modules.conf there is the line "alias eth0 e1000".

I'm just at the beginning of my Linux experience and any help would be apreciated.

Thanks in advance,
Andi
 
Old 08-16-2006, 07:15 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, and welcome to LQ!

It could well be a timing issue around auto-negotiation.

What happens if you wait a minute after it's finished booting,
and run dhclient manually?

Is there an ethtool rpm for RH9 available? You could
try installing it, and forcing the card to the same specs
as your router.


Cheers,
Tink
 
Old 08-17-2006, 03:40 AM   #3
andigeniu
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora Core 5
Posts: 8

Original Poster
Rep: Reputation: 0
I ran ethtool

Code:
[root@localhost root]# ethtool etho
Settings for etho:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available
In the meantime I checked /etc/sysconfig/network-scripts/ifcfg-eth0
and the following lines do appear

Code:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
Thanks for the support and I hope we can get this cleared out,
Andi
 
Old 08-17-2006, 04:00 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
That's eth0, not etho. A number ZERO.


Cheers,
Tink
 
Old 08-17-2006, 04:51 AM   #5
andigeniu
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora Core 5
Posts: 8

Original Poster
Rep: Reputation: 0
Code:
[root@localhost root]# ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: umbg
        Wake-on: g
        Current message level: 0x00000007 (7)
        Link detected: yes
Sorry for that.

Andi
 
Old 08-17-2006, 05:04 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Cool, so it's installed and working. What does the counterpart support?
100MBit, FullDuplex? If so, try forcing those settings before dhcpcd
gets a chance to run.


Cheers,
Tink
 
Old 08-18-2006, 04:10 PM   #7
andigeniu
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora Core 5
Posts: 8

Original Poster
Rep: Reputation: 0
Since in Win XP the connection is fine probably the ethernet card properties might not be the problem
He's what I've tried... without any apparent result though.

Code:
[root@localhost root]# ethtool -s eth0 speed 100
[root@localhost root]# ethtool -s eth0 duplex full
[root@localhost root]# dhclient
Internet Software Consortium DHCP Client V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
 
Listening on LPF/eth0/00:0d:61:11:fa:65
Sending on   LPF/eth0/00:0d:61:11:fa:65
Listening on LPF/lo/
Sending on   LPF/lo/
Sending on   Socket/fallback
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 10
ip length 351 disagrees with bytes received 355.
accepting packet with data after udp payload.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
ip length 351 disagrees with bytes received 355.
accepting packet with data after udp payload.
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 17
ip length 351 disagrees with bytes received 355.
accepting packet with data after udp payload.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 7
ip length 351 disagrees with bytes received 355.
accepting packet with data after udp payload.
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Thanks again for your help,
Andi
 
Old 08-18-2006, 05:14 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Ok, that's bizarre ... sorry I didn't spot it the first time around!
It looks as if it's receiving UDP packets on eth0 and lo, the
loopback-interface. Have you set the machine up to be a DHCPSERVER as
well? If yes, stop that :}



Cheers,
Tink
 
Old 08-19-2006, 05:18 AM   #9
andigeniu
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora Core 5
Posts: 8

Original Poster
Rep: Reputation: 0
I checked and I don't even have the DHCP Server package installed... (thus no dhcpd.leases to be able to start/stop it)

I've done a lot of googling lately, seeking a similar problem that somebody else had, but it only seems fair to try another (and current) distro of Linux. Thanks a lot for the time you invested!

Best,
Andi
 
Old 08-19-2006, 08:38 AM   #10
teckboy1243
LQ Newbie
 
Registered: Mar 2005
Distribution: arch linux, slackware,FreeBSD
Posts: 15

Rep: Reputation: 0
Smile

Can you connect to the internet by using a static ip address?


ifconfig eth0 down

ifconfig eth0 192.168.0.10 broadcast 192.168.0.255 netmask 255.255.255.0 ## Replace with info from your network

ifconfig eth0 up

route add default gw IP_OF_YOUR_ROUTER

also what does the command route output?

Last edited by teckboy1243; 08-19-2006 at 08:47 AM.
 
Old 08-20-2006, 09:26 AM   #11
andigeniu
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora Core 5
Posts: 8

Original Poster
Rep: Reputation: 0
I assigned the network adresses to eth0, created the 'default' gateway and here's what route outputs:
Code:
[root@localhost root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
82.77.214.128   *               255.255.255.128 U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         82.77.214.152   0.0.0.0         UG    0      0        0 eth0
But still I can't connect to the internet, although now eth0 is initialized. Ping-ing also doesn't work.

Andi
 
  


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
ethernet card SiS 900-Based PCI Fast Ethernet Adapter Not Detected pathan_azhar Linux - Networking 0 08-13-2006 05:15 AM
Ethernet and DHCP problem schechtman Mandriva 3 09-05-2004 08:39 PM
Ethernet Card detected in one kernel is not detected in the other?? ashishuttarwar Linux - Hardware 14 06-15-2004 11:06 PM
Ethernet connection not detected rnorth6920 Linux - Hardware 11 05-26-2004 09:33 PM
RedHat 9 dhcp configuration problem for intel ethernet card linux_issues Linux - Networking 9 11-04-2003 02:52 PM


All times are GMT -5. The time now is 02:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration