Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd November 2007, 06:01 AM
Shagbag Offline
Registered User
 
Join Date: Nov 2007
Posts: 4
Fedora n00b can't get internet connection - RESOLV(ed).conf ;)

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

Last edited by Shagbag; 22nd November 2007 at 10:26 PM.
Reply With Quote
  #2  
Old 22nd November 2007, 06:29 AM
lucky21 Offline
Registered User
 
Join Date: Dec 2006
Posts: 76
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.
__________________
Dell Latitude | X300
1.1GiB Memory
Intel Pentium M Processor 1.40GHz
34 Gig Hard Drive
--------------------------------------------------
Fedora 8 x86
Kernel Linux 2.6.23.8-63.fc8
Reply With Quote
  #3  
Old 22nd November 2007, 08:54 AM
Shagbag Offline
Registered User
 
Join Date: Nov 2007
Posts: 4
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:
Code:
Destination          Gateway          Genmask   .....  Iface
169.254.0.0          *                255.255.0.0      eth0
With my Archlinux route table:
Code:
Destination          Gateway          Genmask   .....  Iface
192.168.0.0          *                255.255.255.0    eth0
default              192.168.0.1      0.0.0.0          eth0
This 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?
Reply With Quote
  #4  
Old 22nd November 2007, 09:58 PM
lucky21 Offline
Registered User
 
Join Date: Dec 2006
Posts: 76
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.

....
__________________
Dell Latitude | X300
1.1GiB Memory
Intel Pentium M Processor 1.40GHz
34 Gig Hard Drive
--------------------------------------------------
Fedora 8 x86
Kernel Linux 2.6.23.8-63.fc8
Reply With Quote
  #5  
Old 22nd November 2007, 10:16 PM
Shagbag Offline
Registered User
 
Join Date: Nov 2007
Posts: 4
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:
Code:
[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:609: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.

Last edited by Shagbag; 22nd November 2007 at 10:24 PM.
Reply With Quote
  #6  
Old 23rd November 2007, 05:09 AM
princemavi Offline
Registered User
 
Join Date: Nov 2007
Posts: 3
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.
Reply With Quote
  #7  
Old 25th November 2007, 04:47 PM
Polanski Offline
Registered User
 
Join Date: Nov 2007
Posts: 21
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.
Reply With Quote
  #8  
Old 25th November 2007, 10:15 PM
Shagbag Offline
Registered User
 
Join Date: Nov 2007
Posts: 4
Quote:
Originally Posted by Polanski
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:
Code:
# service network restart
You 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.

Last edited by Shagbag; 25th November 2007 at 10:20 PM.
Reply With Quote
  #9  
Old 25th November 2007, 11:49 PM
Polanski Offline
Registered User
 
Join Date: Nov 2007
Posts: 21
How can I turn network manager off? Is it a process id?
Reply With Quote
  #10  
Old 26th November 2007, 12:09 AM
Polanski Offline
Registered User
 
Join Date: Nov 2007
Posts: 21
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
Reply With Quote
  #11  
Old 26th November 2007, 01:13 AM
Iron_Mike's Avatar
Iron_Mike Offline
Registered User
 
Join Date: Jul 2005
Location: Ft Huachuca, AZ
Posts: 3,762
Quote:
Originally Posted by Polanski
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
Reply With Quote
  #12  
Old 26th November 2007, 01:42 AM
Polanski Offline
Registered User
 
Join Date: Nov 2007
Posts: 21
On the second part how can I fix the problem? I will turn off network manager and get back to you.
Reply With Quote
  #13  
Old 26th November 2007, 01:59 AM
Iron_Mike's Avatar
Iron_Mike Offline
Registered User
 
Join Date: Jul 2005
Location: Ft Huachuca, AZ
Posts: 3,762
Quote:
Originally Posted by Polanski
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
Reply With Quote
  #14  
Old 26th November 2007, 02:14 AM
Polanski Offline
Registered User
 
Join Date: Nov 2007
Posts: 21
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.
Reply With Quote
  #15  
Old 26th November 2007, 05:10 AM
princemavi Offline
Registered User
 
Join Date: Nov 2007
Posts: 3
try
chkconfig --levels 345 network on
Reply With Quote
Reply

Tags
connection, fedora, internet, n00b

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Box Internet Connection P4rD0nM3 Using Fedora 2 7th November 2007 01:38 AM
Help a N00b with his internet plz LinuxNubi Servers & Networking 1 8th April 2007 05:05 AM
internet connection in fedora 6 surprie Servers & Networking 25 19th January 2007 04:38 PM
internet connection in fedora 5 preet Servers & Networking 2 2nd September 2006 11:36 AM
Fedora 4 Internet Connection varunv Using Fedora 1 9th March 2006 02:58 PM


Current GMT-time: 14:18 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat