You are not logged in.

#1 2023-09-27 12:35:10

kevdog
Member
Registered: 2013-01-26
Posts: 102

[SOLVED] Systemd-networkd configuration with multiple network adapters

I'm trying to setup multiple network adapters within Arch Linux which reside on two different networks.

The problem I'm having is that both networks are reachable for about a minute (10.0.1.1/24 and 10.0.40.1/24), however after about a minute, the 10.0.40.1/24 network always drops and I get a network is unreachable. If I use each network card and configuration at once the connection never drops, however after I activate both network cards, the connection on second network drops after about a minute.

Here are my systemd-networkd configuration files:

#/etc/systemd/network/19-eth1.network

[Match]
MACAddress=ae:52:2f:b0:26:b2

[Network]
RouteMetric=10
DNS=10.0.1.1
Address=10.0.1.200/24
Address=10.0.1.201/24
Gateway=10.0.1.1
#/etc/systemd/network/19-eth3.network

[Match]
MACAddress=62:2a:0c:99:30:01

[Network]
DNS=10.0.40.1
Address=10.0.40.125/24
RouteMetric=1500

Here are my address and route tables:

% ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether ae:52:2f:b0:26:b2 brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.200/24 brd 10.0.1.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet 10.0.1.201/24 brd 10.0.1.255 scope global secondary eth1
       valid_lft forever preferred_lft forever
3: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 62:2a:0c:99:30:01 brd ff:ff:ff:ff:ff:ff
    inet 10.0.40.125/24 brd 10.0.40.255 scope global eth3
       valid_lft forever preferred_lft forever
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 02:42:e1:69:df:cd brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
% ip r
default via 10.0.1.1 dev eth1 proto static
10.0.1.0/24 dev eth1 proto kernel scope link src 10.0.1.200
10.0.40.0/24 dev eth3 proto kernel scope link src 10.0.40.125
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown

Here is problem after using ssh utility to access the 10.0.40.0/24 network after about a minute:

% client_loop: send disconnect: Broken pipe

Last edited by kevdog (2023-09-27 22:43:00)

Offline

#2 2023-09-27 22:42:21

kevdog
Member
Registered: 2013-01-26
Posts: 102

Re: [SOLVED] Systemd-networkd configuration with multiple network adapters

I'm going to mark this issue solved as it really wasn't an Arch configuration issue, rather an issue with networking routing as described here: https://docs.netgate.com/pfsense/en/lat … uting.html.  Hopefully this might help someone with a similar problem. I applied the manual fix described in the linked article.

Last edited by kevdog (2023-09-27 22:42:34)

Offline

Board footer

Powered by FluxBB