Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
12/8/2003 3:58:17 PM EDT


using the command line (Linux Mandrake), how do i get rid of the static IP address and make eth0 get a dynamic address from DHCP?

how do i set eth0 to automatically find a DNS server address? (my current DNS settings are in a file called resolv.conf under /etc).

thanks.


12/8/2003 4:43:01 PM EDT
[#1]
I'm not in Mandrake, Run Slack 9.1 here, but in slack.

open the file /etc/rc.d/rc.inet1.conf in a text editor (i.e. pico, vi or emacs)

and change

USE_DHCP[0]="no"

to

USE_DHCP[0]="yes"

you can even leave all the other info there, since the USE_DHCP setting overrides all the others. To go back to your static IP, just change back to no.

[edit]: board smilies get inserted, anyone know how to turn them off for this post only?
12/8/2003 4:45:11 PM EDT
[#2]
do you have a dhcp client package installed?
I think it's called pump in Mandrake
pump -i eth0

man interfaces
vi /etc/network/interfaces

man ifconfig

12/8/2003 4:59:51 PM EDT
[#3]
I'm on Mandrake 9.2. Try running "drakconnect" as root. GUI, but works for me.