On Mon, 2002-07-01 at 21:18, [EMAIL PROTECTED] wrote:
> Hi Guys and Girls, just a quick one!
> 
> I was wondering how you would  change from a static IP address *i.e * 
> eth0 192.16.1.30
> 
> but you want to change to  using DHCP from the command line.
> 
> I dont want to use linuxconf or netconfig etc , just the command line 
> thanks?

man interfaces

in your interfaces file write:

iface eth0:0 init dhcp

auto eth0
iface eth0 inet static
        .....

You can actually bring up and down the dhcp interface without affecting
the static IP address.  I have used this technique to set up the school
network at home to test but use my normal gateway which is on an
entirely different network.

KenF

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to