c0be [Solved] dhcp/dhclient issues - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old June 15th, 2010, 12:23
bsdrocks bsdrocks is offline
Junior Member
 
Join Date: Jun 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default dhcp/dhclient issues

Problem: dhclient doesn't get ip before the login prompt appears during boot.

This results in a few problems:
1. nfs shares with hostname in /etc/fstab results in single user mode during boot since hostname cannot be resolved (using IP instead of hostnames will only results in a lot of cannot mount messages and then it continues and when login prompt shows up, it mounts the nfs shares..)
2. sshd cannot bind to ip and fails to start
3. and lots of frustration!

All of my freebsd boxes, except for one (the problematic one) will halt during boot to receive a DHCPOFFER and then continue and begin mounting nfs shares etc.. So what makes this one different? Well all the other ones are sparc64 and this one is amd64, and thats about it... /etc/rc.conf, /etc/sysctl.conf, /etc/fstab, /etc/resolv.conf, /etc/dhclient.conf (empty) and /etc/pf.conf is identical on all the machines..



/etc/rc.conf:
Code:
hostname="x64.example.com"
ifconfig_em0="DHCP"
sshd_enable="YES"
sendmail_enable="NONE"
#kern_securelevel_enable="YES"
#kern_securelevel="2"
portmap_enable="NO"
inetd_enable="NO"
clear_tmp_enable="YES"
syslogd_flags="-ss -C"
icmp_drop_redirect="YES"
icmp_log_redirect="YES"
log_in_vain="YES"
uptimed_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
ezjail_enable="YES"
zfs_enable="YES"
uname -a
Code:
FreeBSD x64.example.com 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #0: Tue May 25 20:54:11 UTC 2010     root@amd64-
builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

What could this come of? what makes the other machines wait for DHCPOFFER? and what makes this one skip it? Could it be that all the others are single core, while the problematic one is dual core?

Last edited by DutchDaemon; June 15th, 2010 at 13:30. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old June 15th, 2010, 13:32
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,825
Thanks: 30
Thanked 1,884 Times in 1,330 Posts
Default

Have you tried

Code:
synchronous_dhclient="YES"
in /etc/rc.conf?
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
bsdrocks (June 15th, 2010)
  #3  
Old June 15th, 2010, 14:23
bsdrocks bsdrocks is offline
Junior Member
 
Join Date: Jun 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

That did it! Thanks!
Reply With Quote
  #4  
Old June 15th, 2010, 14:31
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,701
Thanks: 429
Thanked 1,757 Times in 1,456 Posts
Default

ifconfig_em0="SYNCDHCP" is a little different notation for the same thing.
Reply With Quote
Reply

Tags
boot, dhclient, dhcp, halt, problem

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dhclient can not get ip with wpa ccmp ! miniqq Networking 8 April 1st, 2010 17:45
[Solved] Freebsd-8 dhclient script SirDice Networking 8 November 19th, 2009 21:12
rc.conf VLAN and dhclient ? lbl Networking 5 September 27th, 2009 15:17
Freebsd dhcp client from a Windows dhcp server Dillweed Networking 12 September 10th, 2009 01:15
DHCPv6 - dhclient r00t Networking 8 August 18th, 2009 09:36


All times are GMT +1. The time now is 15:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0