linuxconnectionipiptablesppp

Double connection ethernet + ppp


Sorry if the question is trivial, but I can't figure out..

I've my ethernet connection and I've created a ppp connection.

Now, keeping alive eth0 connection, how can I test ppp connection?

I would like to do something like this:

 ping <any_ip> -<ppp0 connection>

is this possibile?


Solution

  • You can either make the ppp link your default route,

    route add default dev ppp0
    

    or just add that route for the single IP you wish to ping,

    route add <any_ip> dev ppp0