Re: [ILUG] DHCP

From: Raymond A Kelly (ray at domain skynet.ie)
Date: Mon 28 Feb 2000 - 18:50:26 GMT


James Rowan wrote:
>
> I was wondering if anyone can help me with this problem . I have just
> started to use Linux and am currently using it for DHCP. I am having a
> problem with two sites, in that when they are requesting an IP address,
> it comes back saying" DHCP server is not reachable." What th users then
> have to do, is type in winipcfg at the command line, and take the option
> to renew all, and this machine will be granted an I.P. address.

a few possible solutions

How many NIC's in the dhcp server & are they on different subnets.
if this is the case, is dhcpd answering requests on the correct
interface.

I'm assuming that by reference to winipcfg that this is a win9x machine.
if the above isn't applicable just re-hoof the windoze box. If it hasn't
got an active lease It'll request one on boot or at least consult what
it used to have & ask for it back.

What's possibly happened is that someone decideded to not bother with
DHCP messages on the client side. An occasional side effect of this IIRC
is that a windoze box won't try to renew it's lease at all.
The best way to fix this is to manually set a machine's ip, re-start
windows, set the system to use a dynamic ip & turn off absolutely
everything in the network/tcp/ip control panel (provided that your dhcp
server is providing all the correct nfo) then reboot _again_ [0] & all
should be well.

> Another question is that I was trying to look at the history logs, in
> /usr.bin/faillog, it was coming up in ASCII format. I have tried using
> read, type, less etc. Can someone please advise ?.

Reading the manpages probaby wouldn't go astray as I think you're
missing the point a little
faillog will go through /var/log/faillog which isn't in a "human
readable" format, ie it's not text.
& it also will set the number of times that an account can have an
incorrect password supplied before thae account gets locked. If you
want to find out when a particular user logged in your best bet is to
"last user |grep whatever" or "grep user /var/log/messages
/var/log/maillog /var/log/xferlog" etc etc
There are other "tidier" ways to do this but I find that grep & less * a
finger dance are quite good enough fuimse.

        Ray ...

[0] Windoze 9x does _really_ suck in this respect, at least with linux
it's a simple case of "ifconfig eth0 down" & "ifconfig eth0 up"



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:30 GMT