Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page ppp routing issue (maybe)!
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 06-24-2008   #1 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 9
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
amaj1407 is offline   Reply With Quote
Old 06-24-2008   #2 (permalink)
Linux Enthusiast
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: Pennsylvania
Posts: 515
what does the command 'route' give you?
This will show which way traffic is being directed.
__________________

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 06-25-2008   #3 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 9
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.
amaj1407 is offline   Reply With Quote
Old 06-25-2008   #4 (permalink)
Linux Enthusiast
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: Pennsylvania
Posts: 515
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

It is not just an adventure.
It is my job!!

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 06:48 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0