Hi,

After more test, it looks like a change in the mpath behavior.

Is looks like the route is based on the source IP and not the dest IP as it
should.

Is it expected ?


> Le 23 févr. 2016 à 10:54, Jean-Daniel Dupas <jddu...@xooloo.net> a écrit
:
>
> Hello,
>
> I have a router configured to distribute the traffic on 2 interfaces using
> equal-cost multipath
> running on OpenBSD 5.7. Everything works fine, but I'd like to upgrade it
to
> 5.8.
>
> The problem is that I can't make multipath works on OpenBSD 5.8. Whatever I
> do, all the traffic is directed to the first configured route.
>
> I have to external interface configured as follow:
>
>> ifconfig vio1 inet 192.168.1.3 255.255.255.0
>
>> ifconfig vio2 inet 194.79.168.21 255.255.255.248
>
>> sysctl -a | grep multipath
> net.inet.ip.multipath=1
>
> The traffic must be routed to 2 gateways: 192.168.1.1 and 194.79.168.17
>
> If I add a single route,
>
>> route add default 192.168.1.1
> or
>> route add default 194.79.168.17
>
> everything works fine. The traffic is send using that route, and the net is
> available.
>
> Now, if I add both routes using the -mpath flag, I don't see any traffic
going
> on the second one.
>
>> route add -mpath default 194.79.168.17
>> route add -mpath default 192.168.1.1
>
>> route -n show
> Internet:
> Destination        Gateway            Flags   Refs      Use   Mtu  Prio
Iface
> default            194.79.168.17      UGSP       3      248     -     8
vio2
> default            192.168.1.1        UGSP       0        0     -     8
vio1
> 10.0/16            10.0.0.2           UC         2        0     -     8
vio0
> …
>
>> traceroute -n <whatever I enter>
> 1  194.79.168.17  1.307 ms  1.066 ms  0.984 ms
> 2  178.132.16.251  19.014 ms  18.184 ms  18.136 ms
> 3  194.79.131.173  18.116 ms  18.709 ms  18.089 ms
> …
>
>
> If i set the 192.168.1.1 route before the other one, all traffic go out by
> that single route.
>
>> route add -mpath default 192.168.1.1
>> route add -mpath default 194.79.168.17
>
>> route -n show
> Internet:
> Destination        Gateway            Flags   Refs      Use   Mtu  Prio
Iface
> default            192.168.1.1        UGSP       0      130     -     8
vio1
> default            194.79.168.17      UGSP       2        8     -     8
vio2
> 10.0/16            10.0.0.2           UC         2        0     -     8
vio0
>
>> traceroute -n <whatever I enter>
> 1  192.168.1.1  0.954 ms  0.877 ms  0.724 ms
> 2  80.10.115.230  16.455 ms  16.119 ms  16.55 ms
> 3  10.123.204.86  16.715 ms 10.123.204.82  16.484 ms 10.123.204.86  16.692
> ms
> …
>
>
> Did someone managed to make multipath works on OpenBSD 5.8 ?
> Thanks.

Reply via email to