DHCP not working....."Network is unreachable"

DHCP not working....."Network is unreachable"

Post by Ingra » Sat, 07 Nov 1998 04:00:00



forgive me here, i am a linux newbee . . ..

i'm running Redhat 5.1 .. .

i'm trying to get dhcp working on my linux box for home, it does dial
in and ip masquerading.  i'm trying to get dhcp to assign ips to my
windows boxes

dial in and masquerading works fine, it's just dhcp - i just have to
manually set up my winders boxes, and this is tiring since i lug a
couple of them around and need to change everything manually at home.

dhcpd says it's listening and sending on eth0.  my box is configured
the same as the one i helped set up for a friend for him cable modem -
mine is basically the same but instead of 2 nics, i have a modem and a
nic.  dhcpd seems like it's happy, my dhcpd.conf file is identical to
my friends aside from my boxes ip . .. . but it won't work, and i'm
getting very frustrated.  it's something simple, i'm sure.

here's my dhcpd.conf:

default-lease-time 86400;
max-lease-time 604800;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 199.79.199.1, 199.79.199.2;
option domain-name "junk.net";

subnet 192.168.0.0 netmask 255.255.255.0 {
   range 192.168.0.2 192.168.0.254;

Quote:}

when it starts, dhcpd seems happy:

Internet Software Consortium DHCPD $Name: V2-BETA-1-PATCHLEVEL-6 $
Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium.
All rights reserved.
Listening on Socket/eth0/192.168.0.0
Sending on   Socket/eth0/192.168.0.0

problem is, when a client does a dhcp request, it fails and here's the
log:

Nov  6 03:14:02 gw dhcpd: DHCPDISCOVER from 00:10:4b:69:24:fc via eth0
Nov  6 03:14:02 gw dhcpd: DHCPOFFER on 192.168.0.2 to
00:10:4b:69:24:fc via eth0
Nov  6 03:14:02 gw dhcpd: sendpkt: Network is unreachable

huh?  "Network is unreachable"?

when it should look like:

Nov  1 03:44:45 stargate dhcpd: DHCPDISCOVER from 0:10:4b:69:24:fc via
eth0
Nov  1 03:44:45 stargate dhcpd: DHCPOFFER on 192.168.10.2 to
0:10:4b:69:24:fc via eth0
Nov  1 03:44:45 stargate dhcpd: DHCPREQUEST for 192.168.10.2 from
0:10:4b:69:24:fc via eth0
Nov  1 03:44:45 stargate dhcpd: DHCPACK on 192.168.10.2 to
0:10:4b:69:24:fc via eth0

one thing might be my choice of ip for my machine, 192.168.0.1.  on my
friends we chose 192.168.10.1.  could that be it???  i just am running
out of ideas.

any help anyone could suggest would be most greatly appreciated!  my
head is getting very sore from banging it on the desk!

          - Ingrate -

- http://www.kersur.net/~quake/ -

 
 
 

DHCP not working....."Network is unreachable"

Post by Tobias Reckhard (jest » Sun, 08 Nov 1998 04:00:00


Do you have the route to 255.255.255.255 set to go out via eth0?

Tobias

 
 
 

1. SMAIL problems: "lock failed", and "network is unreachable."

        Well, I got smail working so that it went through and delivered
all of the mail that wasn't delivered the last two months. Now I can't
send new mail to anyone. Here's a brief segment of what was in
/usr/spool/smail/logfile:



10/12/94 12:42:04: [m0qv6ke-0004mgC] received
|            from: mark
|         program: sendmail

|            size: 631 bytes

10/12/94 12:45:56: pid 253: new config files, exec(/usr/lib/sendmail)
10/12/94 12:45:56: pid 6860: smail daemon started
10/12/94 13:11:28: open_spool: /var/spool/smail/input/0qnI1X-0004o5C: lock failed: File exists
10/12/94 13:11:29: open_spool: /var/spool/smail/input/0qnI1X-0004o5C: lock failed: File exists
10/12/94 13:11:29: open_spool: /var/spool/smail/input/0qoews-0004oHC: lock failed: File exists
10/12/94 13:30:57: open_spool: /var/spool/smail/input/0qpm1L-0004oQC: lock failed: File exists
10/12/94 13:30:58: open_spool: /var/spool/smail/input/0qv6ke-0004mgC: lock failed: File exists

        I don't know if that help anyone or not. I'm running linux
1.1.45, and smail 3.1.28. My system is currently not connected to the
internet, though that shouldn't matter because I'm just trying to send
mail to myself.

        Anyone have any clues, or can point me into a direction to look?
If you need more information, email me.

        Much thanks.

        -Mark
--
"Key chuckles. 'If Skinny Puppy, in terms of the movie _Alien_, is a
chest-burster, then Doubting Thomas is more of a face-hugger,' he informs,
as if that were an explanation."
                                                        -Keyboard, Jan '92

2. HP560C and dvi files. Help.

3. GETSERVBYNAME()????????????????????"""""""""""""

4. ASUS CUV4X-D** MPS1.1/MPS1.4 data differences...

5. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

6. Comment/Feedbacks - Cambridge Computer Storage & Others

7. Network setup problem with Redhat 6.1 -- "network unreachable"

8. what's the meaning of -Wall of gcc

9. "Novell-like","non-TCP/IP","networking" OS to place Unix

10. "find" and "locate" commands not working, linux RH5.2

11. "127.1" works, but "localhost" does not!

12. "brctl" command not working, how to create "brctl" file?

13. Common Desktop "copy" & "paste" fuction keys not working in Exceed 6.1