我想通过笔记本电脑上的网桥将Raspberry PI连接到Internet。这是Windows 8.1机器。我已经桥接了以太网和无线接口。Raspberry PI具有静态IP地址。我正在按照下面的教程所述进行尝试。
路由器 192.168.1.1
视窗 192.168.1.15
树莓派 192.168.1.100
我可以从PC ping路由器和Raspberry,也可以从Raspberry ping PC。问题是当我尝试从Raspberry Ping Router或google.pl时:
pi@raspberrypi ~ $ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
^C
--- 192.168.1.1 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 7006ms
PC防火墙关闭。这里是ifconfig
:
pi@raspberrypi ~ $ ifconfig eth0
eth0 Link encap:Ethernet HWaddr b8:27:eb:9a:ea:1d
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1796 errors:0 dropped:0 overruns:0 frame:0
TX packets:426 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:133358 (130.2 KiB) TX bytes:54438 (53.1 KiB)
路由表:
pi@raspberrypi ~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ARP表:
pi@raspberrypi ~ $ arp -n
Address HWtype HWaddress Flags Mask Iface
192.168.1.1 ether 88:ae:1d:7e:07:2f C eth0
192.168.1.15 ether 88:ae:1d:7e:07:2f C eth0
和接口
pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
我尝试使用接口,默认网关进行操作,但似乎没有任何效果。
ipconfig -all
从窗户在这里
Windows的ipconfig / all,好吗?
—
2014年
卢克,谢谢您的回答,ipconfig -all在这里:链接
—
johnatann 2014年