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

4th January 2008, 10:14 AM
|
|
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.
|

4th January 2008, 10:34 AM
|
 |
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!
|

4th January 2008, 01:02 PM
|
|
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_
|

4th January 2008, 01:32 PM
|
 |
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
|

5th January 2008, 12:22 PM
|
|
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...
|

6th January 2008, 08:38 AM
|
|
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.
|

7th January 2008, 05:35 AM
|
|
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.
|

7th January 2008, 03:18 PM
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 13:01 (Friday, 24-05-2013)
|
|
 |
 |
 |
 |
|
|