Linux DHCP Server: Difference between revisions

From Braindisconnect
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Linux]]
[[Category:Linux]]


Error
 
isc-dhcp-server: interface name too long
=== Errors ===
 
dhcpd -t /etc/dhcp/dhcpd.conf
/etc/dhcp/dhcpd.conf: interface name too long (is 20)
dhcpd -t /etc/default/isc-dhcp-server
/etc/default/isc-dhcp-server: interface name too long (is 28)
 
tail -f /var/log/message
Mar 14 19:50:49 server dhcpd: No subnet declaration for eth1 (172.16.31.254).
Mar 14 19:50:49 server dhcpd: ** Ignoring requests on eth1.  If this is not what
Mar 14 19:50:49 server dhcpd:    you want, please write a subnet declaration
Mar 14 19:50:49 server dhcpd:    in your dhcpd.conf file for the network segment
Mar 14 19:50:49 server dhcpd:    to which interface eth1 is attached. **
Mar 14 19:50:49 server dhcpd:
Mar 14 19:50:49 server dhcpd:
Mar 14 19:50:49 server dhcpd: Not configured to listen on any interfaces!
 


This is because the interface set for DHCP does have the subnet defined in a declaration statement in dhcp.conf
This is because the interface set for DHCP does have the subnet defined in a declaration statement in dhcp.conf

Revision as of 20:07, 14 March 2015


Errors

dhcpd -t /etc/dhcp/dhcpd.conf

/etc/dhcp/dhcpd.conf: interface name too long (is 20)

dhcpd -t /etc/default/isc-dhcp-server

/etc/default/isc-dhcp-server: interface name too long (is 28)

tail -f /var/log/message

Mar 14 19:50:49 server dhcpd: No subnet declaration for eth1 (172.16.31.254).
Mar 14 19:50:49 server dhcpd: ** Ignoring requests on eth1.  If this is not what
Mar 14 19:50:49 server dhcpd:    you want, please write a subnet declaration
Mar 14 19:50:49 server dhcpd:    in your dhcpd.conf file for the network segment
Mar 14 19:50:49 server dhcpd:    to which interface eth1 is attached. **
Mar 14 19:50:49 server dhcpd: 
Mar 14 19:50:49 server dhcpd: 
Mar 14 19:50:49 server dhcpd: Not configured to listen on any interfaces!


This is because the interface set for DHCP does have the subnet defined in a declaration statement in dhcp.conf