[96528] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: DHCP accross router??

daemon@ATHENA.MIT.EDU (William Stearns)
Tue Oct 27 19:08:16 1998

Date: Tue, 27 Oct 1998 19:11:11 -0500 (EST)
From: William Stearns <wstearns@pobox.com>
To: redhat-list@redhat.com
cc: Josh Kuperman <sar_kuper@sals.edu>
In-Reply-To: <3.0.5.32.19981027132825.007e9d00@mailx.netheaven.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Good day, Josh,

On Tue, 27 Oct 1998, Josh Kuperman wrote:

> I was a little unclear. My problems are as follows:
> 1. I don't have access to any configuration information about the router or
> the DHCP server.
> 2. Windows 95 works fine. I can run the program winipcfg.exe and it will
> allow me to release and to gain an IP from the DHCP server. I don't know of
> a similar program that runs under linux, other running
> /etc/rc.d/init.d/network to start and stop the networking.

	If you've got W95 to get a dynamic address, Linux can probably do
so as well.  Try the following:
	- make sure the dhcpcd packages is installed.  Note: this is the
dhcpcd (DHCP Client Daemon) that _gets_ an address from a server; not the
dhcpd (DHCP Daemon), which _hands out_ addresses to other clients.
	- edit /etc/sysconfig/network-scripts/ifcfg-eth0 (replace eth0
with the appropriate ethX if you have more than one network card) and make
sure it has the lines:
DEVICE=eth0		#Or whatever your interface is
ONBOOT=yes
BOOTPROTO=dhcp
	I'd suggest having the rest of the lines end at "=", like:
IPADDR=

	- run "tail -f /var/log/messages" on another terminal to see any
diagnostic messages that come up if you'd like.
	- run "/etc/rc.d/init.d/network stop ; /etc/rc.d/init.d/network
start"
	- "ifconfig eth0" should show your new IP address, and "route -n"
should show your new default gateway in the "Gateway" column.

> 3. The only DHCP specific link I could find at
> http://sunsite.unc.edu/LDP/links.html was
> http://www.sghms.ac.uk/~mpreston/tools.htm which is a dead link.

	http://www.isc.org/dhcp.html has some good info and a dhcp client,
server, and relay package.  Note: you do not need to install the software
from here; the dhcpcd package should be all you need for the moment.

> 4. I downloaded all the latest drivers from
> http://cesdis.gsfc.nasa.gov/linux as well as the diagnostic programs for my
> card and couldn't find anything interesting, i.e. they ran and I still
> don't have a clue.

	The dhcp protocol doesn't depend on specific features in your
network card driver [*]; it just needs the dhcpcd software to run.
	By the way, there's probably an easier way to configure this via
control-panel, but it's easier to give instructions this way.
	Let me know if you have any more problems.  Cheers,
	- Bill


> At 11:14 AM 10/27/98 -0500, I wrote:
> >I need my Linux machine to get its IP address through DHCP. The DHCP server
> >is only reachable through a router. I am having trouble finding out how to
> >configure machines to use DHCP and how to debug DHCP in general. I have
> >found nothing on how to do this. Any pointers are 
> >appreciated.


[*] Not strictly true; the card and driver do need to be able to handle (I
think) broadcasts and promiscuous mode; you'd be hard pressed to find an
Ethernet card that was supported under linux that _couldn't_ handle these
standard requirements.

---------------------------------------------------------------------------
Unix _is_ user friendly.  It's just very selective about who its friends 
are.  And sometimes even best friends have fights.
William Stearns (wstearns@pobox.com)
Mason, buildkernel, and named2hosts are at: http://www.pobox.com/~wstearns
---------------------------------------------------------------------------



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post