Pagina 1 di 1

Wireless

Inviato: gio 20 ott 2005, 18:05
da DarkNeo
Salve premetto che ho sia router wireless e scheda wireless installati e penso ben funzionanti da più di un'anno, ma non le ho mai usate :? oggi volevo provare a farle partire dando iwlist wlan0 scan, trova l'essid del router wireless, ma dopo l'ip da far arrivare come lo recupero?? questo è il mio /etc/rc.d/rc.inet1.conf

Codice: Seleziona tutto

 # =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]=""
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
WLAN_ESSID[4]=Neo
WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="auto"
#WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="AuthMode=WPAPSK EncrypType=TKIP WPAPSK=7B1ABEEB5D197741923ED26
727569C365E31212096A0EAFAD563B268BAD01CAF TxRate=0"
#WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="ndiswrapper"

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name nstead of
                                # the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#WLAN_ESSID[4]=DARKSTAR         # Here, you can override _any_ parameter
                                # defined in rc.wireless.conf, by appending
                                # 'WLAN_' to the parameter's name. Useful for
                                # those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="AuthMode=WPAPSK EncrypType=TKIP WPAPSK=thekey TxRate=0"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (space-separated, see the
                                # example).

Inviato: gio 20 ott 2005, 18:32
da l1q1d
devi decidere se dargli l'ip satico o dinamico se glielo dai dinamico allora decommenta

Codice: Seleziona tutto

USE_DHCP[4]="yes"
se invece lo vuoi statico:

Codice: Seleziona tutto

IPADDR[4]=""
NETMASK[4]="" 
e inserisci tra le virgolette il valore dell'ip e della netmask

controlla se hai la wep attiva e quindi decommenta le righe relative alle chiavi:

Codice: Seleziona tutto

WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7" 

Inviato: gio 20 ott 2005, 19:00
da DarkNeo
Si ho decommentato mene ero dimenticato, ma poi che devo fare? fa tutto da solo?

Inviato: gio 20 ott 2005, 19:14
da DarkNeo

Codice: Seleziona tutto

root@Neo:/home/neo$iwconfig wlan0 scan
Error : unrecognised wireless request "scan"

Codice: Seleziona tutto

root@Neo:/home/neo$/etc/rc.d/rc.inet1 start
/etc/rc.d/rc.inet1:  wlan0 is 'Any ESSID'
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Invalid argument.
Invalid command : set
Invalid command : set
Invalid command : set
Invalid command : set
dhcpcd: MAC address = 00:e0:98:d8:88:11
a me sembra giusto ma non riesco a capire l'errore che mi da..

Inviato: gio 20 ott 2005, 19:51
da l1q1d
il comando giusto è

Codice: Seleziona tutto

iwlist wlan0 scan
per gli errori nn ti preoccuapare li da anche a me ma nn capisco il motivo

Inviato: gio 20 ott 2005, 20:11
da DarkNeo
Si ma a te si connette a me no :?

Inviato: ven 21 ott 2005, 12:20
da l1q1d
allora riepilogando:
- il iwlist wlan0 da risultato (si o no?)
- configurare la wireless a mano da risultato (iwconfig wlan0 tuoi parametri) da risultato (si o no?)
- il modulo è caricato giusto?

Inviato: ven 21 ott 2005, 15:51
da DarkNeo
Il modulo è caricato, con iwlist wlan0 dice "wlan0 command not found" non cambia niente mettendo i settaggi a mano.