LinuxQuestions.org
Help answer threads with 0 replies.
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 12-03-2006, 11:51 AM   #1
antonucc
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Rep: Reputation: 0
Question No DHCPOFFERS received


I am trying to get connectded to my ISP via DHCP, from a IBM Thinkpad R60, Dual Core (intel processor, 1.66 GHz). I have successfully installed FC6, but the ethernet card (Broadcom Corporation NetXtreme BCM5751M Gigabit Ethrnet PCI Express) seem not to be recognised.
I am using the default driver (tg3) from FC6, and the Ethernet Card seems to be working ("ping localhost" responds positively).

Note that using my previous laptop (TP R50e, with a different card) I never experienced any problem -> I can not believe that the problem is with my ISP...

For more information, here is the output from ifconfig:

[root@cosmo-lap2 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16: D3:29:3E:4A
inet6 addr: fe80::216:d3ff:fe29:3e4a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2788 (2.7 KiB) TX bytes:5508 (5.3 KiB)
Interrupt:201

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:1866 errors:0 dropped:0 overruns:0 frame:0
TX packets:1866 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4817052 (4.5 MiB) TX bytes:4817052 (4.5 MiB)
====================

and here is the /var/log/messages for one typical session:
Dec 3 09:42:59 cosmo-lap2 gconfd (root-2987): starting (version 2.14.0), pid 2987 user 'root'
Dec 3 09:42:59 cosmo-lap2 gconfd (root-2987): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Dec 3 09:42:59 cosmo-lap2 gconfd (root-2987): Resolved address "xml:readwrite:/root/.gconf" to a writable configuration source at position 1
Dec 3 09:42:59 cosmo-lap2 gconfd (root-2987): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
Dec 3 09:43:11 cosmo-lap2 kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Dec 3 09:43:13 cosmo-lap2 kernel: tg3: eth0: Link is up at 100 Mbps, full duplex.
Dec 3 09:43:13 cosmo-lap2 kernel: tg3: eth0: Flow control is on for TX and on for RX.
Dec 3 09:43:13 cosmo-lap2 kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Dec 3 09:43:13 cosmo-lap2 kernel: audit(1165138993.344:18): avc: denied { write } for pid=3108 comm="ifconfig" name="[13133]" dev=pipefs ino=13133 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file
Dec 3 09:43:13 cosmo-lap2 kernel: audit(1165138993.344:19): avc: denied { write } for pid=3108 comm="ifconfig" name="[13133]" dev=pipefs ino=13133 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file
Dec 3 09:43:13 cosmo-lap2 kernel: audit(1165138993.344:20): avc: denied { read } for pid=3108 comm="ifconfig" name="[13084]" dev=pipefs ino=13084 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file
Dec 3 09:43:13 cosmo-lap2 kernel: audit(1165138993.344:21): avc: denied { write } for pid=3108 comm="ifconfig" name="[13084]" dev=pipefs ino=13084 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file
Dec 3 09:43:13 cosmo-lap2 kernel: audit(1165138993.344:22): avc: denied { read } for pid=3108 comm="ifconfig" name="[13085]" dev=pipefs ino=13085 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file
Dec 3 09:43:13 cosmo-lap2 kernel: audit(1165138993.344:23): avc: denied { write } for pid=3108 comm="ifconfig" name="[13085]" dev=pipefs ino=13085 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file
Dec 3 09:43:13 cosmo-lap2 kernel: audit(1165138993.344:24): avc: denied { read } for pid=3108 comm="ifconfig" name="[13086]" dev=pipefs ino=13086 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file
Dec 3 09:43:13 cosmo-lap2 kernel: audit(1165138993.344:25): avc: denied { write } for pid=3108 comm="ifconfig" name="[13086]" dev=pipefs ino=13086 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file
Dec 3 09:43:13 cosmo-lap2 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Dec 3 09:43:14 cosmo-lap2 avahi-daemon[2409]: New relevant interface eth0.IPv6 for mDNS.
Dec 3 09:43:14 cosmo-lap2 avahi-daemon[2409]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::216:d3ff:fe29:3e4a.
Dec 3 09:43:14 cosmo-lap2 avahi-daemon[2409]: Registering new address record for fe80::216:d3ff:fe29:3e4a on eth0.
Dec 3 09:43:18 cosmo-lap2 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
Dec 3 09:43:27 cosmo-lap2 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
Dec 3 09:43:42 cosmo-lap2 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Dec 3 09:43:56 cosmo-lap2 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Dec 3 09:44:08 cosmo-lap2 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
Dec 3 09:44:14 cosmo-lap2 dhclient: No DHCPOFFERS received.

=========================================

I have already tried to add "irqpoll" and !acpi=off" in the grub loader without success.

Many thanks in advance for any help
 
Old 12-03-2006, 12:32 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why do you thinks that acpi or irq's have anything at all to do with your problem? you have an eth0, so hardware seems fine... you simply seem to be getting no DHCP offers, and you've not mentioned a single thing about your DHCP server... does it exist?
 
Old 12-03-2006, 03:46 PM   #3
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi antonucc,

It's probable that your ISP has registered the MAC address of your previous laptop and does not recognize the new machine, denying an IP address to it.

This is a way ISP providers prevent the use of its network by anyone who can plug a computer onto it. You should contact it and explain your change to validate your new computer.
 
Old 12-04-2006, 05:46 AM   #4
antonucc
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Question Now: dhpcd not starting and/or running

Quote:
Originally Posted by acid_kewpie
why do you thinks that acpi or irq's have anything at all to do with your problem? you have an eth0, so hardware seems fine... you simply seem to be getting no DHCP offers, and you've not mentioned a single thing about your DHCP server... does it exist?
Quote:
Originally Posted by osvaldomarques
It's probable that your ISP has registered the MAC address of your previous laptop and does not recognize the new machine, denying an IP address to
Thanks to both of you: I think you are BOTH right.
First, I have checked my installation and it was true: the dhcp package was actually not installed. But I have also checked about other people's expereicnes with having dhcp from linux running with the modem provieded by my ISP, and it is true that it records the MAC number....Now, I am a to these issues, so please, be patient...

I have now reinstalled FC6, and I have included dhcp and dhcpv6 among the customised packages chosen for installation. However, I have chosen not to get the ISP number directly from my ISP at the installation, because of the above mentioned "locking" of the modem on the MAC number of the old laptop.

Now, at the end dhcp and dhcpv6 seem to be installed, but when I try to run dhpcd it fails, because it seems to look for the IP number of the eth0 interface, and (of course) does not find any. Note: I have copied the dhcpd.conf file in /etc, and added the "authoritative;" command. I also try to launch it manually after having restarted the netwrok services - it fails for the same reason.

Clearly, I have done some mistakes in dhpcd.conf.
Does anybody have a good pointer to a howto/guide on how to configure a dhcp client?

Once again, many thanks in advance

Last edited by antonucc; 12-04-2006 at 06:18 AM.
 
Old 12-04-2006, 06:17 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
dhcp clients do not require configuration by default. you can fine tune them, but it's really very rare to need to touch the config at all. if, as suggested above, it's the ISP who's serving DHCP then a call to their helpdesk would probably be the key. if it's actually DHCP being served locally, e.g. from a simple ADSL router, then it'd be the configuration on that router.
 
Old 12-04-2006, 06:24 AM   #6
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi antonucc,

The dhcpd package, including the dhcpd.conf are a server package, for you offer leases to your possible other machines, on a configured ethernet. When you try to get an address lease, it's the dhcpcd package which is used.

If you want to access internet via your new machine, you need to contact your ISP provider to change the MAC. There
 
Old 12-06-2006, 09:24 AM   #7
hockeyman_102
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Suse, CentOS, Ubuntu
Posts: 124

Rep: Reputation: 15
you wont need dhcpv6 for a while unless you just want to play with IPv6.
 
Old 12-06-2006, 10:30 AM   #8
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
If you plug in a device to the modem, and then try another, you need to reboot your cable modem before it will pass traffic with the new MAC address.


Installing a DHCP server on the laptop is not the answer.
 
Old 12-07-2006, 04:06 AM   #9
antonucc
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up Problem SOLVED

Quote:
Originally Posted by osvaldomarques
Hi antonucc,

The dhcpd package, including the dhcpd.conf are a server package, for you offer leases to your possible other machines, on a configured ethernet. When you try to get an address lease, it's the dhcpcd package which is used.

If you want to access internet via your new machine, you need to contact your ISP provider to change the MAC. There
Thanks to all for your comments/suggestions/answers. It turned out that, after having correctly installed dhcp, the final problem I had was the one which osvaldomarques noticed: the modem was locked on the old laptop's MAC number. I called the support service of my ISP and got it unlocked: now it works.

Looking back at this experience, I think that I could not understand the difference between server and client dhcp. I only needed to have a client dhcp to be working, just to get connected to a modem, not a server. So, the dhcpd.conf file was not an issue. Now, I could not find among the various Howtos' a clear explanation of what-is-needed-for-what. The only DHCP Howto I found goes back to 2002. What would be eneeded is a "quick start" section, where it is writte: "do this and this if you just want to be connected"....

Thanks again to all of you
 
  


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
No DHCPOFFERS received m0llbuz_ Linux - Networking 6 07-29-2010 02:08 PM
NO DHCPOFFERS received ekdya Debian 7 04-27-2006 04:09 AM
FC4 ipw2100 - No DHCPOFFERS received tingcm Linux - Wireless Networking 4 08-22-2005 03:43 AM
<no DHCPOFFERS received> for ADSL connection Tanguy Linux - Networking 3 02-12-2004 04:59 PM

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

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