LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 07-01-2011, 09:42 AM   #1
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,163

Rep: Reputation: 258Reputation: 258Reputation: 258
Not getting DHCP assignment at boot


Hi,
Just installed Fedora 15, updated to latest and most everything is working. One weird problem is that I am not getting an IP assigned on eth0 on boot, but if I do systemctl network restart it does.

This is my firewall so eth0 (DHCP) is connected to cable modem,
p3p1 (static) is connected to my internal LAN.

After boot, ifconfig shows eth0 UP but no IP assigned. No errors in the log, just looks like dhclient didn't run.

/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=smallpond
NTPSERVERARGS=iburst
FORWARD_IPV4="yes"
NETWORKING_IPV6=no

/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:30:1b:b0:49:8a
TYPE=Ethernet
USERCTL=no
PEERDNS=no
IPV6INIT=no

/etc/dhcp/dhclient.conf:
send dhcp-client-identifier = hardware;

I'm also running dhcpd (on p3p1), ddclient and openvpn. Those all run fine once eth0 is up. Of course, until I get an IP assigned nothing works.
 
Old 07-01-2011, 02:27 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,689

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
@ Reply

Hi there,

I do not see one line in /etc/sysconfig/network

NETWORKING_IPV4=yes

I am not sure what the following entry FORWARD_IPV4="yes" doing in /etc/sysconfig/network because you configure packet forwarding in /etc/sysctl.conf

Also when the system comes up check if dhclient is loaded or not.

Run: ps -eaf | grep dhclient

I hope this helps.
 
Old 07-03-2011, 06:07 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,163

Original Poster
Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by T3RM1NVT0R View Post
Hi there,

I do not see one line in /etc/sysconfig/network

NETWORKING_IPV4=yes

I am not sure what the following entry FORWARD_IPV4="yes" doing in /etc/sysconfig/network because you configure packet forwarding in /etc/sysctl.conf
I went looking for valid options in network and I don't think FORWARD_IPV4, NETWORKING_IPV6 or NETWORKING_IPV4 are valid. They don't hurt anything since its just a file included in other scripts, but they don't mean anything either so I took them out. I do have forwarding set in /etc/sysctl.conf and it does come up correctly.

Quote:
Also when the system comes up check if dhclient is loaded or not.

Run: ps -eaf | grep dhclient

I hope this helps.
dhclient is not running when the system boots with no IP.
After it came up I ran:

Code:
/etc/sysconfig/network-scripts/ifup-eth eth0
That started dhclient and acquired an IP address. Now I need to figure out why it failed during boot.
Other thing I forgot to mention is that I am not running NetworkManager because I don't want it changing my scripts.
 
Old 07-03-2011, 09:48 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,689

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
@ Reply

Check the status of network and network manager using chkconfig. I turned both of them off on my RHEL6 system and was not able to get dhclient loaded. Even if your network service is set to be on and NetworkManager not then you won't be able to get dhclient loaded.

Run the following commands to check their status:

chkconfig --list network
chkconfig --list NetworkManager (case sensitive)

Run the following commands to turn them on at startup:

chkconfig network on
chkconfig NetworkManager on

I hope this helps.
 
1 members found this post helpful.
Old 07-03-2011, 10:21 AM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,163

Original Poster
Rep: Reputation: 258Reputation: 258Reputation: 258
That was it. Turning off NetworkManager I think had also turned off networking.
Now reboot brings everything up.

Thanks!
 
  


Reply

Tags
dhcp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Device Node Assignment at Boot, Parallel Printer via USB adapter robbmac Linux - Hardware 5 05-14-2011 05:19 PM
Gateway assignment and DHCP+DHRELAY Question Lord_Devi Linux - Networking 1 07-12-2010 04:29 PM
wrong dhcp assignment orielgalvez Linux - Newbie 2 02-02-2010 02:17 AM
IP assignment to authorized user only through DHCP server !!! arunabh_biswas Linux - Security 2 01-22-2010 12:04 AM


All times are GMT -5. The time now is 08:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration