Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where is my network !?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1636
Location: Switzerland (Romandie)

PostPosted: Tue Mar 12, 2019 7:38 pm    Post subject: Where is my network !? Reply with quote

[Moderator note: This post was attached to the 4 year old topic Where is my network !?. I split it out because the problems appear to be unrelated, and because the other thread was from 2015. -Hu]

I have 2 network interfaces, net.eth0 and net.wlan0. Both are working fine, but wlan0 is the only with internet access, and when I start eth0 (openrc system), the internet access get down. If I stop eth0, internet is up again.

It must be some simple to do configuration in order to tell net.eth0 than it must not take over the internet traffic when both are on, but I just cannot find it. Do you have any clue?

EDIT: Finally, I found it. In /etc/conf.d/net add 1 line per interface like:
Code:
metric_wlan0="90"
metric_eth0="100"

and the kernel will use the one with the lower metric value as default internet interface when both are up.
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 988
Location: Frankfurt, Germany

PostPosted: Wed Mar 13, 2019 1:12 pm    Post subject: Reply with quote

Most probably, a second default route is added when you start eth0.

Make sure that no default route is added when you start eth0. And remove the 'metric' workaround - it's not the right solution.

Please post:
  1. the output of 'netstat -rn' and of 'ifconfig -a' after you started both wlan0 and eth0.

  2. your file /etc/conf.d/net.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42559
Location: 56N 3W

PostPosted: Wed Mar 13, 2019 7:55 pm    Post subject: Reply with quote

Dominique_71,

Its probably worse than mike155 says.
If both interfaces are in the same subnet, like they would be with a domestic router, chaos is ensured.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum