No subnet declaration; Can't open /var/lib/dhcp/dhcpd.leases for append

A publicface at
Sat Jan 27 06:34:16 UTC 2018

Thanks for reponding!

On 01/26/2018 09:04 PM, Bill Shirley wrote:
> Shouldn't the netmask be ?
> On 1/26/2018 4:57 PM, A wrote:
>> iface enp4s5 inet static
>>     address
>>     gateway
>>     network
>>     netmask
>>     broadcast

Probably... I don't know how I missed it.  Good catch!  Fixed it.

> Also in your first post:
> subnet netmask {
> *interface wlp2s0;*
>         option domain-name-servers;
>         max-lease-time 7200;
>         default-lease-time 600;
>         range;
>         option subnet-mask;
>         option broadcast-address;
>         option routers;
> As far as I know there is no interface directive.  Plus wlp2s0 is the 
> wrong
> interface.  You should remove that line.

  Wrong name for the device?  Or just shouldn't be the wireless 
interface?  Why is it wrong?
I got that interface directive from a web page...somewhere.  If that's 
not how to specify the interface for that subnet, then what is the 
proper way please?

I've removed it.  Still getting "Not configured to listen on any 

> What does 'ip -4 -o addr' show?
# ip -4 -o addr
1: lo    inet scope host lo\       valid_lft forever 
preferred_lft forever
3: enp6s0    inet xx.xx.xx.xx/20 brd scope global 
enp6s0\       valid_lft forever preferred_lft forever

Redacted obviously, but it's my ISP assigned WAN address.

# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode 
DEFAULT group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp4s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP mode DEFAULT group default qlen 1000
     link/ether c8:3a:35:da:42:72 brd ff:ff:ff:ff:ff:ff
3: enp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP mode DEFAULT group default qlen 1000
     link/ether 70:85:c2:3b:13:24 brd ff:ff:ff:ff:ff:ff
4: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue 
state DOWN mode DEFAULT group default qlen 1000
     link/ether f0:7d:68:c1:b4:13 brd ff:ff:ff:ff:ff:ff
root at yellow:~# iwconfig
enp6s0    no wireless extensions.

wlp2s0    IEEE 802.11  ESSID:"BHNDG1670B1Z12"
           Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
           Tx-Power=20 dBm
           Retry short limit:7   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off

lo        no wireless extensions.

enp4s5    no wireless extensions.

> Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dhcp-users mailing list