[+] Brak internetu po kablu - ruter

Masz problemy z siecią bądź internetem? Zapytaj tu
MKarol89
Posty: 10
Rejestracja: 31 marca 2009, 15:39

[+] Brak internetu po kablu - ruter

Post autor: MKarol89 »

Zainstalowałem Debiana i podpiąłem internet przez kabel.
Bez problemu wykrył i wszystko śmigało.
Niestety tego samego dnia musiałem jeszcze raz przeinstalować Linuksa.
Teraz już w ogóle nie wykrywa.
Najdziwniejsze jest to, że w czasie instalacji wykrywa internet i po zainstalowaniu sieć też.
Mogę się zalogować na ruter.
Wszystko idzie automatycznym przez DHCP ale internetu nie ma.
Jaka może być przyczyna?
Ister
Junior Member
Posty: 566
Rejestracja: 05 marca 2009, 12:42

Post autor: Ister »

Zacznij od podania wyniku następujących komend:

Kod: Zaznacz cały

ifconfig
ifconfig -a
route
A dalej pomyślimy.
MKarol89
Posty: 10
Rejestracja: 31 marca 2009, 15:39

Post autor: MKarol89 »

ifconfig:

Kod: Zaznacz cały

debian:/home/karol# ifconfig
 

eth0      
Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx          
inet addr:192.168.0.114  Bcast:192.168.0.255  Mask:255.255.255.0
inet6 addr: xxxx::xxxx:xxxx:xxxx:xxx/xx Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:5198 (5.0 KiB)  TX bytes:18571 (18.1 KiB)
Interrupt:252 Base address:0xa000 

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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 
RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)

wlan0     
Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
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)

wmaster0  
Link encap:UNSPEC  HWaddr xx-xx-xx-xx-xx-xx-xx-xx-00-00-00-00-00-00-00-xx  
UP BROADCAST RUNNING 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)
ifconfig -a

Kod: Zaznacz cały

debian:/home/karol# ifconfig -a

eth0      
Link encap:Ethernet  HWaddr 00:1d:92:52:23:25  
inet addr:192.168.0.114  Bcast:192.168.0.255  Mask:255.255.255.0
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/xx Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:5198 (5.0 KiB)  TX bytes:18755 (18.3 KiB)
Interrupt:252 Base address:0xa000 

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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 
RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)

wlan0     
Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
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)

wmaster0  
Link encap:UNSPEC  HWaddr xx-xx-xx-xx-xx-xx-00-00-00-00-00-xx-00-00-00-00  
UP BROADCAST RUNNING 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)
route

Kod: Zaznacz cały

debian:/home/karol# route

Kernel IP routing table
Destination     Gateway            Genmask         Flags Metric  Ref    Use Iface
192.168.0.0        *               255.255.255.0      U        0      0        0  eth0
link-local             *                255.255.0.0        U     1000    0        0  eth0
default         192.168.0.1           0.0.0.0           UG       0      0        0  eth0
Wcześniej działało bez problemu. Zero konfiguracji. A teraz nic... tylko lan działa. Pingi dochodzą do bramy, dalej nie.
Ister
Junior Member
Posty: 566
Rejestracja: 05 marca 2009, 12:42

Post autor: Ister »

Ruter (192.168.0.1) jest Twój, czy dostawcy internetu?
Nie zwróciłeś uwagi, czy wcześniej dostawałeś adres w tej samej puli/sieci?
MKarol89
Posty: 10
Rejestracja: 31 marca 2009, 15:39

Post autor: MKarol89 »

To jest mój router. Wcześniej dostawałem wszystko z tej samej sieci.

Kod: Zaznacz cały

192.168.0.117
255.255.255.0
192.168.0.1
Inne komputery podpięte do tego rutera działają bezproblemowo. I Windows na tym samym komputerze też (właśnie z niego pisze).
Nie wiem czemu teraz DHCP nie chce zadziałać.
Ister
Junior Member
Posty: 566
Rejestracja: 05 marca 2009, 12:42

Post autor: Ister »

Czekaj, czekaj. DHCP jak najbardziej zadziałał - przecież adres masz przyznany (192.168.0.114), route jest ustawione prawidłowo.

Rozumiem, że pingi numeryczne też wyjść nie chcą? Spróbuj np. pingnąć 209.85.229.103

Na tym linuksie nie ustawiałeś jakichś firewalli (iptables)? Co wyświetlają

Kod: Zaznacz cały

iptables -L
iptables -t nat -L
Skoro nie chodzi łącze na jednym komputerze, a chodzi na innym,. to niewątpliwie z samym komputerem jest problem. Ale router może się bardzo przydać do diagnozowania.
MKarol89
Posty: 10
Rejestracja: 31 marca 2009, 15:39

Post autor: MKarol89 »

iptables -L
iptables -t nat -L

Kod: Zaznacz cały

debian:/home/karol# iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         


debian:/home/karol# iptables -t nat -L

Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Nie wiele z tego rozumiem...
mariaczi
Member
Posty: 1343
Rejestracja: 08 lutego 2008, 12:58
Lokalizacja: localhost@śląskie

Post autor: mariaczi »

Powyzsze pokazuje ze nie masz uruchomionego firewala.
Z linuksa podaj wynik

Kod: Zaznacz cały

ping [url]www.wp.pl[/url] -c 4
ping 212.77.100.101 -c 4
Edit:
przyda sie rowniez

Kod: Zaznacz cały

cat /etc/resolv.conf
MKarol89
Posty: 10
Rejestracja: 31 marca 2009, 15:39

Post autor: MKarol89 »

cat/etc/resolv.conf:

Kod: Zaznacz cały

### BEGIN INFO
#
# Modified_by:  NetworkManager
# Process:      /usr/bin/NetworkManager
# Process_id:   3164
#
### END 

INFO

nameserver 194.204.159.1
nameserver 192.168.0.1

Kod: Zaznacz cały

debian:/home/karol# ping [url]www.wp.pl[/url] -c 4
ping: unknown host [url]www.wp.pl[/url]

Kod: Zaznacz cały

debian:/home/karol# ping 212.77.100.101 -c 4
PING 212.77.100.101 (212.77.100.101) 56(84) bytes of data.

--- 212.77.100.101 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3016ms
Cała sieć pracuje w 100%. Mogę się logować na bramę i inne rutery w sieci. Wszystko działa poza http.

[Dodano: 2009-04-01, 15:58]
Sprawdziłem internet na w innej sieci i o dziwo działa bez konfiguracji. Bez problemu się połączył. Dlaczego zatem w tej sieci nie chce się łączyć skoro Windows XP chodzi bez problemu?
fnmirk
Senior Member
Posty: 8321
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

Pokaż wynik polecenia:

Kod: Zaznacz cały

ifconfig
i:

Kod: Zaznacz cały

cat /etc/network/interfaces
ODPOWIEDZ