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

A publicface at bak.rr.com
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 255.255.255.0 ?
>
> On 1/26/2018 4:57 PM, A wrote:
>> iface enp4s5 inet static
>>     address 10.1.1.2/24
>>     gateway 10.1.1.1
>>     network 10.1.1.0
>>     netmask 255.255.255.255
>>     broadcast 10.1.1.255

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


>
> Also in your first post:
> subnet 10.1.1.0 netmask 255.255.255.0 {
> *interface wlp2s0;*
>         option domain-name-servers 10.1.1.1;
>         max-lease-time 7200;
>         default-lease-time 600;
>         range 10.1.1.10 10.1.1.250;
>         option subnet-mask 255.255.255.0;
>         option broadcast-address 10.1.1.255;
>         option routers 10.1.1.1;
>
> 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 
interfaces!"

>
> What does 'ip -4 -o addr' show?
>
# ip -4 -o addr
1: lo    inet 127.0.0.1/8 scope host lo\       valid_lft forever 
preferred_lft forever
3: enp6s0    inet xx.xx.xx.xx/20 brd 255.255.255.255 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: <https://lists.isc.org/pipermail/dhcp-users/attachments/20180126/f3d9adf6/attachment.html>


More information about the dhcp-users mailing list