View Full Version : Fedora n00b can't get internet connection
Shagbag
2007-11-21, 11:01 PM CST
I'm completely new to Fedora but not new to linux.
I've just installed Fedora 8 (GNOME) and I'm trying to configure my ethernet connection but not having any success.
I keep getting:
IP= 169.254.206.220
Broadcast = 169.254.255.255
Default Route = 0.0.0.0
Primary DNS = <blank>
I've played around using the Network GUI tool but no matter what I do - even changing it to dhcp - I still get the above connection. My Netgear ADSL Modem/Router/Gateway/DNS has IP address 192.168.0.1 but everytime I try to change things in the GUI they seem to be completely ignored.
I prefer to configure everything through the command line but Fedora - like every other distro I've used - does things differently.
I would appreciate some guidance as to what I need to do. For example, I don't even know how to restart the networking daemon in Fedora
lucky21
2007-11-21, 11:29 PM CST
From the CLI: Type # service network restart
Once you change everything in your network windows. Click on file save. It will tell you, you need to restart your services. Thats when you will go into your terminal and restart your network services.
I'm assuming your hard-wired in to your internet instead of wireless.
Leave it as DHCP, thats what you want it as.
Shagbag
2007-11-22, 01:54 AM CST
Thx. I restarted the network with the command you suggested and it failed to establish a connection on eth0.
Looking into this further, I suspect it may be a route table problem. Compare my Fedora route table:Destination Gateway Genmask ..... Iface
169.254.0.0 * 255.255.0.0 eth0
With my Archlinux route table:Destination Gateway Genmask ..... Iface
192.168.0.0 * 255.255.255.0 eth0
default 192.168.0.1 0.0.0.0 eth0This suggests to me (and I'm no networking guru) that my Fedora has no gateway set.
How do I set my gateway in Fedora at the command line?
lucky21
2007-11-22, 02:58 PM CST
Im not sure why it's so hard for you to get hardwired into your linux box since...Even if your going through a router. It should simply be a input wire, complete, kind of thing.
You are using FC8. Your using knetworkmaganer.
If you go into System | Administration | Network...is it active?
Is your network service started?
To check services go into System | Administration | Services
and make sure NetworkManager and netowrk manager display is running.
....
Shagbag
2007-11-22, 03:16 PM CST
Thx for following the thread, lucky21. I managed to fix it after looking over a few network threads in this forum. My routing table is now:[n00b@thinkpad ~]$ netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
link-local * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
[n00b@thinkpad ~]$I ended up amending the following files:
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking/devices/ifcfg-eth0
/etc/sysconfig/networking/profiles/default/ifcfg-eth0
to be:
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:0D:60:C9:E2:3F
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.0.2
GATEWAY=192.168.0.1
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
and rebooted. It worked (I'm typing from it), but when I open:
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking/profiles/default/ifcfg-eth0
they're both completely blank. Only /etc/sysconfig/networking/devices/ifcfg-eth0 has the abovementioned configuration listed in it.
This begs the questions:
1. What do:
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking/profiles/default/ifcfg-eth0
actually do; and
2. Why are they blanked out/cleared when I shutdown and reboot?
Finally, as an experienced linux user but a Fedora n00b, I would just like to say that failure to connect to the internet is a problem that needs to be remedied ASAP if Fedora is going to attract more users. The fact that I (an experienced linux user) got into this position - and then got out of it by a combination of knowing what things to look for in the forums, finding those things and then making the necessary changes at the command line - is a screaming advertisement for either making NetworkManager "bullet-proof" or, at least, having some documentation freely available on the Fedora site about configuring network connections. I looked in the documentation section at www.fedoraproject.org and could not find a thing about configuring a faulty internet connection - everything is written under the assumption you're already connected to the internet. If the Fedora Project won't do the latter, then I will- just as soon as I know enough about how Fedora works including having answers for the above two questions. On the plus side, I DO like Fedora's interface. The fonts, in particular, are the best I've seen on any default linux install. Despite the networking hiccup, I'm looking forward to learning more about Fedora.
princemavi
2007-11-22, 10:09 PM CST
I totally agree. I had bad experience with Fedora 8 networking scripts as well and had to manually fix my interfaces for it to work.
Polanski
2007-11-25, 09:47 AM CST
The configuration on sysconfig/devices/ifcfg-eth1 worked on the live cd for gnome fedora 8 but when I install the dvd i386 fedora 8 it does not work. I think the problem is that it identifies the wireless card as eth1 and not wlan0. There is a device that is labeled wifi0 so if that will work or wlan0 how can I change the identification of the card from eth1 to wlan0 or wifi0 and move all the information that eth1 has to wlan0 or wifi0, info including ip address, gateway address etc.? Any help would be greatly appreciated. I would like to do all of this through the command line and not the gui.The card is labeled as intersil corp 2.5 wavelan chipset. I would really like my internet back on my ibm r40 laptop if possible.
Shagbag
2007-11-25, 03:15 PM CST
how can I change the identification of the card from eth1 to wlan0 or wifi0 and move all the information that eth1 has to wlan0 or wifi0, info including ip address, gateway address etc.?I believe it is the kernel that allocates names to interfaces, ie. I don't think you can change what the kernel calls them. That's how OpenBSD works but I'm not completely sure about linux, so I'm just speculating that it's the same. You can still, however, completely configure an interface to how you like. My 3rd post detailed what I put into my /etc/sysconfig/networking/devices/ifcfg-eth0 file. All you need to do is identify the device's interface and edit the associated config file (ifcfg-<interface>) in /etc/sysconfig/networking/devices. You'll need to do it as root, of course. Once done, just restart networking:# service network restartYou may also need to edit /etc/resolv.conf and add your nameserver (DNS). /etc/resolv.conf contains some warnings about not editing the file as NetworkManager uses/amends it, so make sure you turn NetworkManager off.
Polanski
2007-11-25, 04:49 PM CST
How can I turn network manager off? Is it a process id?
Polanski
2007-11-25, 05:09 PM CST
After I set the settings in ifcfg-eth0 and put the dns in resolv.conf and run service network restart this is what comes up:
service network restart
Shutting down loopback interface: usage: ifdown <device name>
[FAILED]
Bringing up loopback interface: ./ifup: configuration for ifcfg-lo not found.
Usage: ifup <device name>
[FAILED]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
Iron_Mike
2007-11-25, 06:13 PM CST
How can I turn network manager off? Is it a process id?
It's a service, open a terminal window change to root and type"
chkconfig --345 off NetworkManager
chkconfig --345 off NetworkManagerDispatcher
Polanski
2007-11-25, 06:42 PM CST
On the second part how can I fix the problem? I will turn off network manager and get back to you.
Iron_Mike
2007-11-25, 06:59 PM CST
On the second part how can I fix the problem? I will turn off network manager and get back to you.
While you're in the services menu, make sure the "network" service is still enabled....
chkconfig --345 on network
Polanski
2007-11-25, 07:14 PM CST
When I type chkconfig --345 on network it says that 345 is an unknown option and it is the same thing for turning off the network manager. Also what services menu? I can get into the services script, is that what you mean. Thank you so much for your help it is greatly appreciated.
princemavi
2007-11-25, 10:10 PM CST
try
chkconfig --levels 345 network on
skillet
2007-11-26, 12:04 AM CST
@Shagbag: 169.254.x.x is an APIPA address. An APIPA address is assigned when a DHCP server is unable to be contacted. I noticed in your device setup you are using a static address. The problem that you experienced I don't think necessarily is a problem with Fedora but merely a setup issue.
Polanski
2007-11-26, 08:11 AM CST
After I set the settings in ifcfg-eth0 and put the dns in resolv.conf and run service network restart this is what comes up:
service network restart
Shutting down loopback interface: usage: ifdown <device name>
[FAILED]
Bringing up loopback interface: ./ifup: configuration for ifcfg-lo not found.
Usage: ifup <device name>
[FAILED]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
I believe the problem that I am having with my internet connection on my laptop lies in there. What is the problem and how can I fix it? I have tried editing /etc/sysconfig/networking/devices ifcfg-eth1:0 numerous times and it still is not working. Also the chkconfig --levels worked, so I have NetworkManager turned off along with the dispatcher. Thank you for your help it is greatly appreciated.
skillet
2007-11-26, 12:46 PM CST
is this a clean install of fedora? it seems as if you are doing some funny business with ifcfg-eth1:0... how is your network setup and what are you trying to do with it?
whats the alias for?
Polanski
2007-11-26, 01:49 PM CST
My network is set through a wireless linksys router and connection is dhcp, my protection on it is wep 128 bits, I know the passphrase. By alias you mean ifcfg-lo? I have been trying to figure out how to change that. Where should I go to change that alias to ifcfg-eth1:0? Also on the laptop it is an internal wireless card called intersil corp 2.5 wavelan chipset and the laptop is an ibm thinkpad model R40. I think I have to alter the network-scripts. I am trying to connect my laptop to the router so I can get the wireless internet back on it. Also this is what else I have done:
I have tried editing /etc/sysconfig/networking/devices ifcfg-eth1:0 numerous times and it still is not working. Also the chkconfig --levels worked, so I have NetworkManager turned off along with the dispatcher. Thank you for your help it is greatly appreciated
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.