How to change gateway nic to dhcp

Polytropon freebsd at edvax.de
Thu Jul 3 03:30:58 UTC 2014


On Wed, 02 Jul 2014 17:24:35 -1000, Al Plant wrote:
> I have a static gateway that needs to be set to nic interface DHCP on 
> the outside. It was set static on both sides when the Lan was originally 
> setup. Is there a file name that I can use and just change to DHCP from 
> the IP?
> 
> I used to do this when sysinstall was the way to go. Do I use 
> etc/rc.conf as we used to. or do I have to go into the new BSD Installer?

The standard way should still be supported via /etc/rc.conf:

	ifconfig_<nic>="DHCP"

In case you have entered IP-specific things for example to
/etc/hosts, make sure there are no conflicts. Otherwise,
DHCP should work fine.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list