Brak internetu w hotspotach

Instalacja i konfiguracja oprogramowania sieciowego.
Necrotrup
Sędziwy Jeż
Sędziwy Jeż
Posty: 37
Rejestracja: 17 kwie 2007, 18:38
Płeć: Mężczyzna
Wersja Ubuntu: 14.04
Środowisko graficzne: GNOME
Architektura: x86

Brak internetu w hotspotach

Post autor: Necrotrup »

Witam.
Mam dziwny problem. Otóż posiadam netbook z kartą wifi atheros AR 9285. System Ubuntu 10.10. Menedżer połączeń WICD.
I teraz: łączę się bez problemu z siecią bezprzewodową. W domu (sieć zabezpieczona WPA2) mam internet. Natomiast w pracy (sieć zabezpieczona WPA2) i w hotspotach łączy mi się z siecią, natomiast nie mam dostępu do internetu.
Co może być przyczyną takiego stanu rzeczy? Wyłączanie firestartera nie pomogło.
Awatar użytkownika
alex2
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 111
Rejestracja: 22 cze 2008, 13:41
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: Openbox
Architektura: x86

Odp: Brak internetu w hotspotach

Post autor: alex2 »

1) Proponuję stosować network-manager.
2) W ustawieniach połączenia bezprzewodowego musi być IPV4- "adres przez dhcp".
3) Inne połączenia, typu domowe, najlepiej odznaczyć "łącz automatycznie".
4) Możesz podać wynik komend

ifconfig -a
ip route show
cat /etc/resolv.conf
?

5) Spróbuj spingować Onet bez nazw z dns-ów:
ping 213.180.146.27

6) Jesteś pewien, że jakbyś miał inny lapek, czy windows, to Cię wpuści? Może trzeba poprosić admina.
Necrotrup
Sędziwy Jeż
Sędziwy Jeż
Posty: 37
Rejestracja: 17 kwie 2007, 18:38
Płeć: Mężczyzna
Wersja Ubuntu: 14.04
Środowisko graficzne: GNOME
Architektura: x86

Odp: Brak internetu w hotspotach

Post autor: Necrotrup »

W windowsie nie było problemu - mam na tym komputerze też preinstalowanego XP. Sprawdziłem to na co najmniej trzech hotspotach.

ifconfig -a

Kod: Zaznacz cały

eth1      Link encap:Ethernet  HWaddr 70:5a:b6:19:82:ff  
          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)
          Interrupt:46 

eth1:avahi Link encap:Ethernet  HWaddr 70:5a:b6:19:82:ff  
          inet addr:169.254.10.21  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          Interrupt:46 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:128 errors:0 dropped:0 overruns:0 frame:0
          TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11142 (11.1 KB)  TX bytes:11142 (11.1 KB)

wlan1     Link encap:Ethernet  HWaddr 90:4c:e5:9e:d0:dd  
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::924c:e5ff:fe9e:d0dd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:580567 errors:0 dropped:0 overruns:0 frame:0
          TX packets:419321 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:695471106 (695.4 MB)  TX bytes:378080414 (378.0 MB)
cat /etc/resolv.conf

Kod: Zaznacz cały

# Generated by dhcpcd for interface wlan1
search 
nameserver 192.168.1.100
ip route show

Kod: Zaznacz cały

192.168.1.0/24 dev wlan1  proto kernel  scope link  src 192.168.1.102 
169.254.0.0/16 dev eth1  proto kernel  scope link  src 169.254.10.21 
default via 192.168.1.100 dev wlan1 
default dev eth1  scope link  metric 1002 
Awatar użytkownika
alex2
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 111
Rejestracja: 22 cze 2008, 13:41
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: Openbox
Architektura: x86

Odp: Brak internetu w hotspotach

Post autor: alex2 »

Mógłbyś jeszcze podać wynik tych dwóch komend?
ping 213.180.146.27
ping onet.pl

Może masz internet, tylko z przeglądarką coś jest nie tak.
Albo, jak mówiliśmy, z dns.
Necrotrup
Sędziwy Jeż
Sędziwy Jeż
Posty: 37
Rejestracja: 17 kwie 2007, 18:38
Płeć: Mężczyzna
Wersja Ubuntu: 14.04
Środowisko graficzne: GNOME
Architektura: x86

Odp: Brak internetu w hotspotach

Post autor: Necrotrup »

Przeprasza, że tak późno się odzywam, ale dopiero teraz miałem okazję poeksperymentować na hotspocie, a raczej niezabezpieczonej sieci:
ifconfig -a

Kod: Zaznacz cały

eth1      Link encap:Ethernet  HWaddr 70:5a:b6:19:82:ff  
          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)
          Interrupt:46 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:124 errors:0 dropped:0 overruns:0 frame:0
          TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11024 (11.0 KB)  TX bytes:11024 (11.0 KB)

wlan1     Link encap:Ethernet  HWaddr 90:4c:e5:9e:d0:dd  
          inet addr:192.168.1.103  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:576  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3102 (3.1 KB)  TX bytes:14699 (14.6 KB)
ip route show

Kod: Zaznacz cały

192.168.1.0/24 dev wlan1  proto kernel  scope link  src 192.168.1.103 
default via 192.168.1.1 dev wlan1
cat /etc/resolv.conf

Kod: Zaznacz cały

# Generated by dhcpcd for interface wlan1
search 
nameserver 192.168.1.100
5) Spróbuj spingować Onet bez nazw z dns-ów:
ping 213.180.146.27

Mógłbyś jeszcze podać wynik tych dwóch komend?
ping 213.180.146.27

Kod: Zaznacz cały

PING 213.180.146.27 (213.180.146.27) 56(84) bytes of data.
64 bytes from 213.180.146.27: icmp_req=1 ttl=55 time=21.9 ms
64 bytes from 213.180.146.27: icmp_req=2 ttl=55 time=24.8 ms
64 bytes from 213.180.146.27: icmp_req=3 ttl=55 time=21.0 ms
64 bytes from 213.180.146.27: icmp_req=4 ttl=55 time=25.4 ms
64 bytes from 213.180.146.27: icmp_req=5 ttl=55 time=21.7 ms
64 bytes from 213.180.146.27: icmp_req=6 ttl=55 time=25.2 ms
64 bytes from 213.180.146.27: icmp_req=7 ttl=55 time=20.6 ms
64 bytes from 213.180.146.27: icmp_req=8 ttl=55 time=25.9 ms
64 bytes from 213.180.146.27: icmp_req=9 ttl=55 time=21.3 ms
64 bytes from 213.180.146.27: icmp_req=10 ttl=55 time=23.6 ms
64 bytes from 213.180.146.27: icmp_req=11 ttl=55 time=20.7 ms
64 bytes from 213.180.146.27: icmp_req=12 ttl=55 time=20.5 ms
64 bytes from 213.180.146.27: icmp_req=13 ttl=55 time=28.7 ms
64 bytes from 213.180.146.27: icmp_req=14 ttl=55 time=23.7 ms
64 bytes from 213.180.146.27: icmp_req=15 ttl=55 time=20.4 ms
64 bytes from 213.180.146.27: icmp_req=16 ttl=55 time=21.0 ms
64 bytes from 213.180.146.27: icmp_req=17 ttl=55 time=21.2 ms
64 bytes from 213.180.146.27: icmp_req=18 ttl=55 time=22.9 ms
64 bytes from 213.180.146.27: icmp_req=19 ttl=55 time=20.6 ms
64 bytes from 213.180.146.27: icmp_req=20 ttl=55 time=20.9 ms
64 bytes from 213.180.146.27: icmp_req=21 ttl=55 time=23.4 ms
64 bytes from 213.180.146.27: icmp_req=22 ttl=55 time=22.0 ms
64 bytes from 213.180.146.27: icmp_req=23 ttl=55 time=20.4 ms
64 bytes from 213.180.146.27: icmp_req=24 ttl=55 time=21.1 ms
64 bytes from 213.180.146.27: icmp_req=25 ttl=55 time=24.8 ms
64 bytes from 213.180.146.27: icmp_req=26 ttl=55 time=20.9 ms
64 bytes from 213.180.146.27: icmp_req=27 ttl=55 time=21.4 ms
64 bytes from 213.180.146.27: icmp_req=28 ttl=55 time=23.8 ms
64 bytes from 213.180.146.27: icmp_req=29 ttl=55 time=21.6 ms
64 bytes from 213.180.146.27: icmp_req=30 ttl=55 time=21.7 ms
64 bytes from 213.180.146.27: icmp_req=31 ttl=55 time=26.7 ms
64 bytes from 213.180.146.27: icmp_req=32 ttl=55 time=22.9 ms
64 bytes from 213.180.146.27: icmp_req=33 ttl=55 time=22.5 ms
64 bytes from 213.180.146.27: icmp_req=34 ttl=55 time=23.6 ms
64 bytes from 213.180.146.27: icmp_req=35 ttl=55 time=21.7 ms
64 bytes from 213.180.146.27: icmp_req=36 ttl=55 time=21.4 ms
64 bytes from 213.180.146.27: icmp_req=37 ttl=55 time=22.9 ms
64 bytes from 213.180.146.27: icmp_req=38 ttl=55 time=19.9 ms
64 bytes from 213.180.146.27: icmp_req=39 ttl=55 time=19.8 ms
64 bytes from 213.180.146.27: icmp_req=40 ttl=55 time=21.3 ms
64 bytes from 213.180.146.27: icmp_req=41 ttl=55 time=20.4 ms
64 bytes from 213.180.146.27: icmp_req=42 ttl=55 time=21.3 ms
64 bytes from 213.180.146.27: icmp_req=43 ttl=55 time=23.8 ms
64 bytes from 213.180.146.27: icmp_req=44 ttl=55 time=21.4 ms
64 bytes from 213.180.146.27: icmp_req=45 ttl=55 time=20.2 ms
64 bytes from 213.180.146.27: icmp_req=46 ttl=55 time=23.8 ms
64 bytes from 213.180.146.27: icmp_req=47 ttl=55 time=20.8 ms
64 bytes from 213.180.146.27: icmp_req=48 ttl=55 time=20.3 ms
64 bytes from 213.180.146.27: icmp_req=49 ttl=55 time=22.5 ms
64 bytes from 213.180.146.27: icmp_req=50 ttl=55 time=21.0 ms
64 bytes from 213.180.146.27: icmp_req=51 ttl=55 time=20.7 ms
64 bytes from 213.180.146.27: icmp_req=52 ttl=55 time=23.2 ms
64 bytes from 213.180.146.27: icmp_req=53 ttl=55 time=20.5 ms
64 bytes from 213.180.146.27: icmp_req=54 ttl=55 time=20.7 ms
64 bytes from 213.180.146.27: icmp_req=55 ttl=55 time=20.8 ms
64 bytes from 213.180.146.27: icmp_req=56 ttl=55 time=23.4 ms
64 bytes from 213.180.146.27: icmp_req=57 ttl=55 time=20.9 ms
64 bytes from 213.180.146.27: icmp_req=58 ttl=55 time=21.7 ms
64 bytes from 213.180.146.27: icmp_req=59 ttl=55 time=19.6 ms
64 bytes from 213.180.146.27: icmp_req=60 ttl=55 time=23.7 ms
64 bytes from 213.180.146.27: icmp_req=61 ttl=55 time=20.3 ms
64 bytes from 213.180.146.27: icmp_req=62 ttl=55 time=23.2 ms
64 bytes from 213.180.146.27: icmp_req=63 ttl=55 time=20.3 ms
64 bytes from 213.180.146.27: icmp_req=64 ttl=55 time=19.9 ms
64 bytes from 213.180.146.27: icmp_req=65 ttl=55 time=21.6 ms
64 bytes from 213.180.146.27: icmp_req=66 ttl=55 time=24.4 ms
64 bytes from 213.180.146.27: icmp_req=67 ttl=55 time=20.8 ms
64 bytes from 213.180.146.27: icmp_req=68 ttl=55 time=20.5 ms
64 bytes from 213.180.146.27: icmp_req=69 ttl=55 time=19.8 ms
64 bytes from 213.180.146.27: icmp_req=70 ttl=55 time=23.7 ms
64 bytes from 213.180.146.27: icmp_req=71 ttl=55 time=22.5 ms
64 bytes from 213.180.146.27: icmp_req=72 ttl=55 time=26.3 ms
64 bytes from 213.180.146.27: icmp_req=73 ttl=55 time=20.2 ms
64 bytes from 213.180.146.27: icmp_req=74 ttl=55 time=18.8 ms
64 bytes from 213.180.146.27: icmp_req=75 ttl=55 time=24.9 ms
64 bytes from 213.180.146.27: icmp_req=76 ttl=55 time=22.5 ms
64 bytes from 213.180.146.27: icmp_req=77 ttl=55 time=20.9 ms
64 bytes from 213.180.146.27: icmp_req=78 ttl=55 time=26.4 ms
64 bytes from 213.180.146.27: icmp_req=79 ttl=55 time=24.4 ms
64 bytes from 213.180.146.27: icmp_req=80 ttl=55 time=20.6 ms
64 bytes from 213.180.146.27: icmp_req=81 ttl=55 time=22.1 ms
64 bytes from 213.180.146.27: icmp_req=82 ttl=55 time=20.8 ms
64 bytes from 213.180.146.27: icmp_req=83 ttl=55 time=23.7 ms
64 bytes from 213.180.146.27: icmp_req=84 ttl=55 time=22.8 ms
64 bytes from 213.180.146.27: icmp_req=85 ttl=55 time=20.1 ms
64 bytes from 213.180.146.27: icmp_req=86 ttl=55 time=19.8 ms
64 bytes from 213.180.146.27: icmp_req=87 ttl=55 time=24.1 ms
64 bytes from 213.180.146.27: icmp_req=88 ttl=55 time=21.7 ms
64 bytes from 213.180.146.27: icmp_req=89 ttl=55 time=22.8 ms
64 bytes from 213.180.146.27: icmp_req=90 ttl=55 time=21.9 ms
64 bytes from 213.180.146.27: icmp_req=91 ttl=55 time=21.7 ms
64 bytes from 213.180.146.27: icmp_req=92 ttl=55 time=21.4 ms
64 bytes from 213.180.146.27: icmp_req=93 ttl=55 time=21.3 ms
64 bytes from 213.180.146.27: icmp_req=94 ttl=55 time=23.4 ms
64 bytes from 213.180.146.27: icmp_req=95 ttl=55 time=23.9 ms
64 bytes from 213.180.146.27: icmp_req=96 ttl=55 time=21.9 ms
64 bytes from 213.180.146.27: icmp_req=97 ttl=55 time=24.7 ms
64 bytes from 213.180.146.27: icmp_req=98 ttl=55 time=21.1 ms
64 bytes from 213.180.146.27: icmp_req=99 ttl=55 time=21.8 ms
64 bytes from 213.180.146.27: icmp_req=100 ttl=55 time=20.7 ms
64 bytes from 213.180.146.27: icmp_req=101 ttl=55 time=21.2 ms
64 bytes from 213.180.146.27: icmp_req=102 ttl=55 time=24.3 ms
64 bytes from 213.180.146.27: icmp_req=103 ttl=55 time=22.3 ms
64 bytes from 213.180.146.27: icmp_req=104 ttl=55 time=19.9 ms
64 bytes from 213.180.146.27: icmp_req=105 ttl=55 time=22.1 ms
64 bytes from 213.180.146.27: icmp_req=106 ttl=55 time=23.3 ms
64 bytes from 213.180.146.27: icmp_req=107 ttl=55 time=20.5 ms
64 bytes from 213.180.146.27: icmp_req=108 ttl=55 time=23.0 ms
64 bytes from 213.180.146.27: icmp_req=109 ttl=55 time=21.2 ms
64 bytes from 213.180.146.27: icmp_req=110 ttl=55 time=22.7 ms
64 bytes from 213.180.146.27: icmp_req=111 ttl=55 time=19.8 ms
64 bytes from 213.180.146.27: icmp_req=112 ttl=55 time=21.2 ms
64 bytes from 213.180.146.27: icmp_req=113 ttl=55 time=21.4 ms
64 bytes from 213.180.146.27: icmp_req=114 ttl=55 time=19.6 ms
64 bytes from 213.180.146.27: icmp_req=115 ttl=55 time=25.5 ms
64 bytes from 213.180.146.27: icmp_req=116 ttl=55 time=20.5 ms
64 bytes from 213.180.146.27: icmp_req=117 ttl=55 time=21.8 ms
64 bytes from 213.180.146.27: icmp_req=118 ttl=55 time=21.1 ms
64 bytes from 213.180.146.27: icmp_req=119 ttl=55 time=35.8 ms
64 bytes from 213.180.146.27: icmp_req=120 ttl=55 time=23.4 ms
64 bytes from 213.180.146.27: icmp_req=121 ttl=55 time=21.1 ms
64 bytes from 213.180.146.27: icmp_req=122 ttl=55 time=20.8 ms
64 bytes from 213.180.146.27: icmp_req=123 ttl=55 time=22.0 ms
64 bytes from 213.180.146.27: icmp_req=124 ttl=55 time=21.2 ms
64 bytes from 213.180.146.27: icmp_req=125 ttl=55 time=25.1 ms
64 bytes from 213.180.146.27: icmp_req=126 ttl=55 time=21.3 ms
64 bytes from 213.180.146.27: icmp_req=127 ttl=55 time=21.1 ms
64 bytes from 213.180.146.27: icmp_req=128 ttl=55 time=21.9 ms
^C
--- 213.180.146.27 ping statistics ---
128 packets transmitted, 128 received, 0% packet loss, time 127092ms
rtt min/avg/max/mdev = 18.878/22.203/35.862/2.139 ms
Przerwałem mu to pingowanie, bo trwało i trwało, stąd ^C.

ping onet.pl

Kod: Zaznacz cały

ping: unknown host onet.pl
Jak mówiłem, z moją domową łączy się bez problemu i jest internet, z innymi też łączy, ale internetu nie ma. Tlen też się nie połączył, więc raczej nie tylko przeglądarka.
Awatar użytkownika
alex2
Serdeczny Borsuk
Serdeczny Borsuk
Posty: 111
Rejestracja: 22 cze 2008, 13:41
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: Openbox
Architektura: x86

Odp: Brak internetu w hotspotach

Post autor: alex2 »

Twoim problemem jest serwer DNS, a raczej jego brak (poprawnie działającego).
Jak widać ładnie pinguje adresy w postaci numerów IP, ale w postaci nazw już nie.

Możesz do tego pliku /etc/resolv.conf
dać taką zawartość zamiast tamtej (są to adresy zewnętrznych serwerów TPSA).

Kod: Zaznacz cały

search
nameserver 194.204.152.34
nameserver 194.204.159.1


I spróbować przeglądarkę, jak nie - to restart sieci.

Kod: Zaznacz cały

sudo service networking restart
Tylko to trzeba będzie chyba za każdym razem wpisywać, ewentualnie zmienić w WICD, by nie pobierał adresu DNS.
Awatar użytkownika
nithathak
Wytworny Kaczor
Wytworny Kaczor
Posty: 330
Rejestracja: 07 kwie 2007, 19:29
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME
Architektura: x86

Odp: Brak internetu w hotspotach

Post autor: nithathak »

Ustaw w wicd adres na dns googla 8.8.8.8 zdecydowanie pewniejszy od tych z tepsy.
Necrotrup
Sędziwy Jeż
Sędziwy Jeż
Posty: 37
Rejestracja: 17 kwie 2007, 18:38
Płeć: Mężczyzna
Wersja Ubuntu: 14.04
Środowisko graficzne: GNOME
Architektura: x86

Re: Brak internetu w hotspotach

Post autor: Necrotrup »

Jestem znowu.
Problem rozwiązany, internet jest. Ustawiłem dns na googla (8.8.8.8), ale w międzyczasie zrobiłem coś dziwnego. Otóż gdy, zgodnie z poradą alex2 próbowałem zastąpić wicd network-managerem, najpierw w ogóle zniknęła mi sieć, potem okazało się, że udało mi się zainstalować oba menedżery sieci jednocześnie i sieć wróciła, ale tylko w domu, a później udało mi się network-managera usunąć i sytuacja doszła do normalności.
Czy jest to tylko zasługa zmienionych dns, czy też stało się coś jeszcze przy manewrach z menedżerami sieci, nie jestem w stanie stwierdzić.
Awatar użytkownika
nithathak
Wytworny Kaczor
Wytworny Kaczor
Posty: 330
Rejestracja: 07 kwie 2007, 19:29
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME
Architektura: x86

Re: Brak internetu w hotspotach

Post autor: nithathak »

Jeśli są dwa to działają nie poprawnie. Wcześniej instalując jeden automatycznie drugi był usuwany, teraz tak nie jest chociaż nadal występuje między nimi konflikt
ODPOWIEDZ

Wróć do „Sieci, serwery, Internet”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 1 gość