DHCP won't work!

DHCP won't work!

Post by Steve Madi » Sat, 18 Oct 1997 04:00:00



A friend of mine is trying to set up Linux at work
where they use DHCP.  (He's just doing a dhcp client,
not server).  Every time 'dhcpcd' runs, it does absolutely
nothing and then leaves this message in the admin log:

    dhcpcd: No DHCPOFFER Messages

What does this mean and what is wrong?

Further information:
   3com 590 ethernet card.
   tried both "dhcpcd" and "dhcpcd -r", as per Vladimir's web page.
   Running RedHat 4.2 (Linux Kernel 2.0.30)
   3com ethernet driver is loaded as a module, not compiled directly in.
--

 
 
 

DHCP won't work!

Post by Laurent Szyste » Tue, 21 Oct 1997 04:00:00



> A friend of mine is trying to set up Linux at work
> where they use DHCP.  (He's just doing a dhcp client,
> not server).  Every time 'dhcpcd' runs, it does absolutely
> nothing and then leaves this message in the admin log:

>     dhcpcd: No DHCPOFFER Messages

> What does this mean and what is wrong?

To get the DHCP server to work on a Linux host you have
to set up you network interface in a somehow special way

1. The network interface should be able to use IP broadcasting
   (that is a kernel option of IP networking) and the interface
   to your network must be set to use broadcasting.

   Here is the line to define such interface (here it is binded
   to the eth0 device).

   /sbin/ifconfig eth0 [host address] broadcast

2. A special route must be added to the routing table:

   /sbin/route add -host 255.255.255.255 dev eth0

For more info about DHCP, check the following URL:

   http://www.fugue.com/dhcp/dhcp-beta-4.html

As ISC explains it

 "The server builds successfully and works mostly correctly
  when only one network interface is configured. Clients which
  are picky about the all-ones broadcast address may not work.
  See the README file for a workaround."

Regards,

Laurent Szyster
///_

 
 
 

DHCP won't work!

Post by Steve Madi » Tue, 21 Oct 1997 04:00:00


: >
: > A friend of mine is trying to set up Linux at work
: > where they use DHCP.  (He's just doing a dhcp client,
: > not server).  Every time 'dhcpcd' runs, it does absolutely
: > nothing and then leaves this message in the admin log:
: >
: >     dhcpcd: No DHCPOFFER Messages
: >
: > What does this mean and what is wrong?

: To get the DHCP server to work on a Linux host you have
: to set up you network interface in a somehow special way

But this is the DHCP client, 'dhcpcd', not the server daemon.
The server in this system is on a Windows NT (grumble grumble) box.

The very same computer runs fine when booted under Win95, and Win95's
TCP/IP options have the IP address set to "Get address from Host".

: 1. The network interface should be able to use IP broadcasting
:    (that is a kernel option of IP networking) and the interface
:    to your network must be set to use broadcasting.

Is this still true for the client, or is this just the server?

:    Here is the line to define such interface (here it is binded
:    to the eth0 device).

:    /sbin/ifconfig eth0 [host address] broadcast

: 2. A special route must be added to the routing table:

:    /sbin/route add -host 255.255.255.255 dev eth0

: For more info about DHCP, check the following URL:

:    http://www.fugue.com/dhcp/dhcp-beta-4.html

: As ISC explains it

:  "The server builds successfully and works mostly correctly
:   when only one network interface is configured. Clients which
:   are picky about the all-ones broadcast address may not work.
:   See the README file for a workaround."

: Regards,

: Laurent Szyster
: ///_
--

 
 
 

DHCP won't work!

Post by Vladimir Vuks » Thu, 23 Oct 1997 04:00:00





>: >
>: > A friend of mine is trying to set up Linux at work
>: > where they use DHCP.  (He's just doing a dhcp client,
>: > not server).  Every time 'dhcpcd' runs, it does absolutely
>: > nothing and then leaves this message in the admin log:
>: >
>: >     dhcpcd: No DHCPOFFER Messages
>: >
>: > What does this mean and what is wrong?

>: To get the DHCP server to work on a Linux host you have
>: to set up you network interface in a somehow special way

>But this is the DHCP client, 'dhcpcd', not the server daemon.
>The server in this system is on a Windows NT (grumble grumble) box.

It looks like WinNT DHCP server is not supported. Mail the maintainer
of dhcpcd (Yoichi) with all the messages that you get dhcpcd. See if he can
help.

Vladimir
P.S. If you could mail me the answer so I can include that in my HOWTO.

 
 
 

DHCP won't work!

Post by Doug Alco » Thu, 23 Oct 1997 04:00:00




Quote:>A friend of mine is trying to set up Linux at work
>where they use DHCP.  (He's just doing a dhcp client,
>not server).  Every time 'dhcpcd' runs, it does absolutely
>nothing and then leaves this message in the admin log:

>    dhcpcd: No DHCPOFFER Messages

>What does this mean and what is wrong?

[snip configuration]

I am in the same boat (trying to use linux in my office where DHCP
server is Win NT).  I just use the new version of netcfg.  It has an
option for configuring the device with DCHPC.  There are some other
hangs, but it works.

First, it always says that configuring with DHCP failes but in fact it
does not appear to have.  Second, I am having a hard time getting it
to register my hostname in the WINS/DNS server.  Third, on my notebook
the 3c589 PCMCIA ethernet card does not actually configure at boot
even though I hve selected for it to in netcfg.  It used to before I
recompiled my kernel.  Now after I boot, I just cd to where the
configuration files are and run 'ifup ifcfg-eth0'.

 
 
 

DHCP won't work!

Post by Vladimir Vuks » Fri, 24 Oct 1997 04:00:00



>does not appear to have.  Second, I am having a hard time getting it
>to register my hostname in the WINS/DNS server.  Third, on my notebook

I believe you need to run Samba and include a following option in smb.conf

wins server = NT.server.IP.number

This should register your Linux server with the WINS server.

Vladimir

 
 
 

1. DHCP, worked with 2.6 but won't work with Solaris 8!

I just upgraded an Ultra AXi based server from Solaris 2.6 to Solaris 8.
Almost everything went very well and the upgrade was well worth the effort
but for some I can't get DHCP to work!

I copied over my known working configuration files from 2.6 and when
I go to try to run the in.dhcpd program I get the following:

Nov 28 22:59:12 server in.dhcpd[22295]: Error binding to UDP receive socket: Address already in use
Nov 28 22:59:12 server in.dhcpd[22295]: Cannot configure any interfaces.

Netstat does show that port 67 is in use but I can't figure out what it
could be:

      *.67                                  Idle

I did check but there isn't a bootpd running.  I even tried rebooting
but I get the exact same error during the automatic starting of
in.dhcpd as well.

--
Gregory Gulik                        NEW!  http://www.drivingevents.com/

2. Xconfigs for Orchid Prodesigner ?

3. Telnet won't work with dhcp or CIDR?

4. Dot matrix printing.

5. DHCP Won't work!!!

6. Gradual system time change?

7. DHCP won't work

8. Top 10 posters comp.unix.shell

9. DHCP client - some software won't work

10. Linux DHCP and Win'95 DHCP Client??

11. DHCP won't work

12. CD won't work, system won't reboot...please help

13. help needed: AWE32 PNP won't work - kernel won't compile - gurus read this!