Find the answer to your Linux question:
Results 1 to 4 of 4
Hello every one, I have this little question and I can't find a solution to it, so I hope you will help me. How to make the internet connection goes ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    12

    ppp routing issue (maybe)!


    Hello every one,

    I have this little question and I can't find a solution to it, so I hope you will help me.

    How to make the internet connection goes through ppp0 instead of eth1 (my wireless card)?

    to give you the whole picture, consider the following info:

    I am subscribed to secrure-vpn.com service, after connecting to the service and issuing

    Code:
    ifconfig ppp0
    I got

    Code:
    ppp0      Link encap:Point-to-Point Protocol
              inet addr:192.168.113.12  P-t-P:192.168.113.1  Mask:255.255.255.255
              UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1000  Metric:1
              RX packets:7 errors:0 dropped:0 overruns:0 frame:0
              TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:3
              RX bytes:95 (95.0 b)  TX bytes:121 (121.0 b)
    So, what I supposed to do to be able to browse the internet via them?

    I hope my question is clear. Thanks in advance

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    what does the command 'route' give you?
    This will show which way traffic is being directed.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    12
    before connecting to ppp0, I get

    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
    link-local      *               255.255.0.0     U     1000   0        0 eth0
    default         192.168.2.2     0.0.0.0         UG    0      0        0 eth0
    but after connecting, I get

    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.113.1   *               255.255.255.255 UH    0      0        0 ppp0
    192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
    link-local      *               255.255.0.0     U     1000   0        0 eth0
    default         192.168.2.2     0.0.0.0         UG    0      0        0 eth0
    but I can't browse through ppp0.

    I tried
    Code:
    ip route replace default dev ppp0
    after connecting but I lost my internet connection, so if you know how to correct me please do.

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    Eth0 is setup as your default gateway. You need to change this if you want to browse through ppp.

    You could try the following to change the default gateway:

    Code:
    route del default gw 192.168.2.2
    route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.113.1
    Or you could try to shutdown eth0 and bring up your ppp connection then bring up your eth0 connection.
    That might set up your ppp to be the default.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •