Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Well I set up a ppp connection for my USB modem. I even got an IP address but when I try to do a ping I get network unreachable.

I think it could be because the same laptop also sometimes get connected to office LAN for which the default GW is set to That could be the reason why the packets do not get routed when using PPP connection.

What do I do so that when I use my USB modem ( dialled using wvdial ) the default gw is set automatically to whatever is appropriate and when I am on a LAN using ethernet the default GW is

I think my problem is this

share|improve this question
Does your laptop use DHCP when connecting to the office LAN or is it statically configured? The output of ip route and ip addr would help to debug this. – mgorven Apr 27 '12 at 16:55

You must log in to answer this question.

Browse other questions tagged .