Click to See Complete Forum and Search --> : Utility to switch ip conifig. easily


J-Tek
02-01-2002, 04:20 AM
Hi,

I have a dell inspiron 2500 w/ RH7.2. I move from my home that has DSL-static IP to work w/ can use both DHCP or static. Is there a utility that can change my ip setting w/the flip of a switch? Windows has Netswitcher, is there a similar utility in linux? or could I even change these settings w/ my own script? what files would I have to change?

thanx.

z0mbix
02-01-2002, 04:39 AM
linuxconf should be able to do this in no time atall.

camelrider
02-01-2002, 11:29 AM
A quick peek at "man ifconfig" suggests something like this:

#!/bin/bash
# Home IP script

ifconfig eth0 down
ifconfig eth0 address <your_static_ip_at_home> up

(try from the CLI first to see if it works)

Then you could write one for your static IP at work, give them descriptive names, make them executable and stash them someplace handy to be run as "SU".

I've really no experience with networks other than just hooking to my ADSL modem but this seems like it should work.

Good Luck !

[ 01 February 2002: Message edited by: camelrider ]

mychl
02-01-2002, 11:47 AM
Use the Network Configuration tool, its in the KDE menu, under system. There you can change the protocol for your nic from static to dhcp. THat'll do it, though you might have to reboot, but I don't know.

teeitup
02-01-2002, 01:21 PM
This sounds like what you want.
http://www.imfc.edu/~daniau/laptopnet/

Good Luck,

J-Tek
02-01-2002, 01:24 PM
I found a utility on
http://www.download.com

it's called Network+

I haven't gotten to work yet but it seems like the ideal thing to use for switching ip's fast