Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 21:00:04 +0100
From:      Nikolaj Thygesen <mailinglist@diamondbox.dk>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Assigning static ip address
Message-ID:  <49947FC4.4000400@diamondbox.dk>

next in thread | raw e-mail | index | archive | help
Hi list,

    I've been experimenting and googling for hours w/ no luck. All I 
want to do is run dhcp and then replace the ip address of the interface 
with a new static ip afterwards. I've been looking at the 
/etc/dhclient.conf man pages, but they don't seem to help. I can do it 
from rc.conf like:

    ifconfig_em0="inet 1.2.3.4"

but then I loose all the other dhcp parameters like dns and stuff. Is it 
really that hard???

    thanks - Nikolaj




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49947FC4.4000400>