LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-23-2011, 04:18 AM   #1
tikit
Member
 
Registered: Feb 2008
Posts: 85

Rep: Reputation: 16
Network interface does not come up after reboot


Hello,

We are running SLES 11 x64 (in VMware). When it is rebooted the network interface stays down.
This message appears in the boot log

Code:
Waiting for mandatory devices:  eth0 __NSC__
30 29 28 26 25 24 23 22 21 20 19 17 16 15 14 13 12 11 10 9 7 6 5 4 3 2 1 0 
    eth0      device: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
    eth0      DHCP4 client NOT running
    eth0      is down
failed    eth0      interface could not be set up until now

The network interface can be then manually activated by running

Code:
/etc/init.d/network restart
Here is ifcfg-eth0 configuration
Code:
BOOTPROTO='dhcp4'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
PREFIXLEN='24'
What could be the cause of this problem?

Thanks for your help
 
Old 09-23-2011, 04:27 PM   #2
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
It looks like the interface is not ready to receive a DHCP address.
What is the value of DHCLIENT_SLEEP on /etc/sysconfig/network/dhcp ?

You can try increasing that value.
 
Old 09-25-2011, 01:26 PM   #3
tikit
Member
 
Registered: Feb 2008
Posts: 85

Original Poster
Rep: Reputation: 16
thanks for you reply, goossen. DHCLIENT_SLEEP was set to 0, so I increased the value to 20, but it did not solve the problem.
 
Old 03-18-2016, 03:58 PM   #4
BenderIsGreat34
LQ Newbie
 
Registered: Mar 2016
Distribution: SLES
Posts: 1

Rep: Reputation: Disabled
NOTE:I know this is way past the timeline of this thread but I haven't seen any development on it years, so I had to post. Plus being a first time poster I made mistakes in the process somewhere. Tell what to fix in my post structure and I'll do it.

I just ran into this "DHCP4 client NOT running" issue and couldn't find a solution on it in the forums. Fortunately a coworker and I were able to figure out what was going on behind the scenes and fixed it(for us)!!!


Error:
Code:
Shutting down network interfaces:
    eth0      device: Intel Corporation I350 Gigabit Network Connec                                     done
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
    eth0      device: Intel Corporation I350 Gigabit Network Connec
    eth0      Starting DHCP4 client. .
    eth0      DHCP4 client NOT running                                                                  failed
  • What is the Problem?
    • The script handling starting the DHCP process for your interfaces is being called with incorrect parameters.
    • Further Explanation:
      • When all the various network scripts are called, /sbin/dhcpcd is called to turn on dhcp service for the specified ethernet port.
      • dhcpcd expects very specific parameters and has very little in the way of debugging the problems themselves.
  • How to Fix it?
    • There was an issue with my hostname, I presume the same can be said for your machine.
      • myhostname was: root@server
      • See that "@" symbol? Well the DHCP server isn't going to handle that quite right and so dhcpcd says "err, suspect string in hostname argument". That was the puzzle piece that put it all together for me.
      • So just change your hostname and all will be well.

Process to figure it out:

Did an strace:
Code:
root@server:/etc/sysconfig/network # strace -s 1024 -o foo -f /sbin/ifup-dhcp eth0 eth0
from within the strace i found this line:
Quote:
31194 execve("/sbin/dhcpcd", ["/sbin/dhcpcd", "--netconfig", "-L", "-E", "-G", "-c", "/etc/sysconfig/network/scripts/dhcpcd-hook", "-t", "120", "-h", "root@server", "eth0"], [/* 70 vars */] <unfinished ...>
so I tried to run the dhcpcd call manually:
Code:
root@server:/etc/sysconfig/network # /sbin/dhcpcd "--netconfig" "-L" "-E" "-G" "-c" "/etc/sysconfig/network/scripts/dhcpcd-hook" "-t" "120" "-h" 'root@server' "eth0"
Quote:
err, suspect string in hostname argument
So, I looked at the hostname argument and stripped it down to just "server" (Leaving out the "@" was important here).
Code:
root@server:/etc/sysconfig/network # /sbin/dhcpcd "--netconfig" "-L" "-E" "-G" "-c" "/etc/sysconfig/network/scripts/dhcpcd-hook" "-t" "120" "-h" 'server' "eth0"
and got this back:
Quote:
eth0 device: Intel Corporation I350 Gigabit Network Connection (rev 01)
err, eth0: Failed to lookup hostname via DNS: Name or service not known
eth0 device: Intel Corporation I350 Gigabit Network Connection (rev 01)
and when I checked ifconfig eth0:
Code:
root@server:/etc/sysconfig/network # ifconfig eth0
Quote:
eth0 Link encap:Ethernet HWaddr B8:CA:3A:68:34:70
inet addr:39.80.8.12 Bcast:39.95.255.255 Mask:255.240.0.0
inet6 addr: fe80::baca:3aff:fe68:3470/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24538 errors:0 dropped:0 overruns:0 frame:0
TX packets:3537 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2978118 (2.8 Mb) TX bytes:951302 (929.0 Kb)
So it's grabbing the hostname for the DNS server to use
so, to make sure it doesn't fail to pass a valid hostname when "ifup" is called I changed the hostname:
Code:
server:/etc/sysconfig/network # echo "server" > /etc/HOSTNAME 
root@server:/etc/sysconfig/network # hostname server
root@server:/etc/sysconfig/network # ifdown eth0
root@server:/etc/sysconfig/network # ifup eth0
Quote:
eth0 device: Intel Corporation I350 Gigabit Network Connection (rev 01)
Starting DHCP4 client on eth0. . . . . .
eth0 IP address: 39.80.8.12/12
Hooray!!!!
 
Old 03-22-2016, 07:48 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,706
Blog Entries: 4

Rep: Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949
Sounds to me like it's time to mark this one [SOLVED] ...?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prevent auto up an interface at /etc/network/interface file ? Joydeep Bakshi Linux - Networking 8 07-28-2011 02:43 AM
Windows 7 on kvm, new network interface at each reboot rhoekstra Linux - Virtualization and Cloud 7 11-10-2009 01:35 AM
How NET_TX_SOFTIRQ select network interface when multiple interface exits Mr.J Linux - Kernel 0 06-02-2009 11:17 AM
network interface not coming backup after reboot noir911 Linux - Server 2 02-10-2009 11:03 PM
ubuntu - on reboot, interface up, but no network. dutler Linux - Networking 6 02-04-2009 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration