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 3rd December 2005, 03:13 AM
techmum Offline
Registered User
 
Join Date: Dec 2005
Location: Western Australia
Posts: 267
Very long startup when no network

I am new to Linux and trying FC4 on dual-boot work notebook PC. However in order to work on company LAN, it has to use fixed IP address in 10.0.0.x range.

Problems -

a. When I am not connected to LAN the notebook can take up to 15 minutes to boot up. It just sits showing setting up Swap File for ages.

b. Similar situation when I connect to another LAN that uses a different IP range such as 192.168.1.x

How do I get it to boot up quickly either when I not connected to a LAN or to a LAN with different address range?

ta
Reply With Quote
  #2  
Old 3rd December 2005, 05:29 AM
w5set Offline
Registered User
 
Join Date: Feb 2005
Location: ark n saw out in the sticks
Posts: 2,316
you could keep the network from starting at boot
chkconfig --levels 2345 network off
and then use the network config app
system-config-network
to make different "Profiles" for the same card and activate whichever one you needed to hookup to
service network start
kind of round about but should work for you...
Reply With Quote
  #3  
Old 3rd December 2005, 11:59 AM
tomcat's Avatar
tomcat Offline
Registered User
 
Join Date: Aug 2005
Location: EU, Germany
Age: 39
Posts: 1,185
When the bootprocess reaches the part where it searches for your network-connection, press ctrl+c in order to bypass the network activation.
__________________
Powered by Fedora & CentOS | Windows-free since 2002
Reply With Quote
  #4  
Old 3rd December 2005, 02:11 PM
grayeul Offline
Registered User
 
Join Date: May 2004
Posts: 9
Two things I have found that help: 1) Ensure you have a domain name in your /etc/hosts file for localhost. i.e.:

127.0.0.1 localhost localhost.localdomain

Also, removing entirely /etc/resolv.conf prevents attempts to get DNS info. It should get automatically created by dhcp client if that succeeds (i.e. you are on a network).
Reply With Quote
  #5  
Old 3rd December 2005, 02:24 PM
wdingus Offline
Registered User
 
Join Date: Aug 2005
Location: Kingsport, TN
Posts: 117
Yes but the original poster mentioned a static IP, not DHCP..

The problem is most likely your DNS configuration. You may have set this with a graphical admin app but under the surface the contents of the /etc/resolv.conf point to the DNS server your computer will use to resolve names/numbers. The boot delay is various things starting up which want to access host names your local machine doesn't know and for which it has to refer to a DNS server. Unplugged yours isn't reachable and it has to "time out" on each attempt.

As someone else mentioned, RedHat/Fedora like to put your system name and localhost all as one entry in /etc/hosts, something like this:

127.0.0.1 mycomputername localhost.localdomain localhost

I like to keep only localhost on the loopback interface and the system name on it's real IP, something like this:

127.0.0.1 localhost.localdomain localhost
192.168.0.1 mycomputername mycomputername.mydomain.com

You might additionally have some success with configuring DNS server (bind) on your own machine there and pointing DNS queries to yourself. Whether the cable is plugged in or not, 127.0.0.1 will be available. On top of that, you can setup forwarders so that hosts your own box doesn't know how to resolve it forwards on to your companies DNS server, some info after a quick search:
http://www.wwnet.net/~stevelim/dns.html

Good luck, I'm one of 2 people at my place of employment now running FC4 desktop machines entirely and so far with great success.


PS. If your company has a DHCP server configured and you could use DHCP instead of a static IP that might resolve much of this. The DNS server entries in /etc/resolv.conf would dynamically be setup by DHCP upon each boot.
Reply With Quote
  #6  
Old 4th December 2005, 02:19 AM
techmum Offline
Registered User
 
Join Date: Dec 2005
Location: Western Australia
Posts: 267
thanks all

I'll try these suggestions over the next few days
Reply With Quote
  #7  
Old 9th December 2005, 11:25 AM
techmum Offline
Registered User
 
Join Date: Dec 2005
Location: Western Australia
Posts: 267
Very long startup when no network - progress

I discovered that the major problem was ntpd

By stopping ntpd from starting the startup time of my notebook has gone from 10 to 15 minutes to around 2 minutes when I don't have a LAN connection.

A secondary problem I had > several GNOME applets were regularly crashing when no network was present. The two major culprits were the Weather applet and the Network Connection status applet. However, based on some info I saw elsewhere, I set both NetworkManager and NetworkManagerDispatcher to start automatically. Since I have done this, on numerous tests without a LAN connection, no applet has crashed.

However, I really would like to try two other things >

a. By default, ntpd starts quite early, but I would like to get ntpd to start after NetworkManager and NetworkManagerDispatcher to see if they are smart enough to also solve the ntpd problem. However I understand I have to change a link file in /etc/rc.d/rc5.d
Any help on the best way to do that would be welcome

b. second question, is there a way to set the ntpd timeout so that if it doesn't find any ntp servers within 30 seconds for example, it just fails and moves on?

ta
Reply With Quote
  #8  
Old 9th December 2005, 01:18 PM
jowah Offline
Registered User
 
Join Date: Dec 2004
Location: Under your bed
Posts: 293
As others have hinted at, I suggest you look into using network configuration profiles and set up three profiles for when you are using
  • No network
  • The company LAN (10.x.x.x)
  • The other LAN (192.168.x.x)
Then you set up three GRUB entries using the netprofile=<profilename> option so you can select which profile to use when the computer starts.

The RHEL System Administraton Guide has a section on this: Working with profiles.

However, with the recent introduction of the NetworkManager application, perhaps that can be used to sort things out for you too, and it looks like that's what you're currently using and that the ntpd problem is all that remains, so YMMV.
Reply With Quote
  #9  
Old 10th December 2005, 10:33 AM
techmum Offline
Registered User
 
Join Date: Dec 2005
Location: Western Australia
Posts: 267
Profiles at Boot

thanks jowah. that's a really good suggestion
Reply With Quote
Reply

Tags
long, network, startup

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
ERRORs during startup, booting fedora takes really long Fittersman Using Fedora 11 2nd March 2009 03:09 PM
Long wait to boot/startup at "UDEV" prompt wombat53 Using Fedora 3 26th December 2008 03:05 AM
Long distance network with 2 THOMSON TCM425 pbx Servers & Networking 0 21st September 2006 12:04 AM
Gnome Paueses for a long time during startup adinas Using Fedora 2 1st October 2005 06:26 PM
Why is FC2 so long to startup? bluesmanu EOL (End Of Life) Versions 5 6th February 2005 01:59 PM


Current GMT-time: 02:34 (Sunday, 26-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