Re: wireless HELP
The Saltydog wrote:
> La mia scheda wireless è eth0 ed è collegata tramite bridge a quella
> ethernet. Uso gnome..
>
>
> On Thu, 27 Jan 2005 23:13:51 +0100, Marco
> <marco.santantonio@aliceposta.it> wrote:
>> The Saltydog wrote:
>>
>> > Sto diventando matto con il mio laptop X31...
>> >
>> > Come devo settarlo per fare in modo che funzioni in DHCP sia sulla
>> > wireless che sulla ethernet? Cioè, se ho a disposizione un access
>> > point e un plug ethernet, vorrei poter scegliere quale dei due usare..
>> >
>> > Sembra andare solo la wireless (eth0)...
>> >
>> > Scusate, ma è la prima volta che sono alle prese con il wi-fi su linux
>>
>>
>> in genere eth0 è l'interfaccia di rete tradizionale, la mia scheda
>> wireless si chiama ath0
>>
>> ...comunque prova a fare
>>
>> dhclient ath0
>>
>> e installa kwifimanager, può darti qualche indicazione utile
>>
>> se hai una scheda wireless pcmcia prova ad inserirla a computer acceso e
>> dai un'occhiata al log
>>
>> ciao
>>
>> marco
>>
>> --
>> To UNSUBSCRIBE, email to debian-italian-REQUEST@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact
>> listmaster@lists.debian.org
>>
>>
scusa non avevo capito il problema...tu vorresti qualcosa che ti possa fare
scegliere in fretta quale conf di rete utilizzare
io ho scopiazzato da una rivista e adattato uno script che mi permette da
grub di scegliere quale configurazione di rete utilizzare (statico con
cavo, dhcp, dhcp wireless)
l'ho messo in rc.S
è grezzo ma funziona, spero ti possa servire
#!/bin/sh
start () {
locazione=`cat /proc/cmdline | cut -d" " -f4 | cut -d= -f2`
# File resolv.conf
rm /etc/resolv.conf
if [ -f /etc/locazione/$locazione/resolv.conf ];
then cp /etc/locazione/$locazione/resolv.conf /etc
else echo "FIle $locazione/resolv.conf non presente !"
fi
############
# File interfaces
rm /etc/network/interfaces
if [ -f /etc/locazione/$locazione/interfaces ];
then cp /etc/locazione/$locazione/interfaces /etc/network
else echo "FIle $locazione/interfaces non presente !"
fi
}
restart () {
echo "Dimmi la locazione"
read luogo
if [ "$locazione" = "" ]; then
echo "uso {static|dhcp}"
fi
locazione=$luogo
# File resolv.conf
rm /etc/resolv.conf
if [ -f /etc/locazione/$locazione/resolv.conf ];
then cp /etc/locazione/$locazione/resolv.conf /etc
else echo "FIle $locazione/resolv.conf non presente !"
fi
############
# File interfaces
rm /etc/network/interfaces
if [ -f /etc/locazione/$locazione/interfaces ];
then cp /etc/locazione/$locazione/interfaces /etc/network
else echo "FIle $locazione/interfaces non presente !"
fi
}
case $1 in
start)
start
;;
restart)
restart
;;
"")
echo "uso: restart"
;;
esac
Reply to: