Solved IP address not getting assigned

I have system with an fstab entry on a network drive. A similar setup exists on two other system where the drive gets mounted without problem, but on this system there is a NFS timeout because an IP address does not get assigned,

Where should I look for the reason I don't get an IP address through ifconfig_em0="DHCP"?

I am able to get one once booted using using dhclient em0,
 
Try SYNCDHCP, then pay attention to the messages printed during boot. You should see the DHCP requests being printed and the boot is going to stall until DHCP times out or actually gets an IP address.

Also double check you don't have another ifconfig_em0 in your rc.conf that might overrule the DHCP line.
 
This is what I have which I need for using iocage jails.

Code:
ifconfig_em0="DHCP"                                                                                                                                                    
cloned_interfaces="bridge0"                                                                                                                                            
ifconfig_bridge0="addm em0 up"                                                                                                                                          
ifconfig_em0="up

Maybe the order has some bearing, or maybe not every line is needed and is messing stuff up.
 
They are variables, you defined the ifconfig_em0 variable twice.

Code:
dice@molly:~/temp % cat my.conf
ifconfig_blah="something"
ifconfig_blah="else"
dice@molly:~/temp % cat rc.sh
#!/bin/sh

. my.conf

echo $ifconfig_blah
dice@molly:~/temp % sh rc.sh
else
 
Back
Top