小编Ajo*_*uve的帖子

将带有 ubuntu 服务器的 raspberry pi 4 连接到 wifi

我有一个树莓派 4。

由于我没有可用的屏幕和键盘,我通过以太网电缆连接它。

我希望 Raspberry Pi 连接到 Wi-Fi 而不是通过以太网。

我尝试更新/etc/network/interfaces为:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
wpa-essid MYESSID12345
wpa-psk MYPASSWORD$1234567
Run Code Online (Sandbox Code Playgroud)

然后我运行:

sudo dhclient wlan0
Run Code Online (Sandbox Code Playgroud)

但它似乎不起作用。

ifconfig 返回:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.41  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::dea6:32ff:fe62:c4fc  prefixlen 64  scopeid 0x20<link>
        ether dc:a6:32:62:c4:fc  txqueuelen 1000  (Ethernet)
        RX packets 118  bytes 13529 (13.5 KB)
        RX errors 0  dropped 52  overruns 0  frame 0
        TX packets …
Run Code Online (Sandbox Code Playgroud)

server wireless networking raspberrypi

4
推荐指数
1
解决办法
9474
查看次数

标签 统计

networking ×1

raspberrypi ×1

server ×1

wireless ×1