Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can not connect to WiFi if LAN cable plugged in.
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
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 667
Location: Tokyo, Japan

PostPosted: Mon Oct 13, 2014 6:48 am    Post subject: Can not connect to WiFi if LAN cable plugged in. Reply with quote

I would think that when my box is plugged into a LAN (eth0) and the WiFi radio (wlan0) is also on and connected to an AP that the behavior would be a connection to eth0 and if that fails then grab the connection from wlan0.

I have a strange case in which I am trying to use an old router as either a bridge, firewall, or VPN. I'm still sorting it out but noticed that if I am connected to the router, which is not yet connected to the internet, and connected to a wifi AP I have no network connection. If I pull the LAN cable out then I will have the connection via wifi. Is this normal?

I'd like to be able to access the internet via my wifi while connected to the router I am configuring through the LAN cable.

When I am booted into my windows partition I don't have this problem. I can be connected to the router and a WiFi AP and have access to the net so that leads me to believe it is a config issue with my Gentoo install.

Hope everyone kind of understands what I am asking.

Thanks as always.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Mon Oct 13, 2014 8:38 am    Post subject: Reply with quote

Don't broadcast a default route from the LAN router is the obvious answer.
Or of you cannot do that, simply give the Wireless interface a lower metric than the LAN interface to prefer the wireless router.

If you're using dhcpcd as described in my .sig, you would configure it like so:

Code:

interface eth0
metric 500

interface wlan0
metric 200

_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
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