Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Networking > Issue <<  323 of 354 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 11882
Last update: 12-04-07
Issue:
Why do network mounts fail at boot time with a 'No route to host' error but succeed once the operating system has finished booting?
Resolution:

When using a static IP network configuration, it is possible that the network driver may take longer to activate the link than the ifup script takes to complete during the boot sequence. (DHCP is not affected since it requires the link to be active to retrieve the network parameters.)

As a result of this delay, during the system bootup any network shares mounted just after the network interface startup may fail with "No route to host" because the link is not yet active.

To allow some time for the interface to activate, use the parameter LINKDELAY, expressed in seconds, in the appropriate interface configuration file.

For example, if /etc/sysconfig/network-scripts/ifcfg-eth0 contained:

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
LINKDELAY=30
NETMASK=255.255.255.0
IPADDR=192.168.0.12
GATEWAY=192.168.0.254
TYPE=Ethernet
then the system would wait 30 seconds after beginning to enable interface eth0.


NOTE: The LINKDELAY parameter was only introduced in newer versions of the initscripts package. On Red Hat Enterprise Linux 4, the initscript package needs to be version 7.93.25 or later (see RHBA-2006:0396-3 for more information). All releases of Red Hat Enterprise Linux 5 and newer should contain the parameter.

For earlier versions of Red Hat Enterprise Linux it is possible to manually edit the ifup script to achieve the same functionality. Please see the related solution below for more details.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Networking > Issue <<   323  of  354  >>