newbie dhcp problems - linux server windows client

newbie dhcp problems - linux server windows client

Post by michael melli » Fri, 06 Aug 2004 05:44:28



Hi there,

I am a newbie and have been trying to get to grips with Red Hat 9 that
i have just installed on my computer.

The scenario is this -  I cannot get DHCP to work on my network I
have a pc client running windows 98(name -hp). When i log in using a
static ip address in the windows client everything works perfectly and
i am able to access my files.

 Unfortunately when I try to use to DHCP i am unable to log in and
have googled non-stop to find a solution - alas without success.

I hope the following output might help in providing the solution;
my linux server is called michael

extract from - /var/log/messages

Aug  4 21:22:42 michael dhcpd: DHCPINFORM from 169.254.24.13 via eth1:
unknown subnet 0.0.0.0
Aug  4 21:22:43 michael dhcpd: DHCPINFORM from 169.254.24.13 via eth1:
unknown subnet 0.0.0.0

dhcpd -f -d
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/eth1/00:0c:76:3d:fd:32/192.168.1.0/24
Sending on   LPF/eth1/00:0c:76:3d:fd:32/192.168.1.0/24
Sending on   Socket/fallback/fallback-net
There's already a DHCP server running.

Dhcpd.conf
ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0  netmask 255.255.255.0 {

# --- default gateway
        option routers                  192.168.1.1;
        option subnet-mask              255.255.255.0;

        option nis-domain               "michael.melling.sch.uk";
        option domain-name              "michael.melling.sch.uk";
        option domain-name-servers      192.168.1.0;

        option time-offset              -18000; # Eastern Standard
Time
#       option ntp-servers              192.168.1.1;
#       option netbios-name-servers     192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change
this unless
# -- you understand Netbios very well
#       option netbios-node-type 2;

        range dynamic-bootp 192.168.1.1  192.168.1.255;
        default-lease-time 21600;
        max-lease-time 43200;

        # we want the nameserver to appear at a fixed address
        host ns {
                next-server marvin.redhat.com;
                hardware ethernet 12:34:56:78:AB:CD;
                fixed-address 207.175.42.254;

I made sure the firewall was stopped before trying. I am guess it is a
problem with the subnet but i just cannot figure out the solution.

Thanks in advance.

Kind regards,

Michael.

 
 
 

newbie dhcp problems - linux server windows client

Post by michael melli » Fri, 06 Aug 2004 23:25:11



> Hi there,

> I am a newbie and have been trying to get to grips with Red Hat 9 that
> i have just installed on my computer.

> The scenario is this -  I cannot get DHCP to work on my network ? I
> have a pc client running windows 98(name -hp). When i log in using a
> static ip address in the windows client everything works perfectly and
> i am able to access my files.

>  Unfortunately when I try to use to DHCP i am unable to log in and
> have googled non-stop to find a solution - alas without success.

> I hope the following output might help in providing the solution;
> my linux server is called michael

> extract from - /var/log/messages

> Aug  4 21:22:42 michael dhcpd: DHCPINFORM from 169.254.24.13 via eth1:
> unknown subnet 0.0.0.0
> Aug  4 21:22:43 michael dhcpd: DHCPINFORM from 169.254.24.13 via eth1:
> unknown subnet 0.0.0.0

> dhcpd -f -d
> Wrote 0 deleted host decls to leases file.
> Wrote 0 new dynamic host decls to leases file.
> Wrote 0 leases to leases file.
> Listening on LPF/eth1/00:0c:76:3d:fd:32/192.168.1.0/24
> Sending on   LPF/eth1/00:0c:76:3d:fd:32/192.168.1.0/24
> Sending on   Socket/fallback/fallback-net
> There's already a DHCP server running.

> Dhcpd.conf
> ddns-update-style interim;
> ignore client-updates;

> subnet 192.168.1.0  netmask 255.255.255.0 {

> # --- default gateway
>         option routers                  192.168.1.1;
>         option subnet-mask              255.255.255.0;

>         option nis-domain               "michael.melling.sch.uk";
>         option domain-name              "michael.melling.sch.uk";
>         option domain-name-servers      192.168.1.0;

>         option time-offset              -18000; # Eastern Standard
> Time
> #       option ntp-servers              192.168.1.1;
> #       option netbios-name-servers     192.168.1.1;
> # --- Selects point-to-point node (default is hybrid). Don't change
> this unless
> # -- you understand Netbios very well
> #       option netbios-node-type 2;

>         range dynamic-bootp 192.168.1.1  192.168.1.255;
>         default-lease-time 21600;
>         max-lease-time 43200;

>         # we want the nameserver to appear at a fixed address
>         host ns {
>                 next-server marvin.redhat.com;
>                 hardware ethernet 12:34:56:78:AB:CD;
>                 fixed-address 207.175.42.254;

> I made sure the firewall was stopped before trying. I am guess it is a
> problem with the subnet but i just cannot figure out the solution.

> Thanks in advance.

> Kind regards,

> Michael.

p.s. tried again today - Still no luck - this is the relevarnt output
from  /var/log/messages

Aug  5 15:21:45 michael dhcpd: DHCPDISCOVER from 00:50:fc:ab:e9:0c
(hp) via eth1Aug  5 15:21:45 michael dhcpd: DHCPOFFER on 192.168.1.255
to 00:50:fc:ab:e9:0c (hp) via eth1

 
 
 

1. dns update from dhcp server ok for windows clients, not ok for linux (dhclient) clients

Hi,

The subjects says it all (almost):

we have a linux dhcp server (dhcp-3.0pl1-26) happily distributing ip
adresses, and updating our dns server (on a separate linux server, running
bind bind-9.2.1-1.7x.2).

on our windows desktops, we have no problems: they request an ip adress,
obtain it, and via the dhcp server the dns gets updated.

however, i needed to configure a network interface of a linux machine via
dhcp, and although the ip adress is acquired and the network interface is
brought up, somehow the dns does not get updated.

we only allow dns updates from the dhcp server, and i am surprised why there
would be a difference between a linux machine using dhclient to request an
ip adress, and a windows machine.

the /var/log/messages shows no errors from either dns or bind, but a clue
could be that the DHCPREQUEST doesn't seem to send the machine's hostname,
whereas the windows client do seem to send it.

look at these log entries:

this is a windows machine

Aug  6 14:22:22 frontend dhcpd: DHCPREQUEST for 172.21.3.228 from
00:90:27:23:21:88 (atlantis) via eth0
Aug  6 14:22:22 frontend dhcpd: DHCPACK on 172.21.3.228 to 00:90:27:23:21:88
(atlantis) via eth0

and this is from the linux machine

Aug  6 14:35:46 frontend dhcpd: DHCPREQUEST for 172.21.3.250 (172.21.3.2)
from 00:0b:db:d5:5c:7e via eth0
Aug  6 14:35:46 frontend dhcpd: DHCPACK on 172.21.3.250 to 00:0b:db:d5:5c:7e
via eth0

as you can see, the hostname of the linux machine is not displayed after the
mac adress, whereas the windows machine does show it.

Any ideas on how to solve this annoying problem ?

thanks,

Tom.

2. Xwindows Can't Find Fonts?

3. Dhcp problem between Linux DHCP Server & Linux client

4. Spontaneous Logouts under SLS w/lib43 -- Cause?

5. DNS Problems on RedHat 8.0: Linux client, Windows DHCP server

6. Using <ALT> as META-key in TCSH.

7. dhcp problems between linux server and Windows XP client

8. YPBIND_PROC error domain not bound

9. DHCP problems (Linux server, Windows clients)

10. Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update

11. Linux DHCP server with Windows clients

12. DHCP server on Linux -> windows 98 client

13. Newbie: DSL Router (& DHCP server) and 'client hostname' for Linux