in windows I use batch files to configure my computer

I use the following for work network (DHCP)
netsh interface ip set address name="Local Area Connection" source="dhcp"
netsh interface ip set dns name="Local Area Connection" source="dhcp"
netsh interface ip set wins name="Local Area Connection" source="dhcp"

and this for home network (I replaced the ip with xxx.xxx.xxx.xxx)
netsh interface ip set address name="Local Area Connection" source=static
addr=xxx.xxx.xxx.xxx mask=255.255.255.0
netsh interface ip set address name="Local Area Connection"
gateway=xxx.xxx.xxx.xxx gwmetric=1
netsh interface ip set dns name="Local Area Connection" source=static
addr=xxx.xxx.xxx.xxx

I am sure that you can do more by reading the help of netsh

or there is a software that manage various profiles for you see
http://www.mobilenetswitch.com/.
I haven't used it and I don't know if it works for Linux (and it is not
free)

hoped that this helped a bit

Shahar

----- Original Message ----- 
From: "Erez Doron" <[EMAIL PROTECTED]>
To: "Ilug" <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 9:05 PM
Subject: configuring apps via command line


> hi
>
> i am working from both home and work,
> i need different configurations for both -
> different proxy, different smtp server and some other stuff as well
> i am using both windows and linux. and have cygwin installed.
>
> i thought of a way to run a script when i get an ip, and the script will
> configure all i need.
>
> so i am looking for a way to configure the outgoing mail server (mozilla
> mail - both linux and windows) from a script ( e.g. comman line)
> also configuring proxy for mozilla (linux/windows) and IE from script.
>
> any idea ?
>
> erez.
>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to