Laptop with 3 Network connection - traffic over all 3

vikozo

New Member
Joined
Dec 30, 2021
Messages
19
Reaction score
8
Credits
154
Hello
on my Laptop (check signature) i have RJ45 LAN, WiFI and when connected also over my Dockingstation.

is there a way to tell
1 ) Dockingstation LAN
2 ) WiFi LAN
3 ) Laptop RJ45 LAN

there is a option to set the prioriti of the ports i gave them 1, 3 and 9
But they are still all open and traffic seems to go over all 3 Ports

have a nice day
vinc
 


KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
4,629
Reaction score
4,280
Credits
37,176
If I am understanding correctly, I found this - which is untested by me:


I may just have to test that. Not today, but someday. That looks interesting.
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,076
Reaction score
747
Credits
5,591
What distro? Are you using NetworkManager?

nmcli con show enp1s0 | grep 'ipv4.route-metric'
nmcli con show wlp1s0 | grep 'ipv4.route-metric'


Where enp1s0 and wlp1s0 are yourinterface names. Lower number gets the priority.
You can set this by..

nmcli con mod enp1s0 ipv4.route-metric 5
nmcli con mod wlp1s0 ipv4.route-metric 10


Now normally interfaces are on different subnets. It would be interesting to get output from..

ip addr

Also "normally" you only have one default gateway at a time. What is the output of...

netstat -nr
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Staff online

Members online


Latest posts

Top