DHCP Error Message

Tags: , ,

We have one machine setup as a gateway, dns and dhcp server which connect by 3 network card and different subnet.

Today, my colleague was told me there is an error message in /var/log/message

Sep 25 12:22:18 planetmy dhcpd: No subnet declaration for eth0 (192.168.10.2).
Sep 25 12:22:18 planetmy dhcpd: ** Ignoring requests on eth0. If this is not what
Sep 25 12:22:18 planetmy dhcpd:
Sep 25 12:22:18 planetmy dhcpd: you want, please write a subnet declaration
Sep 25 12:22:18 planetmy dhcpd: in your dhcpd.conf file for the network segment
Sep 25 12:22:18 planetmy dhcpd: to which interface eth0 is attached. **
Sep 25 12:22:18 planetmy dhcpd: ** Ignoring requests on eth2. If this is not what
Sep 25 12:22:18 planetmy dhcpd: No subnet declaration for eth2 (192.168.2.2).
Sep 25 12:22:18 planetmy dhcpd: you want, please write a subnet declaration
Sep 25 12:22:18 planetmy dhcpd: ** Ignoring requests on eth2. If this is not what
Sep 25 12:22:18 planetmy dhcpd: in your dhcpd.conf file for the network segment
Sep 25 12:22:18 planetmy dhcpd: you want, please write a subnet declaration
Sep 25 12:22:18 planetmy dhcpd: to which interface eth2 is attached. **
Sep 25 12:22:18 planetmy dhcpd: in your dhcpd.conf file for the network segment
Sep 25 12:22:18 planetmy dhcpd: to which interface eth2 is attached. **
Sep 25 12:22:18 planetmy dhcpd: Sending on Socket/fallback/fallback-net

Hmmm… there is a mistake.

If you have more than one network card resides in the DHCP server, it is recommended to specify which interface(s) the DHCP server will use. Edit /etc/sysconfig/dhcpd by adding the appropriate interface to the DHCPDARGS= line. The entry in /etc/sysconfig/dhcpd should appear as follows:

Example:
/etc/sysconfig/dhcpd
DHCPDARGS=eth1

Restart the DHCP server and it’s working now!

DHCP Tutorial Reference:
techtutorial
cpqlinux
yolinux
linuxplanet

Possibly Related Posts:


Leave a Reply