On 2017-07-11 13:23, Remi Locherer wrote:
On 2017-07-11 11:32, Martin Pieuchot wrote:
Hello and thanks for the detailed bug report.
On 10/07/17(Mon) 17:52, Remi Locherer wrote:
>Synopsis: ifconfig carpX a.b.c.d -> arpresolve: route contains no arp
information
>Category: kernel
>Environment:
System : OpenBSD 6.1
Details : OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr 1 13:45:56 MDT
2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
After reconfiguring an existing carp interface with the same ip the
gateway stops forwarding traffic (forwarding to directly connected
hosts still works).
In /var/log/messages this can be found:
Jul 10 12:54:27 gw1 /bsd: arpresolve: 10.0.20.10: route contains no
arp information
How does the routing table looks like when you see such message? And
the ARP table?
gw1# route -nv show -inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu
Prio Iface Label
default 10.0.2.2 UGS 0 22 - 8
vio0
224/4 127.0.0.1 URS 0 0 32768 8
lo0
10.0.2/24 10.0.2.15 UCn 1 0 - 4
vio0
10.0.2.2 52:54:00:12:35:02 UHLch 2 16 - 3
vio0
10.0.2.15 08:00:27:23:af:65 UHLl 0 4 - 1
vio0
10.0.2.255 10.0.2.15 UHb 0 0 - 1
vio0
10.0.10/24 10.0.10.2 UCn 1 1 - 4
vio1
10.0.10/24 10.0.10.1 UCn 0 0 - 19
carp1
10.0.10.1 00:00:5e:00:01:17 UHLl 0 0 - 1
carp1
10.0.10.2 08:00:27:7d:87:23 UHLl 0 1 - 1
vio1
10.0.10.10 08:00:27:1e:30:02 UHLc 0 93 - 3
vio1
10.0.10.255 10.0.10.2 UHb 0 0 - 1
vio1
10.0.10.255 10.0.10.1 UHb 0 0 - 1
carp1
10.0.20/24 10.0.20.2 UCn 0 2 - 4
vio2
10.0.20/24 10.0.20.1 UCn 0 0 - 19
carp2
10.0.20.1 00:00:5e:00:01:17 UHLl 0 0 - 1
carp2
10.0.20.2 08:00:27:7e:f3:d5 UHLl 0 1 - 1
vio2
10.0.20.255 10.0.20.2 UHb 0 0 - 1
vio2
10.0.20.255 10.0.20.1 UHb 0 0 - 1
carp2
10.0.200/24 10.0.20.10 UGS 0 89 - 8
vio2
127/8 127.0.0.1 UGRS 0 0 32768 8
lo0
127.0.0.1 127.0.0.1 UHhl 1 2 32768 1
lo0
gw1# arp -an
Host Ethernet Address Netif Expire
Flags
10.0.2.2 52:54:00:12:35:02 vio0 19m32s
10.0.2.15 08:00:27:23:af:65 vio0
permanent l
10.0.10.1 00:00:5e:00:01:17 carp1
permanent l
10.0.10.2 08:00:27:7d:87:23 vio1
permanent l
10.0.10.10 08:00:27:1e:30:02 vio1 18m31s
10.0.20.1 00:00:5e:00:01:17 carp2
permanent l
10.0.20.2 08:00:27:7e:f3:d5 vio2
permanent l
gw1#
What happen if you destroy carp2 instead of re-adding the same
address?
Do you see the same problem?
Not 100% the same. My ping also stops and the same message is printed
to /var/log/mesages.
But the gateway does not send "icmp: host 10.0.200.1 unreachable" to
10.0.10.10.
I missed something here: In my test setup I have only a single gateway.
After
destroying carp2 the ip 10.0.20.1 is not configured anywhere. But that
ip is the
defautl gateway of the test client. That is why I do not see icmp
unreachable
messages sent by the gw1.
The routing and arp table after destroying carp2:
gw1# ifconfig carp2 destroy
gw1# route -nv show -inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu
Prio Iface Label
default 10.0.2.2 UGS 0 26 - 8
vio0
224/4 127.0.0.1 URS 0 0 32768 8
lo0
10.0.2/24 10.0.2.15 UCn 1 0 - 4
vio0
10.0.2.2 52:54:00:12:35:02 UHLch 2 20 - 3
vio0
10.0.2.15 08:00:27:23:af:65 UHLl 0 4 - 1
vio0
10.0.2.255 10.0.2.15 UHb 0 0 - 1
vio0
10.0.10/24 10.0.10.2 UCn 1 1 - 4
vio1
10.0.10/24 10.0.10.1 UCn 0 0 - 19
carp1
10.0.10.1 00:00:5e:00:01:17 UHLl 0 0 - 1
carp1
10.0.10.2 08:00:27:7d:87:23 UHLl 0 1 - 1
vio1
10.0.10.10 08:00:27:1e:30:02 UHLc 0 247 - 3
vio1
10.0.10.255 10.0.10.2 UHb 0 0 - 1
vio1
10.0.10.255 10.0.10.1 UHb 0 0 - 1
carp1
10.0.20/24 10.0.20.2 UCn 0 8 - 4
vio2
10.0.20.2 08:00:27:7e:f3:d5 UHLl 0 2 - 1
vio2
10.0.20.255 10.0.20.2 UHb 0 0 - 1
vio2
10.0.200/24 10.0.20.10 UGS 0 243 - 8
vio2
127/8 127.0.0.1 UGRS 0 0 32768 8
lo0
127.0.0.1 127.0.0.1 UHhl 1 2 32768 1
lo0
gw1# arp -an
Host Ethernet Address Netif Expire
Flags
10.0.2.2 52:54:00:12:35:02 vio0 19m0s
10.0.2.15 08:00:27:23:af:65 vio0
permanent l
10.0.10.1 00:00:5e:00:01:17 carp1
permanent l
10.0.10.2 08:00:27:7d:87:23 vio1
permanent l
10.0.10.10 08:00:27:1e:30:02 vio1 16m44s
10.0.20.2 08:00:27:7e:f3:d5 vio2
permanent l
gw1#