Operating System - Linux
1832928 Members
2431 Online
110048 Solutions
New Discussion

RedHat 5 network startup problem

 
iwan t
Occasional Advisor

RedHat 5 network startup problem

Hi All,
I just configure a RedHat Linux 5 (2.6.18-53.el5PAE) but I got the problem with the network startup.

There are 4 network port on my system and I need to setup 3 of them. I setup using the GUI (system-config-network) and I make sure the I ticked the "Activate device when computer starts", but everytime I rebooted the server, it won't start the network.

But if I did the /etc/init.d/network restart , everything will be OK.

What I went wrong?

Thank you,

Iwan Tamimi
10 REPLIES 10
skt_skt
Honored Contributor

Re: RedHat 5 network startup problem

chkconfig network on 2345

above step will enabled the n/w startup on boot and also creat the links under the /etc/rcX.d folders

see mine
# chkconfig --list|grep network
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# ll /etc/rc2.d/*network*
lrwxrwxrwx 1 root root 17 Feb 14 14:43 /etc/rc2.d/S10network -> ../init.d/network

# ll /etc/rc3.d/*network*
lrwxrwxrwx 1 root root 17 Feb 14 14:43 /etc/rc3.d/S10network -> ../init.d/network
iwan t
Occasional Advisor

Re: RedHat 5 network startup problem

Hi Santosh,

Thank you for your sugestion. I already check with the command when I rebooted I noticed something, all the interface actually up but not bind with the IP, one of the interface tried to use DHCP and used 169.254.110.207 address.

The I did the /etc/init.d/network stop and /etc/init.d/network start again, everything looks fine. (see attachement)

So where do I miss here?

Regards,

Iwan Tamimi
iwan t
Occasional Advisor

Re: RedHat 5 network startup problem

Hi All,

I just checked the /var/log/messages some of the message show something like this:

Activation (eth1) Stage 4 of 5 (IP Configure Timeout) scheduled...

Please see the attachement for more complete error.

Is it network card problem or connection problem? But why after restarting it is running fine?

Anyone know the solution?

Thank you
Jimmy Vance
HPE Pro

Re: RedHat 5 network startup problem

Try adding LINKDELAY=1000 to the file /etc/sysconfig/network-scripts/ifcfg-ethX where X is the interface number that is supposed to get a DHCP address. I've found at times this is needed for the ifup process to work properly. You can try adjusting the value
No support by private messages. Please ask the forum! 
skt_skt
Honored Contributor

Re: RedHat 5 network startup problem

Could u post /etc/sysconfig/network-scripts/ifcfg-eth1?
iwan t
Occasional Advisor

Re: RedHat 5 network startup problem

Thanks All,

Jimmy I didn't opt for DHCP but then just realized why there is an entry called DHCP_HOSTNAME.

Santosh, attached is the config files.

Could it be also do our network hardware problem (either the card or the switch)

Regards,

Iwan
skt_skt
Honored Contributor

Re: RedHat 5 network startup problem

Here is th entries i have in one of Red Hat Enterprise Linux Server release 5.1 (Tikanga)


[root@ network-scripts]# cat ifcfg-eth1
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth1
HWADDR=00:1A:64:6A:A5:2F
ONBOOT=yes
IPADDR=10.10.20.34
NETMASK=255.255.255.0
[root@ network-scripts]# cat ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:1A:64:6A:A5:2D
IPADDR=132.226.187.44
NETMASK=255.255.255.0
ONBOOT=yes

Looks like th DHCP is getting preference at least while boot in your case.
Johannes Krackowizer
Occasional Advisor

Re: RedHat 5 network startup problem

try to remove the DHCP_HOSTNAME=eshopweb1 entries in the /etc/sysconfig/network-scritps/ifcfg-eth0 to 4
21 is only the half truth
iwan t
Occasional Advisor

Re: RedHat 5 network startup problem

Hi All,

Thanks for all the reply.

Finally I decide to reinstall again since it was the new server, then it is working fine. but I will use this thread as my future reference.

Thank you again.

Iwan

Re: RedHat 5 network startup problem

If I've understood well, the interface that was not bringing up during the startup is eth1. The ifcfg conf
file you had seemed to be not correct (or complete at least), since you were using a static IP address but it wasn't being explicty indicated. It may run or may not, but you should tried by specifying the main paratemeters for static addresses. It should be something like:

DEVICE=eth1
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:1A:64:6A:A5:2F
IPADDR=10.10.20.34
NETMASK=255.255.255.0
ONBOOT=yes

...you can also add

NETWORK=10.10.20.0
BROADCAST=10.10.20.255
MULTICAST=yes
TYPE=Ethernet
IPV6INIT=no

And create the specific route table for this interface by creating the route-eth1 file:

#Add this for the default route
GATEWAY1=10.10.20.x
NETMASK1=0.0.0.0
ADDRESS1=0.0.0.0

Try this configuration in further issues.

Regards.

Education is what survives when what has been learned has been forgotten