Netswitch, hosted at


About

Netswitch is a linux system admin script that 'remembers' several network configurations. Users can switch between network configurations with a simple command-line interface (CLI) command like 'netswitch.pl home' or 'netswitch.pl work'
This is alpha-software. Only the author has used it.

If you need a GUI, checkout LaptopNet instead. Netswitch and LaptopNet have similar end-user aims, but netswitch tries to be simpler -- it just remembers different network settings and lets the user set them with tools like netconf, vi or emacs.

Co-developers are welcome. In the sourcecode, see Notes C D and E for my desired changes. Plus, there may be user requests.

Download

You can download the latest code. (version .02 update May 31, 2000)
You also access the code via CVS

If you use netswitch please join the low-volume netswitch-users mailing list.

Contact

Michael de Beer madebeer@users.sourceforge.net If you find a bug, please report it in the bug-tracking system.

Documentation

There is only the usage statement. Especially look at the Examples.

netswitch.pl [ -sS | -t test_base -e ] [ -q ] config 
######################################################
  Designed for laptop users who switch between non-DHCP networks.
  Switches between the network configs stored in /usr/local/etc/netswitch.

  -s saves the current network configuration as a new configuration set
  -S like -s, except it will overwrite an existing saved configuration set
  -t testing -- don't overwrite config files in /etc, use 'test_base' instead
  -e invoke the network setup script after overwriting configuration set
  -q quiet -- don't say what program is doing unless there is an error.

  unless using the -s or -S options, 
    currently available configs are ( work home budapest )

Examples of Switching to a new Config:
--------------------------------------
netswitch.pl budapest    # overwrites network config files with saved set 
                         # called 'budapest'
netswitch.pl -e budapest # ditto, also invokes network setup script

Examples of Saving/Creating a new Config:
-----------------------------------------
netswitch.pl -s new      # saves current network config files 
                         # to saved set called 'new'
netswitch.pl -S replace  # replaces saved set called 'replace' 
                         # with current network config files

Warnings:
--------- 
  Netswitch Copyright 2000 madebeer@igc.apc.org, relased under the GPL 
    (see: http://www.gnu.org/)   

  Use at your own risk -- 
       it works for me on Slackware, and that is all I can say for it.
  netswitch.pl may destroy your network configuration and behave badly.