Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have two network adapters: one for my normal LAN and my tethered phone as I don't have regular internet access here yet. When both are plugged in, KDE/Network Manager prefers to route all internet traffic via my home LAN, indicated by the blue "earth" icon and the fact it doesn't work. How can I configure this?

share|improve this question
    
Is disabling your local LAN an option? –  sparticvs Nov 25 '12 at 18:13
    
That's what I'm doing now but actually, not having it is a hassle. –  Erik Nov 26 '12 at 12:13
    
Then you you are going to have to change your network routes to use the phone as the default. See Karlson's answer below. –  sparticvs Nov 27 '12 at 3:04
    
That is indeed what I want to do but what I'm really looking for is a way to do it via the GUI. –  Erik Nov 28 '12 at 12:22

1 Answer 1

When you set up your phone as a network device you should get in your OS a device akin to phone0 which may or may not have an IP address on it.

When this device come online you should make it default route for all traffic.

sudo route del default
sudo route add default gw phone0

Devices on your local network will still be accessible since route to that network will still exist as far as every other destination is concerned it should to through your phone.

One thing I cannot be sure of is how this can be done through the network manager but you can figure it out.

P.S. Just make sure your phone is not connected to the net through WiFi of your LAN.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.