c0be
![]() |
|
|
|
|
|||||||
| Networking Network related discussions (including general TCP/IP stuff, routing, etc). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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" 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 |
|
#2
|
||||
|
||||
|
Have you tried
Code:
synchronous_dhclient="YES"
__________________
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. <--- |
| The Following User Says Thank You to DutchDaemon For This Useful Post: | ||
bsdrocks (June 15th, 2010) | ||
|
#3
|
|||
|
|||
|
That did it! Thanks!
|
|
#4
|
||||
|
||||
|
ifconfig_em0="SYNCDHCP" is a little different notation for the same thing.
|
![]() |
| Tags |
| boot, dhclient, dhcp, halt, problem |
| Thread Tools | |
| Display Modes | |
|
|
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 |