🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #949

Re: dhcpd

#949
From: prg
Date: Fri, 11 Feb 2005 18:08
64 lines
3248 bytes
Henk Salomons wrote:
> Hi,
>
>     I'm a new be at linux  I try to set up a dhcpd service. So i can
share
> my internet (ADSL) connection. The problem is that my client (win
2000)
> computer is given a ip number, but it is incorect. For exemple
196.128.0.54
> with subnet 255.255.0.0 !!!!
>
>  while this is my dhcpd.conf file.
>
> subnet 192.168.0.1 netmask 255.255.255.0{
>      range 192.168.0.2 192.168.0.50;
>  }
>
> What am i doing wrong???

subnet 192.168.0.0 netmask 255.255.255.0{
^^^^^^^^^^^^^^^^^^^
range 192.168.0.2 192.168.0.50;

Most any software that assumes anything about IP layout, will assume
that subnet #s fall on predetermined boundaries -- same for broadcast
addresses.  This is especially true with classfull routing.

Make sure you're not "stepping" on the dsl modem's admin address.

Unless you have a number of hosts (> 5 or6) why bother with dhcpd?
Just use static addresses.

You might find this easier, more sensible to use for a smallish lan:
http://www.thekelleys.org.uk/dnsmasq/doc.html

But ...

Where _is_ your windows box picking this up?
Lookup 196.128.0.54 (unresolved) in 20+9 Zones
  AS: [NO_ROUTE]
 Net 196/8 IANA-NETBLOCK-196  @apnic.net.
 Results: Positive=1, Negative=27, Timeouts=1 (2005-02-11 17:18:28 UTC)

BOGONS/completewhois.com: 196.128/16: 553 BOGON not allocated; BOGON
not announced
ie., this is not registered as allocated nor is it announced to other
ASes.  It is a bogus address.

If you want to get this working to learn or whatever...

Check what you have in your dhcpd.leases file.  It should record any
leases your dhcpd gave out.

Hopefully, the above is not your _complete_ dhcpd.conf.  Your clients
will need a GW address and lease times/expiries, etc.

If you find the scattered man page documentation of dhcp a pain (like I
sometimes do) you may want to get (or bookmark) html man pages here:
http://default.co.yu/~bc/rtfm/index.php?command=&display=D

hth,
prg
email above disabled
Technical Details
Message-ID: <1108145317.706893.153270@f14g2000cwb.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
References: <cuihic$sa5$1@reader08.wxs.nl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 100c5f,237cc808a0c99241
X-Google-Thread: f8a83,237cc808a0c99241
X-Google-Thread: 10669a,237cc808a0c99241
X-Google-Thread: 110e91,237cc808a0c99241
X-Google-Attributes: gid100c5f,gidf8a83,gid10669a,gid110e91,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
From: "prg" <rdgentry1@cablelynx.com>
Newsgroups: alt.linux,alt.os.linux.mandrake,comp.os.linux.networking,cz.comp.linux.mandrake
Subject: Re: dhcpd
Date: 11 Feb 2005 10:08:37 -0800
Organization: http://groups.google.com
Lines: 65
Message-ID: <1108145317.706893.153270@f14g2000cwb.googlegroups.com>
References: <cuihic$sa5$1@reader08.wxs.nl>
NNTP-Posting-Host: 206.255.210.33
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1108145322 21260 127.0.0.1 (11 Feb 2005 18:08:42 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 11 Feb 2005 18:08:42 +0000 (UTC)
In-Reply-To: <cuihic$sa5$1@reader08.wxs.nl>
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=206.255.210.33;
   posting-account=rG6I5gwAAADxtvK146gBiJZKyK8nxljS