LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-27-2008, 06:19 AM   #1
samohn
Member
 
Registered: Aug 2008
Posts: 55

Rep: Reputation: 15
Can not access LAN unless excuting network restart script


I have set up Fedora core 9 server and have struggled to set up the network connection to LAN.

I installed Fedora core 9 on a PC last month which has been used for Redhat 7, Windows XP, etc. The server works fine but except the network connection. It can not establish network connection to the outside of the server right after it is booted up. To establish network connection I need to run /etc/rc.d/init.d/network restart.

Before I reset network devices by running /etc/rc.d/init.d/network restart

Ping 127.0.0.1 works.
Ifconfig shows only 127.0.0.1 loopback network setting, but no other network device.

After I restart the network device by running /etc/rc.d/init.d/network restart, the server can connect to the LAN.

I run ifconfig again, and it shows eth0 device setting.

I also noticed that the NetworkManager applet icon on panel shows "X" sign and its wired network connection tab shows no network device entry.
Once I added a network device (MAC address) on it, and the "X"sign disappeared. But, after I rebooted the server, I see "X" sign and no network device entry on the wired network connection tab.


I do not use DNS and I have set /etc/hosts
as
127.0.01 localhost
::1 localhost6.localdomain6 localhost6
192.168.50.150 localhost.localdomain server1
192.168.50.100 pc1

I also set /etc/sysconfig/network file as
Networking=yes
HOSTNAME=localhost.localdomain

The IP address is supplied by DHCP on a router on the LAN.

I will appreciate any suggestions and opinions.

Thank you in advance

Sam
 
Old 08-27-2008, 06:57 AM   #2
fatra2
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 216

Rep: Reputation: 35
Hi there,

I'm not sure to get your problem thoroughly. Is the computer with Fedora 9, your server???

If not, can you connect (ping) to the server??? From your server, can you connect (ping) to your Fedora box??? If you can do these two steps, the problem is not from your client, but from the server side.
 
Old 08-27-2008, 07:49 AM   #3
samohn
Member
 
Registered: Aug 2008
Posts: 55

Original Poster
Rep: Reputation: 15
Hi Thank you for your help. Here is my answer to your comment.


>Is the computer with Fedora 9, your server???
Yes.
But, I can not connect (ping) to the server from an another PC on the LAN right after I boot up the server because there is no working network device.
I need to manually run /etc/rc.d/init.d/network restart to activate NIC, eth0.
(afterwards I can ping the server from an another pc on the LAN.)

I want to know why network device (except loopback) can not be set up at the boot-up time and how to fix the problem.
 
Old 08-27-2008, 07:56 AM   #4
fatra2
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 216

Rep: Reputation: 35
Hi there,

I get your problem a bit better. You need to allow the network service to start at boot. To do so, with Fedora, you need enable the network in the windows that appears when typing
Code:
system-config-service
There, you have all the services setup on your machine. From my point of view, you need to enable the network and dhcp.

Otherwise, you might have to look into
Code:
system-config-network
Go in the edit parameters of your LAN card, and make sure that the "button"
Quote:
Activate device when computer starts
is enabled.

Try to reboot your machine, and stick around when it boots up. Look if the LAN eth device is enable in the process.

Cheers
 
Old 08-27-2008, 12:44 PM   #5
samohn
Member
 
Registered: Aug 2008
Posts: 55

Original Poster
Rep: Reputation: 15
Hi,

Now the Fedora 9 can initialze the network device at boot time.
I run system-config-services (insted of system-config-service), which in turn opened Service Setup GUI application. The network service was disabled so I turned it on.
I rebooted the server and the network device could be set at boot time.

I have spent a week for this problem.

Thank you very much for your help.
 
  


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
Script to check connection (and restart network if down) mac_phil Linux - Networking 15 06-21-2016 06:59 PM
a script to access a switch within LAN shahz Red Hat 16 09-26-2008 01:24 AM
RH9 under VMware Player loses network access after restart plong Linux - Networking 1 03-24-2006 02:28 PM
Problem excuting cgi script in OpenBSD gani *BSD 3 05-26-2005 07:40 AM
bash script for network restart munkeh Programming 8 11-10-2003 06:00 PM


All times are GMT -5. The time now is 03:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration