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 ...
- 06-24-2008 #1Just 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
I gotCode:ifconfig ppp0
So, what I supposed to do to be able to browse the internet via them?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)
I hope my question is clear. Thanks in advance
- 06-24-2008 #2
what does the command 'route' give you?
This will show which way traffic is being directed.
- 06-25-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 12
before connecting to ppp0, I get
but after connecting, I getCode: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 I can't browse through ppp0.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
I tried
after connecting but I lost my internet connection, so if you know how to correct me please do.Code:ip route replace default dev ppp0
- 06-25-2008 #4
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:
Or you could try to shutdown eth0 and bring up your ppp connection then bring up your eth0 connection.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
That might set up your ppp to be the default.


Reply With Quote
