[manjaro-general] Routing Issue

Rainer Dorsch ml at bokomoko.de
Fri Jan 21 20:37:53 CET 2022


Am Donnerstag, 20. Januar 2022, 23:21:21 CET schrieb Rainer Dorsch:
> Hi,
> 
> I hit a strange routing issue:
> 
> [n3150 ~]# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface 0.0.0.0         192.168.0.1     0.0.0.0         UG    1024   0       
> 0 enp2s0.1
> 192.168.0.0     0.0.0.0         255.255.255.0   U     1024   0        0
> enp2s0.1
> 192.168.2.0     0.0.0.0         255.255.255.0   U     1024   0        0
> enp2s0.2
> 192.168.7.0     0.0.0.0         255.255.255.0   U     1024   0        0
> enp2s0.7
> [n3150 ~]# traceroute 192.168.7.2
> traceroute to 192.168.7.2 (192.168.7.2), 30 hops max, 60 byte packets
>  1  192.168.2.1 (192.168.2.1)  0.282 ms  0.298 ms  0.218 ms
>  2  192.168.2.1 (192.168.2.1)  20.790 ms  40.667 ms  61.263 ms
> [n3150 ~]#
> 
> Why is manjaro trying to route through 192.168.2.1 (i.e. interface enp2s0.2)
> and not enp2s0.7?
> 
> On a very similarly configured Debian system on the same network everything
> works as expected:
> 
> root at h370:~# route -n
> Kernel-IP-Routentabelle
> Ziel            Router          Genmask         Flags Metric Ref    Use
> Iface 0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0       
> 0 eno1.1 172.17.0.0      0.0.0.0         255.255.0.0     U     0      0    
>    0 docker0
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0
> eno1.1 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0      
>  0 eno1.99
> 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br2
> 192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0
> eno1.3 192.168.4.0     0.0.0.0         255.255.255.0   U     0      0      
>  0 eno1.4 192.168.5.0     0.0.0.0         255.255.255.0   U     0      0   
>     0 br5 192.168.6.0     0.0.0.0         255.255.255.0   U     0      0   
>     0 eno1.6 192.168.7.0     0.0.0.0         255.255.255.0   U     0      0
>        0 br7 root at h370:~# traceroute 192.168.7.2
> traceroute to 192.168.7.2 (192.168.7.2), 30 hops max, 60 byte packets
>  1  master (192.168.7.2)  0.308 ms  0.283 ms  0.273 ms
> root at h370:~#
> 
> Any hint or advice is welcome.
> 
> Thanks
> Rainer

I missed a

[Route]
Gateway=192.168.2.1
Table=10

[RoutingPolicyRule]
From=192.168.1.0/0
Table=10

in /etc/systemd/network/enp2s0.2.network. Removing that fixed the issue.


Thanks
Rainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.manjaro.org/pipermail/manjaro-general/attachments/20220121/7b25db0d/attachment.sig>


More information about the manjaro-general mailing list