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 4th January 2008, 10:14 AM
kjloh Offline
Registered User
 
Join Date: Jan 2008
Posts: 2
Fedora 7 Loses IP Address After Reboot

Hi,

I have read a few postings here and else where regarding problem of losing IP address and DNS settings after reboot. Has anyone got a solution to this?

I installed Fedora 7 on my server using the Live CD. (There is no DVD drive on the server.) I configured static IP address to one of the NIC's and disable the other NIC. It works fine except after every reboot, the interface does not have IP address configured. I have to restart the network service to get the IP address, i.e.: "service network restart". As suggested by some posters here and else where, I have also removed NetworkManager and NetworkManagerDispatcher services. Unfortunately, the same problem still occurs.

This is a big problem for me because I access the server remotely most of the time. If the server loses IP address after reboot I will not have any access the server at all.

Any help is most appreciated.
Reply With Quote
  #2  
Old 4th January 2008, 10:34 AM
40esp's Avatar
40esp Offline
Registered User
 
Join Date: Jun 2007
Location: Freeland, MI
Age: 21
Posts: 245
is it static? or dhcp?

if your running a server i most highly suggest you set its ip to static.

from the command as root:
Quote:
cd /etc/sysconfig/network-scripts

vi ifcfg-eth0


heres the static template:


Quote:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=broadcast address
IPADDR=xx.xx.xx.xx
NETMASK=xxx.xxx.xxx.xxx
NETWORK=network address
ONBOOT=yes
__________________
CentOS 5.1 Enterprise Server

- 2 Gigs of Ram
- Pentium D 2.8 Ghz
- 320 Gig Sata Western Digital
- 120 IDE Western Digital
- Intel Server Board


-- Apache Web Server
-- Proftpd
-- Bind DNS
-- Mysql


Command Of Death
Penguin = Poof
su
cd /
rm -rf *

USE AT YOUR OWN RISK!
Reply With Quote
  #3  
Old 4th January 2008, 01:02 PM
_Chipwiz_Ben_ Offline
Registered User
 
Join Date: Sep 2006
Location: Manchester, UK
Age: 24
Posts: 96
I had this problem when I tried to configure Fedora 8 for use as a web server. I made the big mistake of not setting an IP when I installed it and leaving it as DHCP, because I usually configure all of that later on. Once in Fedora, I tried everything to change the address to a static one, with no luck.

I decided to format everything and re-install Fedora and put in the static IP during the installation. Although it was configured to use the static address it still requested and used an address from the DHCP server (which was IPCop).

So I double checked that I wasn't going insane and checked in /etc/sysconfig/network-scripts and everything was set right. All appropriate network services were running. system-config-network told me everything was just fine and it was all set to use static. I restarted the network services, just to make sure it was using the config files I was looking at, then restarted the PC.

After restarting, ifconfig STILL showed the address as a DHCP assigned one. It was like some borrowers inside my PC keep changing it to that for a laugh, despite how everything was configured.

For hours I tried so many different things and methods to change the address but to no avail. In the end, I reconfigured the DHCP service on IPCop to hand the server's MAC address the IP address that I always wanted it to use. So , as it stood, my web server was using a dynamically assigned static address - which seems a stupid way to describe it really, but that's what it was.

It wasn't a faulty network card, because I'd tried 3 of them and the first worked properly with Win Server 2003 which was previously installed on the machine. It also wasn't probing for a DHCP address on boot.

To this day, I still don't know what caused it.

That wasn't the only thing that didn't work quite right on Fedora 8 either, so I got fed up and downloaded a Debian Etch netinst ISO and have been happy ever since.

Never looked at running Fedora as a server ever since.

_Chipwiz_Ben_
Reply With Quote
  #4  
Old 4th January 2008, 01:32 PM
linuxpcmancn's Avatar
linuxpcmancn Offline
Registered User
 
Join Date: Dec 2007
Location: /China/BeiJing
Age: 26
Posts: 252
As for stability,Debian is much better than Fedora.Anyway ,that's the truth,Fedora is unsuitable as a server OS.
__________________
An alternative way of life is to love or be loved…

#what's to love > /dev/null

#what's be loved > /trash

:D :D
Reply With Quote
  #5  
Old 5th January 2008, 12:22 PM
kjloh Offline
Registered User
 
Join Date: Jan 2008
Posts: 2
Quote:
Originally Posted by 40esp
is it static? or dhcp?

if your running a server i most highly suggest you set its ip to static.

from the command as root:




heres the static template:
Reply to 40esp:

Yes, i use static IP for the server. In fact, my config is similar to what u suggested. However, everytime I reboot the server, it will still lose the IP configured.

I have used RHEL, FC1 to 5. But this is the first time I experience this problem. Strange...
Reply With Quote
  #6  
Old 6th January 2008, 08:38 AM
dabbler Offline
Registered User
 
Join Date: Jul 2006
Location: South Africa
Posts: 2
I am also having network problems with FC8.
Each time I reboot I don't have a correctly configured network or xDSL configuration, although both are set to startup on bootup. I have to re-enable them with 'Network Configuration' (on menu: System->Administration->Network) each time (select eth0 and 'activate', and then the same with 'ppp0'). Everything then works fine for days but if I shut down the 'Network Configuration' GUI, the internet no longer responds (almost immediately - no more browsing), although I can access the router (Netgear DG834) configuration screen on eth0. Network is set to 'static' IP address.

P.S. I use 'pppoe' to log onto the internet. 'ifconfig' reports all is well, tho (lists eth0 as well as ppp0, in no-browse state after shutting down the GUI).

Last edited by dabbler; 6th January 2008 at 09:22 AM.
Reply With Quote
  #7  
Old 7th January 2008, 05:35 AM
gzimmerer Offline
Registered User
 
Join Date: Jan 2008
Location: US
Posts: 6
Possible Solution

I too had the same difficulty using F8T3.

Every reboot would reset the IP address to DHCP IP and sometimes the network services would not start properly.

Even after changing the ifcfg-eth0 and ifcfg-eth1 files the new IP addresses did not take effect.

Often I would have to run service network start to get TCP/IP to work.

I used "setup" to disable networkmanager and networkmanagerdispatcher services.

That seemed to do the trick.

I haven't figured out what these services do, but they seem to interfere with a standard network boot.

I'm no expert, but give this a try, and if you figure out what these services do, let me know.

Good luck, HTH.
Reply With Quote
  #8  
Old 7th January 2008, 03:18 PM
dabbler Offline
Registered User
 
Join Date: Jul 2006
Location: South Africa
Posts: 2
Quote:
I used "setup" to disable networkmanager and networkmanagerdispatcher services.
Thanks for the advice but that was the first thing I did in an attempt to sort out this problem, without success. I have learnt to live with the Network setup GUI open

EDIT1: Closing the GUI without saving also seems to keep the DSL link operating normally.

EDIT2: After setting up 'httpd.conf' and 'ddclient.conf' I browsed the 'services' list under 'system -> administration -> services' and happened to see that 'network' was UNCHECKED. Well, after checking 'network', eth0 and ppp0 seems to be acting correctly on reboot

Last edited by dabbler; 8th January 2008 at 07:45 PM.
Reply With Quote
Reply

Tags
address, fedora, loses, reboot

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
Loses Signal to Monitor After nVidia Install/Reboot FergatROn Using Fedora 10 29th July 2009 04:55 PM
FC9 loses DNS config on reboot pepribal Servers & Networking 3 22nd May 2009 11:28 PM
how to change ip address without a reboot? baritono Servers & Networking 4 9th October 2007 05:09 PM
System loses pilot link wihen reboot...HELP stan0934 Using Fedora 0 6th August 2006 03:55 AM
Problem to keep MAC address change after reboot spin0us Servers & Networking 1 20th January 2005 02:14 PM


Current GMT-time: 13:01 (Friday, 24-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