[SOLVED] No IP after reboot (DHCP)

Issues related to configuring your network
Post Reply
ilpokuikka
Posts: 2
Joined: 2015/05/12 11:01:43

[SOLVED] No IP after reboot (DHCP)

Post by ilpokuikka » 2015/05/12 11:21:32

Hello,

Running Centos 6.6 and networking managed with network service. IP is assigned by routers DHCP.

After reboot, my eth0 doesn't receive IP until I restart the network service via service network restart after everything seems to work fine until next reboot.

Strangely enough, this problem seemed to start occurring after I started using Wake-on-LAN, though I didn't touch any settings as WoL was on by default(I think...). And as implied, wake-on-lan works to fire up the system.

Here's the config files:
/etc/sysconfig/network-scripts/ifcfg-eth0

Code: Select all

DEVICE=eth0
HWADDR=xx:xx:xx:xx:xx:xx
TYPE=Ethernet
UUID=15f958a9-7ba2-4667-857d-5c17087700ad
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
IPV4_FAILURE_FATAL=yes
NAME="System eth0"
USERCTL=no
PEERDNS=yes
IPV6INIT=no
/etc/sysconfig/network

Code: Select all

NETWORKING=yes
HOSTNAME=epic
Also, I'm pretty new to linux/Centos in general so I might have missed some obvious setting etc...
Last edited by ilpokuikka on 2015/05/12 12:04:31, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: No IP after reboot (DHCP)

Post by TrevorH » 2015/05/12 11:34:58

There are some parameters you can add to the ifcfg files to handle links that are slow to come up due to STP. Perhaps adding one of those might help. In /usr/share/doc/initscripts-9.03.46/sysconfig.txt have a look at the description for NETWORKDELAY= and LINKDELAY= - I suspect that you want to delay this particular link for a few seconds so LINKDELAY= is probably the correct one.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ilpokuikka
Posts: 2
Joined: 2015/05/12 11:01:43

Re: [SOLVED] No IP after reboot (DHCP)

Post by ilpokuikka » 2015/05/12 12:03:15

TrevorH wrote:LINKDELAY= is probably the correct one.
Thanks, issue solved!

Post Reply