Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.