Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-10-2004, 05:05 PM   #1
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Rep: Reputation: 30
pptp, dhcp, Internet problem.

Basically the configuration set in when I use DHCP is incorrect. I use pptp to connect to my ISP I belive, I say 'believe' since I don't know for sure how my, or any other, connection to the Internet works exactly.

Now I have DHCP on and the only thing I need to change for the Internet to work I do with these two commands as root:
/sbin/route del default
/sbin/route add -net fjoltengi netmask gateway eth1

So now my routing, or whatever, looks like this:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
internet.raflin UGH   0      0        0 eth1       *        U     0      0        0 eth1     *          U     0      0        0 eth1       *            U     0      0        0 lo
And after I connect to the internet by using pptp doing the command '/usr/sbin/pptp fjoltengi name USERNAME_HERE lock defaultroute noipdefault nobsdcomp nodeflate novj noaccomp nopcomp noauth' it looks like this:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
internet.raflin UGH   0      0        0 eth1
internet.raflin *      UH    0      0        0 ppp1       *        U     0      0        0 eth1     *          U     0      0        0 eth1       *            U     0      0        0 lo
default         internet.raflin         UG    0      0        0 ppp1
Don't know why it changes like that but it does, and it works.

I'm not sure if you need to know how it looked like before the changes but you can see by the commands I did earlier that there was something in there called 'default', I think that it's added in there after activating eth1 (which has DHCP set on it), it's config file looks like this (/etc/sysconfig/network-scripts/ifcfg-eth1):
# nVidia Corporation|nForce2 Ethernet Controller
I don't know if there are any other relevant files I need to show so do tell me if there are any. Now what I want to know is how I change the eth1 from DHCP to 'static' or whatever right? And where I need to set in the static information, I guess I can find out my self what I need to put in there after I have been told where I need to put it and possibly why I need to put it there..

Hope someone can help me, any help would be appreciated, thank you.
I'm using Fedora Core 2.

Last edited by brynjarh; 08-10-2004 at 05:08 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp and internet sharing connectin problem melinda_sayang Linux - Networking 5 11-05-2004 06:13 AM
cable internet + pptp under slack folkenfanel Slackware 3 09-07-2004 11:12 AM
Cannot connect to ISP (cable modem+dhcp+pppd+pptp) iklinux Linux - Networking 0 05-11-2004 08:39 AM
PPTP problem, can't go to internet Freeman-Jo Linux - Networking 0 04-26-2004 03:03 AM
Internet Sharing & DHCP problem? Help! hakanicduygu Linux - Networking 4 01-25-2003 01:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration