On 2/6/07, Dot Deb <[EMAIL PROTECTED]> wrote:
Continua la mia battaglia serale con la configurazione automatica della rete.
Ho risolto il problema proprio lo scorso fine settimana.. Dovevo attivare la scheda di rete del mio portatile e configurarla in funzione della rete disponibile: casa o lavoro. Primo installo "iproute": sudo apt-get install iproute che contiene "ip". Questo viene usato per attivare la scheda di rete secondo due configurazioni possibili, specificate in "/etc/network/interfaces", con la stanza "mapping": # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback #### The primary network interface auto eth1 *mapping eth1* *script /etc/network/ping-places.sh* *map 192.168.0.254/24 192.168.0.1 eth1-home* *map 10.1.1.254/24 10.1.1.125 eth1-work* iface eth1-work inet static name Scheda di rete Ethernet nvidia address 10.1.1.36 netmask 255.255.255.0 broadcast 10.1.1.255 network 10.1.1.0 gateway 10.1.1.252 iface eth1-home inet static name Scheda di rete Ethernet nvidia address 192.168.0.12 netmask 255.255.255.0 broadcast 192.168.0.255 network 192.168.0.0 gateway 192.168.0.1 quando viene attivata la scheda di rete "eth1" viene eseguito lo script "/etc/network/ping-places.sh", che trovi nella directory degli esempi "/usr/share/doc/ifupdown/examples/". Se l'host 10.1.1.125 risponde allora รจ attivata la configurazione "eth1-work", se risponde l'host 192.168.0.1 allora viene attivata la configurazione "eth1-home". Sono disponibili anche altri strumenti per risolvere il problema, come ad esempio "guessnet". Saluti. // SS -- ,= ,-_-. =. jabber: [EMAIL PROTECTED] ((_/)o o(\_)) Trusted Computing: http://www.no1984.org `-'(. .)`-' "In theory, it shouldn't be that hard, \_/ but it just needs to be done"