PDA

View Full Version : problema mac address...


artes82
11-03-2008, 17:45
se do questi comandi:
wlancofig ath0 destroy
ifconfig wifi0 up
ifconfig wifi0 down
wlanconfig ath0 create wlandev wifi0

il MAC address di ath0 cambia da 00:15:xx:xx:xx:xx a 06:15:xx:xx:xx:xx.
ma il MAC address di wifi0 resta 00:15:xx:xx:xx:xx.

inoltre, se provo a cambiare il MAC con un altro valore, il valore delle prime due cifre viene aumentato di 6 per quanto riguarda ath0.
(es. wifi0: 01:xx..... ath0: 07:xx.....)

è normale? qual è il problema?

ilsensine
11-03-2008, 20:57
Essendo il device fisico sempre wifi0 non ci sono problemi nel driver, quindi andrei a cercare qualcosa in wlanconfig.

Dalla documentazione
http://madwifi.org/users-guide/node14.html
leggo:

The MAC address of the station VAP is the same as the underlying device's MAC address since it is the first VAP created. Example:Now, we wish to create two AP VAPs on device wifi0. The first device will have a cloned MAC address taken from the underlying device. The second VAP will have a ``virtual'' MAC address formed from the underlying device's MAC address.

Facendo 1+1, direi che wlanconfig non "prende nota" della distruzione del primo device, e quando lo ricrei crede di avere a che fare con un "secondo" device. Sto speculando, ma mi sembra plausibile.

Non credo sia una cosa grave se tutto funziona, ma sembrerebbe in effetti un bug che potresti riportare agli sviluppatori.

Puoi anche fare questo:
Creating multiple VAPs typically implies that the MAC address of each VAP is different. However, if the -bssid flag is used, then the MAC address of the underlying wireless device is cloned for the VAP being created.

artes82
12-03-2008, 10:22
ok... grazie per la risposta.
per caso hai provato anche tu?
l'importante è che sia un problema software, avevo paura fosse quasi andata la scheda wireless.....

ilsensine
12-03-2008, 10:36
No non ho avuto modo di provare