dhcpd 및 브리지 - 서브넷 선언 오류 없음

dhcpd 및 브리지 - 서브넷 선언 오류 없음

Debian 8에서 dhcpd 구성을 준비했는데 성공적으로 실행되었지만 브리지를 추가했는데 dhcpd가 실패했습니다.

다리:

root@remote:/home/s# brctl show
bridge name bridge id       STP enabled interfaces
br0     8000.00224dad5ddf   no      eth0
                                    eth1
root@remote:/home/s# cat /etc/network/interfaces
auto lo br0
iface lo inet loopback

iface ppp0 inet wvdial
provider orange

iface eth0 inet manual

iface eth1 inet manual

allow-hotplug br0
iface br0 inet static
bridge_ports eth0 eth1
address 192.168.0.1
netmask 255.255.255.0

root@remote:/home/s# 

DHCPD:

root@remote:/home/s# systemctl -l status isc-dhcp-server.service
● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server)
   Active: failed (Result: exit-code) since Sun 2018-07-01 21:51:43 CEST; 24min ago
  Process: 1037 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)

Jul 01 21:51:41 remote dhcpd[1076]: No subnet declaration for eth0 (no IPv4 addresses).
Jul 01 21:51:41 remote dhcpd[1076]: ** Ignoring requests on eth0.  If this is not what
Jul 01 21:51:41 remote dhcpd[1076]: you want, please write a subnet declaration
Jul 01 21:51:41 remote dhcpd[1076]: in your dhcpd.conf file for the network segment
Jul 01 21:51:41 remote dhcpd[1076]: to which interface eth0 is attached. **
Jul 01 21:51:43 remote isc-dhcp-server[1037]: Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
Jul 01 21:51:43 remote isc-dhcp-server[1037]: failed!
Jul 01 21:51:43 remote systemd[1]: isc-dhcp-server.service: control process exited, code=exited status=1
Jul 01 21:51:43 remote systemd[1]: Failed to start LSB: DHCP server.
Jul 01 21:51:43 remote systemd[1]: Unit isc-dhcp-server.service entered failed state.

root@remote:/home/s# cat /etc/dhcp/dhcpd.conf 
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.2 192.168.0.6;
  option domain-name-servers 8.8.8.8,8.8.4.4;
  option routers  192.168.0.1;}
root@remote:/home/s# 

이것을 어떻게 추가 "subnet declaration for eth0"하고 dhcpd 서비스를 수정합니까?

답변1

원래 DHCP 서버 구성에서는 eth0을 사용했습니다. 이제 네트워크 정의에서 br0을 br0으로 바꾸었으므로 그에 따라 DHCP 서버 구성을 업데이트해야 합니다.

관련 정보