Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a FreeBSD server behind router. But after startup (I've put ifconfig_re0="DHCP" in my rc.conf) I have

ping: cannot resolve Host name lookup failure

error when trying ping I can only retrieve IP after next commands:

ifconfig re0 down
ifcofing re0 up 
dhclient re0


DHCPREQUEST on re0 to port 67
bound to -- renewal in 43200 seconds.

How can I fix this error and correctly configure dhcp on my machine?

share|improve this question

If you look at the output of ifconfig right after startup, and re0 doesn't show up with an IP address you might want to chack your logfiles and see if you find any messages from dhclient there.

If you get timeouts, edit /etc/dhclient.conf (which is empty by default) and play with the timeout and initial-interval variables. See dhclient.conf(5).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .