script multiple netconfigs? Static else DHCP


Forum: Networking
Topic: script multiple netconfigs? Static else DHCP
started by: lhoffmeyer

Posted by lhoffmeyer on Feb. 16 2006,20:49
Hey,

Can anyone help with a script to config possible multiple networks?
Not new to networking or Debian but haven't done much other than
configure my own home static IP.

Basically, I have DSL on a thumbdrive and I will be connecting to
one of two places, home or work.

Home is a static IP, work will be DHCP.

Can someone help with a script that says basically

If GATEWAY (or IP?)  = 216.87.1.1 = TRUE
use these setting for network config

ELSE

use DHCP?

TIA,

Lance

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.