[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: configurations, interfaces(5)



Hi...

Quoting Dave Morse (dm-nws@bomberlan.net):
> What is the best way to manage "configurations" on a laptop?
> 
> I.e. at home: through eth0/192.168.88.7, run NIS and NFS
> At Work: through eth0/192.168.1.1, run samba
> On the road: through modem, run nothing
> 
> Does anyone have a more fleshed out example of interfaces(5) "mapping"
> concept?  The man page is mighty slim pickins.

case "$ADDRESS" in
*,1,*,00:00:CB:43:04:5B)
        INFO="Home LAN"
        DHCP="n"
        IPADDR="192.168.0.100" 
        NETMASK="255.255.255.0"
        NETWORK="192.168.0.0"
        GATEWAY="192.168.0.1"
        #DOMAIN=""
        #SEARCH="e"
        DNS_1="194.64.64.1"
        #DNS_2=""
        #DNS_3="" 
        #MOUNTS=""
        ;;
esac

This is an example from my /etc/pcmcia/network.opts.
# The address format is "scheme,socket,instance,hwaddr".

I have several configurations: 2 static configurations for a WaveLAN PCMCIA
card and a CardBus PCMCIA card. Both work automatically when i have plugged
one of the cards in the PCMCIA slot 0. The 3rd configuration is static too (above
one) and I use it for my home enivronment. I have just to plug the card in
the PCMCIA slot 1. Other cards in one of the two slots use DHCP.

With the scheme feature you should be able to do whatever you want to do.

Bye... SP.
-- 
Szymon Polom                      | GPG Key-ID 1024D/E6EA36F2
convergence integrated media GmbH | http://www.convergence.de
Rosenthaler Str. 51               | fon: +49(0)30-72 62 06 68 
D-10178 Berlin                    | fax: +49(0)30-72 62 06 55



Reply to: