On 8/15/05, Christopher JS Vance <[EMAIL PROTECTED]> wrote:

> On 3.7, I am now wanting to replace the gateway between vlans by a
> pair of machines running carp over each vlan, but I still want to use
> dhcpd to allocate addresses to machines on each vlan.
> 
> Does somebody have a setup like this working?

I was trying a few months ago, after a few of the developers during
the Hackathon suggested that it should work fine. I'd like to pretend
I'm not an idiot, but I couldn't get it working.

> Should I tell dhcpd it's using the carp interfaces or the vlan ones?
> What network masks should I give the carp and vlan interfaces?
> Should I give the vlan interfaces an IP address at all?

My thinking (and I read through the dhcpd/carp code to try and verify
this) is that the carp interface doesn't receive all broadcast packets
(except arp), so the dhcp would have to be listening on the vlan
device. I did some tcpdump'ing on various interfaces to check that
out, and the dhcp requests were visible on the physical em1 and
vlan130 interfaces, but not the carp130 device.

I configured carp130 as x.x.130.254/24 carpdev vlan130, vlan130 as
x.x.130.253/24 vlan 130 vlandev em1, and started the dhcpd listening
on vlan130.

dhcpd was logging DHCPDISCOVER but not replying with anything. Same as
your result. I'm getting back to building a new router and that is a
feature I need working, so I'm about to take another stab at it in the
next week or two.

> If somebody can share appropriate fragments of their working
> /etc/hostname.* stuff, together with relevant hints for dhcpd, etc.,
> that would be real nice.  Ta muchly.

My sentiments, exactly.

-- 
Jon Simola
Systems Administrator
ABC Communications

Reply via email to