[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Conv. from STATIC to DHCP



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 30 September 2002 01:02 am, Emil Hägerlund wrote:
> Hi,
>
> during install I shose not to go for DHCP.
> What changes do I need to do now that I want to
> switch back to DHCP instead?
>
> How should folowing look like:
> /etc/network/interfaces
> /etc/resolv.conf
> ...
>
> Can I activate that particular set of install
> questions again?
>
> I have read the howtos I could find but is it just
> enough to apt-get the 'dhcpcd' package?
>
> Yours
> Emil

Greetings Emil:

I did the same thing locally.  During install, I setup the eth0 as static and 
proceeded with the install.  Next, I changed my /etc/network/interfaces
to look like this:
# interfaces file
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian
#installation
auto eth0
iface eth0 inet dhcp
#end of interfaces file

This *should* have caused the computer to get a new IP at boot time, but it 
didn't.  I don't know which client is installed at install time, but the box 
would only gain an IP if I manually invoked it.  Finally, I manually purged 
all dhcp-clients and installed the stable pump.  Once installed, it worked 
perfectly at boot.  My advice is to manually check to verify that pump is 
already installed, if not, fetch it or install it first.

The commands to start/stop your network are:
/etc/init.d/networking {start|stop|reload|restart}
In your case, I would do: '/etc/init.d/networking stop'
Edit the interfaces file then:  '/etc/init.d/networking start'
That should fetch your new IP (or old IP).

The resolve file will be updated with nameservers during the DHCP for an IP 
since that is part of the DHCP protocol.  

hth, gl

tatah
- -- 

Jaye Inabnit\ARS ke6sls\/A GNU-Debian linux user\/ http://www.qsl.net/ke6sls
If it's stupid, but works, it ain't stupid. I SHOUT JUST FOR FUN.
Free software, in a free world, for a free spirit. Please Support freedom!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mGASZHBxKsta6kMRAnIGAKC3L6m4xVmEPmi/fRxdMppqggVhZgCeLA9/
6N50By5j3wVRuoRXugmeCXA=
=ZoIL
-----END PGP SIGNATURE-----



Reply to: