(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



dhcp client dhcpd


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From: Simon Hobson <simon@no-spam.ccomms.demon.co.uk>
Subject: Re: DHCP and such
Date: Sat, 24 Mar 2001 13:49:35 +0000
References: <%B8u6.19284$227.1707651@newsread2.prod.itd.earthlink.net> <20010321164022.G77@jpradley.jpr.com> <uLuu6.1815$ue1.114335@newsread2.prod.itd.earthlink.net> 

On Thu, 22 Mar 2001 22:10:34 +0000, Henna wrote
(in message <uLuu6.1815$ue1.114335@newsread2.prod.itd.earthlink.net>):

>>> Have Sco 5.0.5 Enterprise
>>> Want to look into using the OS for DHCP to windows 95/98 and 2000
> computers.
>>> 
>>> My want list would include:
>>> 
>>> To be able to pass out ip's to multiple ip's. For example
>>> 192.168.5.x
>>> 255.255.255.0
>>> 
>>> and
>>> 
>>> 192.168.10.x
>>> 255.255.255.0
>>> 
>>> and
>>> 
>>> 192.168.20.x
>>> 255.255.255.0
>>> 
>>> and be able to define default gateways, dns server and file/print
> shares.



> How do I setup the properties to automatically give a gateway, note that
> this gateway will change depending upon which router the client is behind.

You define each subnet in /etc/dhcpd.conf. When the DHCP server receives a 
request, it looks at the source to determine which subnet the client is on, 
and servs up an appropriate address. You do need bootp forwarding enabled on 
your routers for this to work.

For example :
subnet 192.168.10.0 {
        comment Remote Office A
        mask 255.255.255.0
        pool OfficeAPool
        routers router.sitea.somedomain.com
        dns_servers dns.somedomain.com
        domain sitea.somedomain.com
}

You repeat this section for each network, changing the routers address and 
domain name as appropriate. You can specify things like routers, dns servers 
etc by IP address or hostname - but ALL hostnames listed in the file must be 
resolvable or the dhcp server will stop processing requests. This cought me 
out when I removed a redundant domain from my DNS and forgot that it was 
referenced in the dhcp config !

You can configure the above either by editing /etc/dhcpd.conf, or by using 
the admin tools.

You need to set up an address pool in the Address Allocation Server for each 
network.



There are a lot of other options that can be set, including some netbios 
stuff that PCs use.

> How do I setup the properties to automatically setup the dns server, this
> will not change but I do not know how to do it in SCO.

I assume that what you mean is "how do I set it up to keep the dns server in 
sync with client addresses", unless it has changed from version 5.0.5a which 
we run, you can't.

There are two main reasons (plus a handful of minor ones) that I am in the 
process of moving DNS and DHCP to a Linux box :

1) Because the dhcp & aasd combination keeps lease information in what I 
assume is a SCO proprietry format, the dhcp-dns* utility does not work on SCO 
- therefore you cannot have dynamic DNS updates from dhcp to dns (unless 
someone tells me otherwise).
2) My experience is that the dhcp server does not handle remote networks 
properly. When I last tried it, I found that the server correctly determined 
the network, correctly allocated an address, but then tried to send the 
response to the device on the local network ! Hence, the client never got to 
see the dhcp offer.

* dhcp-dns is a set of scripts by Stephen Carville which periodically look at 
the dhcp leases file and use dynamic dns updates to add both the forward and 
reverse entries to dns. See http://www.cpl.net/~carville/dhcp-dns.html

Simon




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


LOD Communications, Inc.


/Bofcusm/1063.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress