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.