Score:0

Debian 10, cant use 2 Network Interfaces at the same time

de flag

Problem and explanation:

What I want to do: Setting up the interfaces, so all can be used at the same time.

Problem: I got 3 Interfaces in total. 1 is the LAN Connection and 2 are LTE Connections tethered by phones. I'm testing the Connection via Ping -I (interface name) and only 1 Connection works. The other 2 are not working, I searched for 6 hours but didn't find an answer.

So to get to the question, my problem is that I have 3 interfaces / connections but can only use one of them. And I want to use all three at the same time


Interfaces and explanation:

The First LTE Connection is enp0s8

The LAN Connection is enp0s9

The Second LTE Connection is enp0s17

So to explain it simply. I have a LAN interface and 2 tethered LTE interfaces and when I try to ping something with the LAN interface (with ping -I [interface name] 1.1.1.1) it doesn't work, it only works on one interface and this is the first LTE Interface. Which is also the first after the loopback interface with the command "ip addr".

-ping -I enp0s8 1.1.1.1 works [First LTE Interface]

-ping -I enp0s9 1.1.1.1 doesn't work [LAN Interface]

-ping -I enp0s17 1.1.1.1 doesn't work [Second LTE Interface]


Information:

If you need any additional Information, just ask.

Route =

default        192.168.42.129    0.0.0.0         enp0s8
10.0.0.0       0.0.0.0           255.255.255.0   enp0s9
172.20.10.0    0.0.0.0           255.255.255.24  enp0s17
192.168.42.0   0.0.0.0           255.255.255.0   enp0s8

Interfaces File =

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp0s17
iface enp0s17 inet dhcp

allow-hotplug enp0s8
iface enp0s8 inet dhcp

allow-hotplug enp0s9
iface enp0s9 inet dhcp
Michael Hampton avatar
cz flag
How exactly do you want to use these three interfaces at the same time? Surely your goal is not to be able to ping remote hosts.
manique avatar
de flag
I want to use it with wireguard and engarde (https://github.com/porech/engarde) and the three interfaces would be a "failover/bonding" mechanism. And the only problem is that the interfaces don't all work at the same time, only one works at the same time, everything else is already working.
Michael Hampton avatar
cz flag
Hm, OK, that requires setting up policy based routing, which there are already many tutorials about.
manique avatar
de flag
Can you send me a link for that?
Score:0
de flag

I installed Ubuntu and used Netplan to fix it.

I put this in the netplan:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s8:
      dhcp4: yes
    enp0s17:
      dhcp4: yes
      dhcp4-overrides:
        route-metric: 200

This is the solution.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.