[완료] dnsmasq 서버에서 클라이언트에 ip할당이 되질 않습니다

hyangii의 이미지

안녕하세요-

dnsmasq를 통해 IP를 동적할당하는 작업을 하려 하는데, 서버에서 클라이언트로부터 요청을 받는 것까진 확인이 되는데, 그 요청 후에 IP를 할당하는 작업이 되질 않네요

tcpdump를 통해 확인한 패킷 전송 내역입니다.

10.0.0.1은 서버 IP입니다.

15:45:11.847084 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 02:16:3e:26:bc:5d (oui Unknown), length 300
15:45:11.847327 IP 10.0.0.1.bootps > 10.0.0.4.bootpc: BOOTP/DHCP, Reply, length 303
15:45:12.623314 ARP, Request who-has 10.0.0.3 tell 10.0.0.1, length 28
15:45:13.623310 ARP, Request who-has 10.0.0.3 tell 10.0.0.1, length 28
15:45:14.623307 ARP, Request who-has 10.0.0.3 tell 10.0.0.1, length 28
15:45:15.431765 CDPv2, ttl: 180s, Device-ID 'Service_1', length 64
15:45:16.843320 ARP, Request who-has 10.0.0.4 tell 10.0.0.1, length 28
15:45:17.843309 ARP, Request who-has 10.0.0.4 tell 10.0.0.1, length 28
15:45:18.843317 ARP, Request who-has 10.0.0.4 tell 10.0.0.1, length 28

02:16:3e:26:bc:5d는 클라이언트의 MAC어드레스이므로, 제대로 요청을 받고 있습니다.

IP 10.0.0.1.bootps > 10.0.0.4.bootpc: BOOTP/DHCP, Reply, length 303
이 줄을 보면 서버에서 10.0.0.4를 주는? 것 같은데,

정작 클라이언트에서는
Listening on LPF/eth0/02:16:32:26:bc:5d
Sending on LPF/eth0/02:16:32:26:bc:5d
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
5 bad udp checksums in 5 packets
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

이라고 나옵니다. 5 bad udp checksums in 5 packets 이 부분이 문제일까요?
서버가 IP를 제대로 못주는 것인지, 클라이언트가 할당을 못하는건지 감이 오질 않습니다.

비슷한 경험을 해결하신분 있으시면 도움 부탁드립니다

hyangii의 이미지

자문자답이네요, 3일간 고생했던게 신기하게도 kldp에 글을 쓰고 한시간도 지나지 않아 해결이 됐네요 ㅠ_ㅠ

5 bad udp checksums in 5 packets이 문제였던게 맞았습니다.

서버의 udp checksum 기능을 비활성화하니 ip 할당이 잘 되네요.

체크섬 비활성화는 ethtool을 썼습니다.

#ethtool -K eth0 tx off

http://www.gossamer-threads.com/lists/xen/users/214896 참고 URL입니다.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.