1、登录raspberry pi;
2、编辑/etc/dhcpcd.conf
添加以下文件
#设置无线静态IP
interface wlan0
#IP地址
static ip_address=192.168.1.119/24
#网关
static routers=192.168.1.254
#DNS
static domain_name_servers=192.168.1.254
#设置eht0 IP
interface eth0
#IP地址
static ip_address=192.168.1.120/24
#网关
static routers=192.168.1.254
#DNS
static domain_name_servers=192.168.1.254
3、重启
本文详细介绍如何在Raspberry Pi上为无线网络接口wlan0及以太网接口eth0设置静态IP地址,包括指定IP地址、网关和DNS服务器,通过编辑dhcpcd.conf文件实现,并提供具体配置示例。
3860

被折叠的 条评论
为什么被折叠?



