On 3.6, I have successfully used dhcpd over vlan interfaces, with the
gateway between vlans being the machine running dhcpd.

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?

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?

I have tried

/etc/hostname.em1
        # subnet 10.1.1/24 is untagged; other subnets are tagged
        inet 10.1.1.2 0xffffff00

/etc/hostname.vlan100
        vlan 100 vlandev em1
        inet 10.1.100.2 0xffffffff

/etc/hostname.carp100
        vhid 100 pass editted carpdev vlan100
        inet 10.1.100.1 0xffffff00

as well as other combinations of netmask and trying with no vlan100
address at all (just the first line).

Running dhcpd, I get warnings about multiple networks with the same
address.

Running tcpdump on the gateway machine, it seems that my vlan100
traffic includes the dhcp request, but no response.  This was true
even without the address line in the vlan100 config.

It seems to me that both carp and dhcpd do stuff to make their
interfaces able to receive appropriate packets, and I wonder if
they're getting in each other's way.

I have tried google.  I have tried rtfm.  I have looked for myself.

Now I'm asking.

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.

--
Christopher Vance

Reply via email to