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

Re: How to Manage Linux laptops on and off the network?



Hi Karl!

On Thu, 22 Nov 2001, Karl E. Jorgensen wrote:

> For the network configuration, schemes work well for me:
>  PCMCIA slot 0 -> Home network (fixed ip)
>  PCMCIA slot 1 -> DHCP config
>  (and off course: no pcmcia card inserted = no network)
> 
> a bit of editing in /etc/pcmcia/network.opts did the trick

I'd suggest another 'trick'.
In /etc/pcmcia/wireless.opts:

case "$ADDRESS" in
work,*,*,00:60:1D:*|work,*,*,00:02:2D:*)
    INFO="Wireless LAN @ Work Setup"
    ESSID="FIRM_NETWORK"
    MODE="managed"
    KEY="s:Wireless_WORK [1]"
    ;;
home,*,*,00:60:1D:*|home,*,*,00:02:2D:*)
    INFO="Wireless LAN @ Home Setup"
    ESSID="HOME_NETWORK"
    MODE="managed"
    KEY="s:Wireless_HOME [1]"
    ;;
dhcp,*,*,00:60:1D:*|dhcp,*,*,00:02:2D:*)
    INFO="Generic Wireless LAN without Encryption"
    ESSID="any"
    MODE="managed"
    KEY="off [1]"
    ;;
esac

In /etc/pcmcia/network.opts:

case "$ADDRESS" in
work,*,*,*)
    INFO="Network @ Work Setup"
    IPADDR="10.70.123.100"
    NETMASK="255.255.255.0"
    BROADCAST="10.70.123.255"
    GATEWAY="10.70.123.1"
    ;;
home,*,*,*)
    INFO="Network @ Home Setup"
    IPADDR="192.168.5.100"
    NETMASK="255.255.255.0"
    BROADCAST="192.168.5.255"
    GATEWAY="192.168.5.1"
    ;;
dhcp,*,*,*)
    INFO="DHCP Network Setup"
    DHCP="y"
    ;;
esac

> Hope this helps

Me, too. ;)
-- 
Regards, GR                      | GnuPG-key on keyservers available
Muck, Dickbaer, Nane...          | or mail -s 'get gpg-key'
Linux: Undefinierte Welten jenseits von YAST(2)
Was? Es gibt Google? Und man-pages? _Und_ HOWTO's? - Seit wann?



Reply to: