Quantcast
Channel: Linux.org.ru: Форум (тех. форум)
Viewing all articles
Browse latest Browse all 73880

Настройка DHCP

$
0
0

Ради науки потребовалось превратить ноутбук в WiFi-роутер, для чего на него требуется установить DHCP-сервер. Ставлю ISC DHCPD, но он не работает. Dnsmasq не предлагать т.к. DNS у нас и так есть (ноут стоит за роутером, который и отдаёт нам DNS). Беспроводное устройство называется wlp2s0, проводное enp3s0f2. Конфиг ISC DHCPD:

subnet 192.168.1.0 netmask 255.255.255.0 {
    interface wlp2s0;
    range 192.168.1.2 192.168.1.254;
    default-lease-time 7200;
    option subnet-mask 255.255.255.0;
    option routers 192.168.1.1;
    option domain-name-servers 192.168.0.1;
}
Его вывод:
Internet Systems Consortium DHCP Server 4.3.3-P1 Gentoo-r0
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcp/dhcpd.pid
Wrote 0 leases to leases file.

No subnet declaration for enp3s0f2 (192.168.0.228).
** Ignoring requests on enp3s0f2.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface enp3s0f2 is attached. **


No subnet declaration for wlp2s0 (192.168.1.1).
** Ignoring requests on wlp2s0.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface wlp2s0 is attached. **


Not configured to listen on any interfaces!

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..

exiting.

 


Viewing all articles
Browse latest Browse all 73880

Trending Articles