Date: Thu, 12 Feb 2009 15:06:10 -0600 From: Adam Vandemore <amvandemore@gmail.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Assigning static ip address Message-ID: <49948F42.4090201@gmail.com> In-Reply-To: <49947FC4.4000400@diamondbox.dk> References: <49947FC4.4000400@diamondbox.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Nikolaj Thygesen wrote: > 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 > Is there a reason you don't set /etc/resolv.conf to static nameservers as well? Also does not fixed-address lease give you what you want? -- Adam Vandemore Systems Administrator IMED Mobility (605) 498-1610
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49948F42.4090201>