Networking :: script multiple netconfigs? Static else DHCP
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
original here.