以下是我在两台设备上设置网络配置的方法
对于 Linux 电脑:
wlan0: WiFi Link set to DHCP
eth0: Static IP: 192.168.1.254
Netmask: 255.255.255.0
Default Gateway IP and Primary DNS are set blank
对于我的范围,直接连接到eth0
:
Instrument IP Address: 192.168.1.1
Gateway IP Address: 192.168.1.254
Subnet Mask: 255.255.255.0
Http Port:80
Domain Name and DNS IP Address are both left blank
我尝试从我的 Ubuntu 机器 ping 仪器 IP 地址,并在示波器上测试连接,但都未能显示连接。我对这个东西还很陌生,所以任何见解都会有所帮助。
更新:
由于某种原因,setup
我从终端使用的工具实际上并没有保存我的配置,所以我只是使用从终端手动更改它sudo ifconfig eth0 192.168.1.254
。现在我可以 ping 192.168.1.254 并发送/接收数据包,但是当我尝试 ping 仪器 IP 地址时,我得到:
From 192.168.1.254 icmp_seq=2 Destination Host Unreachable"
并且不确定如何继续。
以下是输出ifconfig
:
eth0 Link encap:Ethernet HWaddr 00:24:E8:F2:46:6F
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
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:22 Memory:f6ae0000-f6b00000
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:941 errors:0 dropped:0 overruns:0 frame:0
TX packets:941 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:72328 (70.6 KiB) TX bytes:72328 (70.6 KiB)
wlan0 Link encap:Ethernet HWaddr 00:21:6A:6E:45:E8
inet addr:131.225.175.229 Bcast:131.225.175.255 Mask:255.255.248.0
inet6 addr: fe80::221:6aff:fe6e:45e8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:234066 errors:0 dropped:0 overruns:0 frame:0
TX packets:65309 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:93901249 (89.5 MiB) TX bytes:9874935 (9.4 MiB)