Ubuntu 18.04 DHCP server 관련 (client가 remote에 있는 환경)

skyinfo34의 이미지

안녕하세요.
Ubuntu 18.04 에서 DHCP server 를 구동하려 합니다.
그런데, direct network이 아니라, remote network 환경입니다.
따라서, 서버와 client 사이에 relay agent가 있는 구성입니다.

DHCP server ----------- DHCP Relay Agent------------- DHCP client
(10.1.1.1/24) (10.1.1.2/24) (10.100.100.1/24) (10.100.100.0/24)
(10.200.200.1/24) (10.200.200.0/24)

위와 같은 구성에서, isc-dhcp-server 를 구동시키니 계속 에러가 발생합니다.
subnet이 10.1.1.1/24와 일치하지 않아서 발생하는 것으로 보입니다.
--> subnet을 10.1.1.0/24 로 일치시키면, 정상 동작합니다.
혹시, 이런 구성에서 DHCP server를 구동시킬수 있는 옵션이나 설정이 있을까요?
미리 감사드립니다.^^

//에러 메세지
No subnet declaration for ens33 (10.1.1.1).
** Ignoring requests on ens33. If this is not what you want, please write a subnet declaration
in your dhcpd.conf file for the network segment to which interface ens33 is attached. **

Not configured to listen on any interfaces!

If you think you have received this message due to a bug rather No subnet declaration for ens33 (10.1.1.1).
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.

///etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
authoritative;

shared-network test-net {
subnet 10.100.100.0 netmask 255.255.255.0 {
range 10.100.100.10 10.100.100.100;
option subnet-mask 255.255.255.0;
option broadcast-address 10.100.100.255;
option routers 10.100.100.1;
# option ip-forwarding off;
option domain-name-servers 10.1.1.1;
# option domain-name "internal.example.org";
}
subnet 10.200.200.0 netmask 255.255.255.0 {
range 10.200.200.10 10.200.200.100;
option subnet-mask 255.255.255.0;
option broadcast-address 10.200.200.255;
option routers 10.200.200.1;
# option ip-forwarding off;
option domain-name-servers 10.1.1.1;
# option domain-name "internal.example.org";
}
}

//실행결과
root@test-vm-05:/home/test# service isc-dhcp-server restart
root@test-vm-05:/home/test# service isc-dhcp-server status
● isc-dhcp-server.service - ISC DHCP IPv4 server
Loaded: loaded (/lib/systemd/system/isc-dhcp-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2021-07-20 14:26:15 KST; 3s ago
Docs: man:dhcpd(8)
Process: 127249 ExecStart=/bin/sh -ec CONFIG_FILE=/etc/dhcp/dhcpd.conf; if [ -f /etc/ltsp/dhcpd.conf ]; then CONFIG_FILE=/etc/ltsp/dhcpd.conf; fi; [ -e /var/lib/dhcp/dhcpd
Main PID: 127249 (code=exited, status=1/FAILURE)

Jul 20 14:26:15 test-vm-05 dhcpd[127249]:
Jul 20 14:26:15 test-vm-05 dhcpd[127249]: Not configured to listen on any interfaces!
Jul 20 14:26:15 test-vm-05 dhcpd[127249]:
Jul 20 14:26:15 test-vm-05 dhcpd[127249]: If you think you have received this message due to a bug rather
Jul 20 14:26:15 test-vm-05 dhcpd[127249]: than a configuration issue please read the section on submitting
Jul 20 14:26:15 test-vm-05 dhcpd[127249]: bugs on either our web page at www.isc.org or in the README file
Jul 20 14:26:15 test-vm-05 dhcpd[127249]: before submitting a bug. These pages explain the proper
Jul 20 14:26:15 test-vm-05 dhcpd[127249]: process and the information we find helpful for debugging..
Jul 20 14:26:15 test-vm-05 dhcpd[127249]:
Jul 20 14:26:15 test-vm-05 dhcpd[127249]: exiting.
lines 1-17/17 (END)
root@test-vm-05:/home/test#

skyinfo34의 이미지

해결했습니다. 다른분들 참고차 글 남깁니다.
server에서 자신의 ip가 포함되지 않으면, start하지 않네요.
subnet 10.1.1.0 netmask 255.255.255.0
를 추가해줬습니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.