Kim Zeitler(kim.zeit...@konzept-is.de) on 2016.04.15 11:41:07 +0200:
> Hello
> 
> maybe a stupid question, but is it possible to run a carp(4) interface 
> on vlan(4) interfaces?

yes
 
> In the following setup we have the problem that both boxes can be pinged 
> on their address associated with their respective vlan(4) interface, but 
> not on the carp(4) interface IP. Both boxes are recent installs and are 
> running -current
> 
> em2 (no ip) ---> vlan100 (192.168.150.200) ---> carp2 (192.168.150.1)
>             \
>              --> vlan101 (192.168.151.200) ---> carp3 (192.168.151.1)
> 
> respectively the corresponding node using .202 instead of .200 for the 
> vlan(4) interfaces

you did not send the output of

ifconfig vlan
ifconfig carp

this might help
 
> == The configuration ==
> 
> # uname -a
> OpenBSD router12 5.9 GENERIC.MP#1983 amd64
> 
> # cat /etc/hostname.em2
> up
> 
> # cat /etc/hostname.vlan100
> inet 192.168.150.200 255.255.255.0 192.168.150.255 vlan 100 vlandev em2

try to write this as

inet 192.168.150.200 255.255.255.0 NONE
vlan 100 vlandev em2

> # cat /etc/hostname.carp2
> inet 192.168.150.1 255.255.255.0 192.168.150.255 vhid 201 carpdev 
> vlan100 pass 1234 group wlan

inet 192.168.150.1 255.255.255.0 NONE
vhid 201 carpdev vlan100 pass 1234
group wlan

> # cat /etc/pf.conf

if above does not work, try pfctl -d
also, the pf.conf you show is not complete, so ...

> pass quick on {em2,vlan100,vlan101} proto carp
> ...
> pass inet proto icmp icmp-type $icmp_types
> pass vlan100:network
> ...
> 
> # netstat -rn
> ...
> 192.168.150/24     192.168.150.200    UCP        0     4401     -     4 
> vlan100
> 192.168.150/24     192.168.150.1      CP         0        0     -     4 
> carp2
> 192.168.150.1      00:00:5e:00:01:c9  UHLl       0     9981     -     1 
> carp2
> 192.168.150.200    90:e2:ba:c1:11:11  UHLl       0       30     -     1 
> vlan100
> 192.168.150.255    192.168.150.200    UHPb       0       80     -     1 
> vlan100
> 192.168.150.255    192.168.150.1      HPb        0        0     -     1 
> carp2
> 192.168.151/24     192.168.151.200    UCP        1     3040     -     4 
> vlan101
> 192.168.151/24     192.168.151.1      CP         0        0     -     4 
> carp3
> 192.168.151.1      00:00:5e:00:01:ca  UHLl       0      182     -     1 
> carp3
> 192.168.151.200    90:e2:ba:c1:11:11  UHLl       0       36     -     1 
> vlan101
> 192.168.151.255    192.168.151.200    UHPb       0        0     -     1 
> vlan101
> 192.168.151.255    192.168.151.1      HPb        0        0     -     1 
> carp3
> 
> 
> Cheers
> Kim
> 

-- 

Reply via email to