Oops, i forgot to Cc the list!

Imre Oolberg wrote:
Hi!

 > (private) HKS wrote:
Your carp interface won't be doing much for you if it doesn't have an
IP address configured.

Yes, i think so, too and i have carp device configured ip aadress.

To present my case more clearly here is my little experiment.

CASE ONE, dhcpd is bound to physical interface, everything works as expected

dchpserver# ifconfig rl0
rl0: ...
     inet 10.0.10.250 netmask 0xffffff00 broadcast 10.0.10.255

dhcpclient# dhclient -d rl0
DHCPREQUEST on rl0 to 255.255.255.255 port 67
DHCPACK from 10.0.10.250
bound to 10.0.10.32 -- renewal in 21600 seconds.

dhcpserver# dhcpd -d rl0
DHCPREQUEST for 10.0.10.32 from 00:c0:26:27:4d:fe via rl0
DHCPACK on 10.0.10.32 to 00:c0:26:27:4d:fe via rl0

dhcpserver# tcpdump -nettti rl0 not proto carp
tcpdump: listening on rl0, link-type EN10MB
Apr 24 06:35:01.251249 00:c0:26:27:4d:fe ff:ff:ff:ff:ff:ff 0800 342: 10.0.10.32.68 > 255.255.255.255.67: xid:0x9d19635d [|bootp] [tos 0x10] Apr 24 06:35:01.252596 00:e0:4c:02:89:18 00:c0:26:27:4d:fe 0800 342: 10.0.10.250.67 > 10.0.10.32.68: xid:0x9d19635d Y:10.0.10.32 S:10.0.10.250 [|bootp] [tos 0x10] Apr 24 06:35:01.267923 00:c0:26:27:4d:fe ff:ff:ff:ff:ff:ff 0806 60: arp who-has 10.0.10.32 tell 10.0.10.32

CASE TWO, dhcpd is bound to carp device (which runs on rl0 which doesnt ip address configured any more), client isnt getting an answer

dchpserver# ifconfig carp4
carp4: ...
       inet 10.0.10.250 netmask 0xffffff00 broadcast 10.0.10.255

dhcpclient# dhclient -d rl0
DHCPREQUEST on rl0 to 255.255.255.255 port 67
DHCPREQUEST on rl0 to 255.255.255.255 port 67
DHCPDISCOVER on rl0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on rl0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on rl0 to 255.255.255.255 port 67 interval 13

dhcpserver# dhcpd -d carp4

dhcpserver# tcpdump -nettti rl0 not proto carp
tcpdump: listening on rl0, link-type EN10MB
Apr 24 06:43:57.758341 00:c0:26:27:4d:fe ff:ff:ff:ff:ff:ff 0800 342: 10.0.10.32.68 > 255.255.255.255.67: xid:0x7a3c2ff [|bootp] [tos 0x10] Apr 24 06:44:05.764199 00:c0:26:27:4d:fe ff:ff:ff:ff:ff:ff 0800 342: 10.0.10.32.68 > 255.255.255.255.67: xid:0x7a3c2ff secs:8 [|bootp] [tos 0x10] Apr 24 06:44:13.774456 00:c0:26:27:4d:fe ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 255.255.255.255.67: xid:0x5e5dc1b3 [|bootp] [tos 0x10] Apr 24 06:44:16.784416 00:c0:26:27:4d:fe ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 255.255.255.255.67: xid:0x5e5dc1b3 secs:3 [|bootp] [tos 0x10] Apr 24 06:44:22.794616 00:c0:26:27:4d:fe ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 255.255.255.255.67: xid:0x5e5dc1b3 secs:9 [|bootp] [tos 0x10]

# tcpdump -nettti carp4 not proto carp
tcpdump: listening on carp4, link-type EN10MB
And dhcpserver and dhcpclient both have pf disabled.

If somebody could confirm that this is expected behavior with carp device and dhcpd i would be very glad to know!


I cannot confirm that this is expected behaviour, but i observed the
same. For some reason, carp devices do not see broadcast
(255.255.255.255) packets. You have to assign an address to the physical
device and have dhcpd(8) work on that one.


Regards,
        
        Heinrich

Reply via email to