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

utilisation de laptop-net avec deux cartes Lan



Bonjour

j'ai sur mon portable deux cartes lan
	eepro100 intégrée au noyau eth0
	acx100_pci utilisée quand je plug ma carte DLink WL-650+ eth1

je souhaite configurer et utiliser ces cartes avec laptop-net en
fonction de réseau sur lequel je suis. Lan eepro100 au boulot et
acx100_pci en wifi chez moi.

dans le fichier /etc/default/laptop-net on précise avec MODULE_NAME= le
nom du 'network driver' et dans la doc du fichier il est précisé qu'il
faut commenter cette entrée si le driver est compilé dans le noyau (ce
qui est le cas pour la carte eepro100) mais dans mon cas j'ai deux
cartes à gerer.

qq a t'il déja utilisé laptop-net avec deux cartes ?

dans mon cas quand je suis connecté avec la carte eepro100 la carte wifi
n'est pas présente dans le portable mais la configuration reprend celle
de la carte wifi.

dans /etc/laptop-net/ip-map j'ai mis une entrée 'maison' et une entrée
'travail' avec des ip présentes sur les deux réseaux

dans schemes j'ai mis 
# Do not edit this file; it was generated by a program.  Any changes
# you make will be lost when the laptop-net package is reconfigured.
# If you want to manually maintain this file, run
#	dpkg-reconfigure laptop-net
# and answer "no" to the question
#	Manage laptop-net configuration files with debconf?
#
# $Id: schemes.conf,v 1.3 2003/01/20 21:06:25 cph Exp $
#
# Copyright 2000,2001,2002 Massachusetts Institute of Technology
#
# This file is part of laptop-net.
#
# Laptop-net is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Laptop-net is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with laptop-net; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.

# This script is sourced with the following shell variables:
# SCHEME is the name of the selected scheme.
# INTERFACE is the name of the interface.

case "${SCHEME}" in
maison)
	ADDRESS=10.0.0.2
	NETMASK=255.255.255.0
	GATEWAY=10.0.0.138
    	NAMESERVERS="193.252.19.3 193.252.19.4"
    	DOMAIN="maison"
	;;
travail)
	ADDRESS=10.0.0.111
	NETMASK=255.255.255.0
	GATEWAY=10.0.0.254
	NAMESERVERS="192.168.2.10"
	DOMAIN="RSE"
	SEARCH="travail.int"
	;;
offline)
    # Setting nothing means to leave the network interface disabled.
    ;;
*)
    # Set to "yes" to use DHCP
    DHCP="yes"

    # These bindings specify a static address and are ignored if DHCP is
used:
    ;;
esac



il y a un package laptop-net-doc que j'ai installé mais je ne trouve pas
la doc dans /usr/doc, qq sait il ou elle est installée ?

Merci

Patrick



Reply to: