----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 8:20 AM
Subject: Re: [gentoo-user] configuration tool like linuxconf


> >why reboot?
> ># ifconfig eth0 down
> >(change ip(settings))
> ># ifconfig eth0 up
> i know i can do this but i want to change also dns and gateway with one
operation only.
> Any suggestion?

Probably the easiest way would be to do something like setting up 2 (or
however many you need)seperate configuration files for the different setups
(ie, multiple copies of /etc/conf.d/net.eth0). Then just write a script that
stops your networking, moves the proper config file to /etc/conf.d/net.eth0
and then starts the networking again (this should also result in any
services that depend on networking being restarted which is probably a very
good thing).


--
[EMAIL PROTECTED] mailing list

Reply via email to