Nowe posty

xx Dystrybucja pod HP Omen (6)
2024-03-27, 23:30:08
xx [Poradnik] Wyszukiwanie Sterowników (2)
2024-03-27, 21:08:23
lamp Problem z Linux Lite po instalacji (0)
2024-03-27, 19:50:30
xx Ile pingwinów? (1)
2024-03-27, 08:59:24
xx konfiguracja pale moon (0)
2024-03-24, 21:53:42
xx Plasma 6 w Neonie ssie trochę mniej ... (10)
2024-03-23, 02:38:11
xx problem z instalacja sterowników do karty sieciowej (3)
2024-03-18, 18:10:16
xx Plik abc.001 (1)
2024-03-17, 17:48:27
xx Zlecę dopracowanie programu w MatLab (0)
2024-03-13, 15:28:40
xx Linux Mint 21.3 XFCE brak dźwieku po paru minutach (karta muzyczna zintegrowana) (5)
2024-03-12, 23:07:01

Autor Wątek: Wifi accesspoint na raspbianie  (Przeczytany 1614 razy)

szybkimirek

  • Gość
Wifi accesspoint na raspbianie
« dnia: 2015-08-30, 17:11:29 »
Witam,

Utworzyłem według http://malinowepi.pl/post/43808123098/malinowy-hotspot hotspot na raspbianie. Karta wifi to dokładnie taka sama jak w artykule, czyli Edimax EW-7811Un. Po wdrożeniu takich ustawień jestem w stanie podłączyć się poprzez wifi do AP jak i również korzystać z internetu, gdyz portem eth0 jest on dostarczany z routera.

Problem polega na tym, że chcę użyć drugiej karty wifi tp-link wn722n do połączenia z routerem, zamiast kabla. Kiedy umieszczę kartę w slocie usb, to po restarcie RPi karta wlan0 (edimax) dostaje jakiś dziwny adres IP i nie mogę się połączyć telefonem z AP.

Przypadek OK:

- tylko jedna karta, można się połączyć z AP za pomocą telefonu i korzystać z internetu
eth0      Link encap:Ethernet  HWaddr b8:27:eb:d0:06:ce
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1160 errors:0 dropped:232 overruns:0 frame:0
          TX packets:414 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:123507 (120.6 KiB)  TX bytes:72128 (70.4 KiB))

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:164 errors:0 dropped:0 overruns:0 frame:0
          TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:13300 (12.9 KiB)  TX bytes:13300 (12.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 74:da:38:41:23:29
          inet addr:192.168.5.1  Bcast:192.168.5.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1164 errors:0 dropped:177 overruns:0 frame:0
          TX packets:230 errors:0 dropped:3 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:110962 (108.3 KiB)  TX bytes:38687 (37.7 KiB)

i syslog

pi@raspberrypi ~ $ tail -f /var/log/syslog
Aug 30 14:38:13 raspberrypi hostapd: wlan0: STA 5c:f8:a1:48:47:fe IEEE 802.11: associated
Aug 30 14:38:13 raspberrypi hostapd: wlan0: STA 5c:f8:a1:48:47:fe RADIUS: starting accounting session 55E31386-00000002
Aug 30 14:38:13 raspberrypi hostapd: wlan0: STA 5c:f8:a1:48:47:fe WPA: pairwise key handshake completed (RSN)
Aug 30 14:38:14 raspberrypi udhcpd[2135]: Sending ACK to 192.168.5.61

Przypadek NOK, karta wlan0 otrzymuje jakiś dziwny adres i nie można się podłączyć telefonem do AP

pi@raspberrypi ~ $ cat ifconfig.data
eth0      Link encap:Ethernet  HWaddr b8:27:eb:d0:06:ce
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:72 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6288 (6.1 KiB)  TX bytes:6288 (6.1 KiB)

wlan0     Link encap:Ethernet  HWaddr 74:da:38:41:23:29
          inet addr:169.254.205.52  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:2555 (2.4 KiB)

wlan1     Link encap:Ethernet  HWaddr c4:e9:84:13:6e:9b
          inet addr:192.168.0.106  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:151 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13714 (13.3 KiB)  TX bytes:8564 (8.3 KiB)

Aug 30 14:46:15 raspberrypi hostapd: wlan0: STA 5c:f8:a1:48:47:fe IEEE 802.11: associated
Aug 30 14:46:15 raspberrypi hostapd: wlan0: STA 5c:f8:a1:48:47:fe RADIUS: starting accounting session 55E31388-00000000
Aug 30 14:46:15 raspberrypi hostapd: wlan0: STA 5c:f8:a1:48:47:fe WPA: pairwise key handshake completed (RSN)
Aug 30 14:46:16 raspberrypi ifplugd(wlan0)[1668]: Link beat detected.
Aug 30 14:46:16 raspberrypi ifplugd(wlan0)[1668]: Executing '/etc/ifplugd/ifplugd.action wlan0 up'.
Aug 30 14:46:16 raspberrypi ifplugd(wlan0)[1668]: client: /sbin/ifup: interface wlan0 already configured
Aug 30 14:46:16 raspberrypi ifplugd(wlan0)[1668]: Program executed successfully.
Aug 30 14:46:46 raspberrypi hostapd: wlan0: STA 5c:f8:a1:48:47:fe IEEE 802.11: disassociated

W którym miejscu zrobiłem błąd?
« Ostatnia zmiana: 2015-08-30, 17:15:15 wysłana przez SzybkiMirek »