Hello, everyone!
I have strange problem when using CARP address as source ip.
FreeBSD 13.2-RELEASE configured with primary ip: 10.10.0.16 and CARP ip: 10.10.0.26
Everything works as expected, packets incoming to carp address and outgoing from primary address with no problem.
But when i try use CARP as source address - i see no return packets.
For example, ping host in same network from CARP ip:
On host 10.10.0.25 i see incoming and outgoing packets:
what am I doing wrong?
my config:
I have strange problem when using CARP address as source ip.
FreeBSD 13.2-RELEASE configured with primary ip: 10.10.0.16 and CARP ip: 10.10.0.26
Everything works as expected, packets incoming to carp address and outgoing from primary address with no problem.
But when i try use CARP as source address - i see no return packets.
For example, ping host in same network from CARP ip:
Code:
ping -S 10.10.0.26 10.10.0.25
PING 10.10.0.25 (10.10.0.25) from 10.10.0.26: 56 data bytes
...
--- 10.10.0.25 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
On host 10.10.0.25 i see incoming and outgoing packets:
Code:
15:17:33.394168 IP 10.10.0.26 > 10.10.0.25: ICMP echo request, id 31491, seq 3, length 64
15:17:33.394225 IP 10.10.0.25 > 10.10.0.26: ICMP echo reply, id 31491, seq 3, length 64
what am I doing wrong?
my config:
Code:
vmx0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4e403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
ether 00:50:56:b7:58:b8
inet 10.10.0.16 netmask 0xffffff00 broadcast 10.10.0.255
inet 10.10.0.26 netmask 0xffffff00 broadcast 10.10.0.255 vhid 2 <====== tested with /32 and /24 netmask
carp: MASTER vhid 2 advbase 1 advskew 0
media: Ethernet autoselect
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 10.10.0.1 UGS vmx0
10.10.0.0/24 link#1 U vmx0
10.10.0.16 link#1 UHS lo0
10.10.0.26 link#1 UHS lo0
127.0.0.1 link#2 UH lo0
net.inet.carp.ifdown_demotion_factor: 240
net.inet.carp.senderr_demotion_factor: 240
net.inet.carp.demotion: 0
net.inet.carp.log: 1
net.inet.carp.preempt: 1
net.inet.carp.dscp: 56
net.inet.carp.allow: 1