LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-10-2004, 05:05 PM   #1
brynjarh
Member
 
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 255.255.255.255 gateway 10.9.12.1 eth1

So now my routing, or whatever, looks like this:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
internet.raflin 10.9.12.1       255.255.255.255 UGH   0      0        0 eth1
10.9.12.0       *               255.255.252.0   U     0      0        0 eth1
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       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:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
internet.raflin 10.9.12.1       255.255.255.255 UGH   0      0        0 eth1
internet.raflin *               255.255.255.255 UH    0      0        0 ppp1
10.9.12.0       *               255.255.252.0   U     0      0        0 eth1
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         internet.raflin 0.0.0.0         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):
Code:
# nVidia Corporation|nForce2 Ethernet Controller
DEVICE=eth1
BOOTPROTO=dhcp
HWADDR=00:0C:76:50:CF:2B
ONBOOT=yes
TYPE=Ethernet
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.
//edit
I'm using Fedora Core 2.

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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