SuSE Support Database

Title: dhcpd: sendpkt: Network is unreachable

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- Contents
Deutsch
---

dhcpd: sendpkt: Network is unreachable

Applies to

SuSE Linux: Version 5.1

Symptom:

A DHCP server has been installed on a Linux machine. This serves for assigning IPs dynamically to the local network. Well, this doesn't work. There should be some output in /var/log/messages resembling something like:
Jan 16 17:36:56 LINUX00 dhcpd: DHCPDISCOVER from 0:60:8:4e:22:47 via eth0
Jan 16 17:36:56 LINUX00 dhcpd: DHCPOFFER on 192.168.0.100 to 0:60:8:4e:22:47 via eth0
Jan 16 17:36:56 LINUX00 dhcpd: sendpkt: Network is unreachable
There is no default route in your routing table:
> netstat -rn 
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.100.3   0.0.0.0         255.255.255.255 UH     1500 0          0 dummy0
192.168.100.0   0.0.0.0         255.255.255.0   U      1500 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U      3584 0          0 lo

Cause:

The DHCPD daemon sends its answer to the broadcast address 255.255.255.255. As there is no route for 255.255.255.0 this net is not reachable. That's why you get the error message: Network is unreachable

Solution:

There is a workaround. Just enter a route to 255.255.255.0 in /etc/route.conf. First you shutdown routing by entering:
/sbin/init.d/route stop
Now you should add the following line to /etc/route.conf:
255.255.255.0           0.0.0.0                 255.255.255.0           eth0
Now start the routing:
/sbin/init.d/route start

---

Keywords: DHCPD, NETWORK IS UNREACHABLE, 255.255.255.255

---

Feedback welcome: Send Mail to Rolf.Haberrecker@suse.de (Please give the following subject: SDB-dhcp_network)

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- Contents
Deutsch
---

SDB-dhcp_network, Copyright SuSE GmbH, Nuremberg, Germany - Version:
Impressum - Last generated: 24. Feb 1999 14:45:43 by maddin with sdb_gen 1.00.0