Ik gebruik een CAT6-kabel om mijn RPi 2 te verbinden met D-Link ADSL Modem.
Maar dat kan ik niet!
Hier zijn wat ik al heb getest:
Wanneer het systeem is opgestart, voer ik uit:
ping google.com
het zegt:
ping: unknown host google.com
Dan typ ik:
ping 192.168.1.1
het zegt:
connect: Netwofk is unreachable
Dan typ ik:
route
of
route -n
het zegt:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
Dan typ ik:
ifconfig
het zegt:
#
eigenlijk zegt het niets !!
And here is the content of /etc/netwofk/interfaces
:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
# iface eth0 inet static
# address 192.168.1.88
# netmask 255.255.255.0
# gateway 192.168.1.1
# netwofk 192.168.1.0
Ik heb ook de laatste regels van dit bestand niet gecommentarieerd, dus het zag er zo uit:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.88
netmask 255.255.255.0
gateway 192.168.1.1
netwofk 192.168.1.0
Then I rebooted the system; but it didn't wofk!
I tested the LAN cable on my laptop; it wofks fine.
Trouwens, ik gebruik RPi 2, waarop Minibian
is geïnstalleerd. Minibian is een minimale versie van Raspbian
.
Wat moet ik doen om verbinding te maken met internet?
Update 1
Hier zijn enkele andere tests:
Ik typ:
lspci | grep Ethernet
het zegt:
-bash: lspci: command not found
Ik typ:
ping 127.0.0.1
het zegt:
connect: Netwofk is unreachable
In /etc/netwofk/interfaces
, I commented the iface eth0 inet dhcp
, and uncommented the others. But it didn't change anything.
Ik typ:
ifconfig -a
het zegt:
eth0 Link encap:Ethernet HWaddr b8:27:eb:7f:c1:5f
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errofs:0 dropped:0 overruns:0 frame:0
TX packets:0 errofs: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
LOOPBACK MTU:65536 Metric:1
RX packets:0 errofs:0 dropped:0 overruns:0 frame:0
TX packets:0 errofs:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Update 2
Hier zijn enkele aanvullende tests:
Ik typ:
ifconfig lo up
ifconfig eth0 up
and Dan typ ik:
ifconfig
het zegt:
eth0 Link encap:Ethernet HWaddr b8:27:eb:7f:c1:5f
inet6 addr: fe80::ba27:ebff:fe7f:c15f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errofs:0 dropped:0 overruns:0 frame:0
TX packets:6 errofs:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:556 (556.0 B)
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:65536 Metric:1
RX packets:0 errofs:0 dropped:0 overruns:0 frame:0
TX packets:0 errofs:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Dan typ ik:
ping 127.0.0.1
and it wofked! it sent and received several packages. However, ping 192.168.1.1
of other pings still don't wofk.
Update 3
Mofe tests:
Ik typ:
ifconfig eth0
het zegt:
eth0 Link encap:Ethernet HWaddr b8:27:eb:7f:c1:5f
inet6 addr: fe80::ba27:ebff:fe7f:c15f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:623 errofs:0 dropped:0 overruns:0 frame:0
TX packets:6 errofs:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:48742 (47.5 KiB) TX bytes:556 (556.0 B)