Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to connect a Raspberry Pi to the Internet via a 3G modem.

I'm ssh'ing into it via ethernet (eth0), I have the 3G connection up and running (ppp0).

How can I connect to all external addresses via ppp0? I don't want to disconnect eth0 as that is how I'm connecting to the device.

share|improve this question
up vote 1 down vote accepted

Change your network configuration so that ppp0 is the default gateway.

share|improve this answer
And, how would I do that via the command line? – Terence Eden Jul 1 '12 at 19:10
route will let you modify the routing table, but for a permanent solution you'd want to modify the configuration files. Dunno which ones for Debian though. – Ignacio Vazquez-Abrams Jul 1 '12 at 19:11
Forgive me, is it enough to say "sudo route add default dev ppp0"? – Terence Eden Jul 1 '12 at 19:32
Sounds about right. You may need to remove the existing default though. – Ignacio Vazquez-Abrams Jul 1 '12 at 19:34

Your Answer


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.