Klaus Franken wrote:
>
> On Sun, Jan 23, 2000 at 08:42:01AM -0800, Michael Perry wrote:
> > Just out of curiosity... Has anyone used the scheme stuff to setup a laptop
> > to be on two different networks? I have a few simple scripts that bring
>
> Yes, it is very easy.
> Define the scheme in /etc/pcmcia/network.opts, example:
>
> case "$ADDRESS" in
> franken,*,*,*)
> # Host's IP address, netmask, network address, broadcast address
> IPADDR="192.168.1.11"
> NETMASK="255.255.255.0"
> NETWORK="192.168.1.0"
> BROADCAST="192.168.1.255"
> # Gateway address for static routing
> GATEWAY="192.168.1.1"
> # Things to add to /etc/resolv.conf for this interface
> DOMAIN="klaus.franken.de"
> SEARCH="klaus.franken.de"
> DNS_1="192.168.1.1"
> ...
>
> Change the scheme with 'cardctl scheme <newscheme>'
> The current scheme is stored in /var/lib/pcmcia/scheme.
>
> --
This works for me. I have been using it for a long time.
If you have different NIC cards at each location, then
the scheme can just be the MAC. In this case you do not
even need to use the command 'cardctl scheme <newscheme>'
as the MAC will automatically select the right scheme.
I have a card at each location, and use the network.opt solution.
It works great.
>
> Klaus Franken, [EMAIL PROTECTED]
>
> ------------------------------------------------------------
> D O N ' T P A N I C !!!
> ------------------------------------------------------------
> Uptime: Linux 2.2.13, 24 Days, Hours
--
Jont B. Allen
AT&T Labs-Research, Shannon Laboratory, E161
180 Park Ave., Florham Park NJ, 07932-0971
973/360-8545voice, x7111fax, http://www.research.att.com/~jba
-"Dont anthropomorphize computers, they hate it." --unknown
-Why boycott Amazon? http://www.gnu.org/philosophy/amazon.html