Я не могу получить доступ к Интернету через мой малиновый pi при подключении через ssh [закрыто]

Доказательство ошибки

Когда я пытаюсь выполнить ping 8.8.8.8 через SSH, я получаю это:

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2007ms

То, что я пробовал

Мой /etc/resolv.conf выглядит так:

nameserver 8.8.8.8
nameserver 8.8.4.4

Мой /etc/resolv.conf выглядит так:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

address 31.51.249.21
netmask 255.255.255.0
gateway 31.51.249.18
dns-nameservers 8.8.8.8 8.8.4.4

Моя сеть

Когда я набираю команду ifconfig -a:

eth0 Link encap:Ethernet HWaddr b8:15:qd:32:a5:6c
inet addr:31.51.249.21 Bcast:31.51.249.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:330247 errors:0 dropped:46340 overruns:0 frame:0
TX packets:63355 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47649638 (45.4 MiB) TX bytes:14773496 (14.0 MiB)

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:1309 errors:0 dropped:0 overruns:0 frame:0
TX packets:1309 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:146798 (143.3 KiB) TX bytes:146798 (143.3 KiB)

Когда я набираю команду ifconfig -a :

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         31.51.249.18    0.0.0.0         UG    0      0        0 eth0
31.51.249.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

Пожалуйста, помогите мне, что может быть причиной этого. Это мешает мне что-либо установить на мою малину! Я был бы так благодарен за любую помощь в том, почему это может произойти!

1
задан 10 January 2015 в 19:12

0 ответов

Другие вопросы по тегам:

Похожие вопросы: