Gentoo Archives: gentoo-embedded

From: mjinks@××××××××.edu
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] dhcp across segments with dnsmasq?
Date: Mon, 26 Jun 2006 21:19:04
Message-Id: 20060626211651.GB13974@uchicago.edu
1 We have a big old Dell running RedHat, which does nothing (any more) but
2 serve DHCP for a number of labs around our campus. We thought it would
3 be an ideal candidate for replacement with a home-rolled GNAP machine
4 using dnsmasq's DHCP service. It seemed to work well in testing, but
5 when we dropped in the replacement system we found that machines on
6 remote VLANs could no longer get addresses.
7
8 The campus network runs on Cisco switches, controlled by another group.
9 I'm pretty much Cisco-ignorant myself, but my undertanding is that the
10 VLANs which serve our DHCP clients have been configured to propagate
11 DHCP requests beyond the local segment and on to our centrally-located
12 DHCP server, and this works fine with the old machine.
13
14 A little tcpdumping shows some differences between the old (RedHat) box
15 and the new (GNAP) system. In this example, "msfc-ri-v17.uchicago.edu"
16 is the router which serves our DHCP client; "dell-test-03.uchicago.edu"
17 is the DHCP client; and "bonzai.uchicago.edu" houses the DHCP server.
18 tcpdump is running on bonzai:
19
20 14:42:27.985373 msfc-ri-v17.uchicago.edu.bootps > bonzai.uchicago.edu.bootps: (request) hops:1 xid:0x20dcf2e1 secs:4 flags:0x8000 G:msfc-ri-v17.uchicago.edu ether 0:f:1f:dc:f2:e1 [|bootp]
21 14:42:27.986066 bonzai.uchicago.edu.bootps > msfc-ri-v17.uchicago.edu.bootps: (reply) hops:1 xid:0x20dcf2e1 secs:4 flags:0x8000 Y:dell-test-03.uchicago.edu S:bonzai.uchicago.edu G:msfc-ri-v17.uchicago.edu ether 0:f:1f:dc:f2:e1 [|bootp] (DF)
22
23 Now here's an example of the same case, except that the hardware acting
24 as bonzai.uchicago.edu is now our GNAP machine:
25
26 01:06:27.601181 IP msfc-ri-v17.uchicago.edu.bootps > bonzai.uchicago.edu.bootps: BOOTP/DHCP, Request [|bootp]
27
28 The GNAP box doesn't issue a response, apparently because it can't see
29 that the request is coming from one of its listed DHCP clients.
30
31 So, does anybody know what might be going on here? I don't think that
32 dnsmasq is (necessarily) the culprit, since tcpdump shows more
33 information in the case of the packets dumped on the RedHat machine. Is
34 this a difference, maybe, in the uclibc network handling? Do I need to
35 tweak my kernel? Am I just crazy?
36
37 Thanks for any thoughts.
38
39 --Michael
40 --
41 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] dhcp across segments with dnsmasq? Natanael Copa <natanael.copa@×××××.com>
Re: [gentoo-embedded] dhcp across segments with dnsmasq? wireless <wireless@×××××××××××.com>