Quote:
Originally posted by MasterCephus
Can't bind to dhcp address: Permission denied
|
okay, time to start troubleshooting... here's a few steps you can run through:
1 - make sure there isn't anything already bound to port 67/UDP:
Code:
netstat -a | grep bootps
or maybe:
Code:
netstat -an | grep ":67"
if you DID have something it would look like this:
Code:
win32sux@darkstar:~$ netstat -a | grep bootps
udp 0 0 *:bootps *:*
win32sux@darkstar:~$ netstat -an | grep ":67"
udp 0 0 0.0.0.0:67 0.0.0.0:*
2 - make sure you have a leases file created... usually you need to create an empty lease file on your own before you start dhcpd for the first time AFAIK... on slackware the file to create is
/var/state/dhcp/dhcpd.leases but i'm not sure which it is on fedora... to create the file you'd do something like:
Code:
touch /var/state/dhcp/dhcpd.leases
3 - try using a simpler (known-good)
dhcpd.conf just as a test to determine if their might be an issue with your current conf file:
Code:
ddns-update-style none;
subnet 192.168.1.1 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-name "elliott.lan";
option domain-name-servers 192.168.1.1;
option broadcast-address 192.168.1.255;
range 192.168.1.100 192.168.3.115;
default-lease-time 43200;
max-lease-time 86400;
}
4 - consider if this might be an "selinux" issue... i've never used selinux but i know fedora includes selinux so maybe it's security features are preventing you from binding properly and must be configured accordingly... this is just a wild guess, take it with a a huge grain of salt (i don't even know if selinux does this kinda thing)...
BTW, you probably aren't missing your leases file (as you would have gotten a leases error instead AFAIK) but i left that step in there cuz it's a common thing and it might help someone else who runs into this thread...