Hello,
I have a network (/20) divided on 16 aliases. I want to allow unknown MACs on this network in 192.168.14.0/24 and 192.168.15.0/24 networks. I edited dhcpd.conf so it looks like this:
This is just the beginning of the dhcpd.conf file. The subnets declarations repeat with IP's changed accordingly.
The problem is that the PCs connected to the network sometimes get an IP address but no connection to the server (can't ping the server), sometimes they don't get an IP at all. I am talking about the PCs that don't have their MAC address written in the defined_hosts.list file. In the dhcpd.log file I can see:
What is that dhcp.c:1305 error? I opened the dhcp.c file, located at /usr/src/usr.sbin/sysinstall/dhcp.c and line 1305 is the last line, which is empty...
I have a network (/20) divided on 16 aliases. I want to allow unknown MACs on this network in 192.168.14.0/24 and 192.168.15.0/24 networks. I edited dhcpd.conf so it looks like this:
Code:
default-lease-time 86400;
ddns-update-style interim;
log-facility local3; # Note: syslog-ng filters by program
#
# Network options
#
shared-network camin
{
authoritative;
option domain-name "home.ro";
option domain-name-servers 8.8.8.8;
subnet 192.168.15.0 netmask 255.255.255.0
{
default-lease-time 600;
option routers 192.168.15.9; #Alias15's IP
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.15.255;
pool
{
range 192.168.15.10 192.168.15.100;
}
}
subnet 192.168.0.0 netmask 255.255.255.0
{
option routers 192.168.0.9; #Alias0's IP
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
server-identifier 192.168.0.0;
}
include "/usr/local/etc/defined_hosts.list";
}
The problem is that the PCs connected to the network sometimes get an IP address but no connection to the server (can't ping the server), sometimes they don't get an IP at all. I am talking about the PCs that don't have their MAC address written in the defined_hosts.list file. In the dhcpd.log file I can see:
Code:
Feb 26 14:06:45 c3 dhcpd: DHCPDISCOVER from 00:11:00:11:22:00 via bge1
Feb 26 14:06:45 c3 dhcpd: icmp_echorequest 172.23.15.10: Invalid argument
Feb 26 14:06:46 c3 dhcpd: DHCPOFFER on 172.23.15.10 to 00:11:00:11:22:00 (Hac3ru-PC) via bge1
Feb 26 14:06:46 c3 dhcpd: Unable to add forward map from Hac3ru-PC.home.ro to 172.23.15.10: timed out
Feb 26 14:06:46 c3 dhcpd: DHCPREQUEST for 172.23.15.10 (172.23.0.1) from 00:11:00:11:22:00 (Hac3ru-PC) via bge1
Feb 26 14:06:46 c3 dhcpd: DHCPACK on 172.23.15.10 to 00:11:00:11:22:00 (Hac3ru-PC) via bge1
Feb 26 14:06:49 c3 dhcpd: DHCPINFORM from 172.23.15.10 via bge1
Feb 26 14:06:49 c3 dhcpd: DHCPACK to 172.23.15.10 (00:11:00:11:22:00) via bge1
Feb 26 14:06:49 c3 dhcpd: send_packet: Invalid argument
Feb 26 14:06:49 c3 dhcpd: dhcp.c:1305: Failed to send 305 byte long packet over fallback interface.
Feb 26 14:06:52 c3 dhcpd: DHCPINFORM from 172.23.15.10 via bge1
Feb 26 14:06:52 c3 dhcpd: DHCPACK to 172.23.15.10 (00:11:00:11:22:00) via bge1
Feb 26 14:06:52 c3 dhcpd: send_packet: Invalid argument
Feb 26 14:06:52 c3 dhcpd: dhcp.c:1305: Failed to send 305 byte long packet over fallback interface.