打开/etc/dhcpcd.conf 文件进行配置
cat /etc/dhcpcd.conf
添加如下代码即可
interface eth0
static ip_address=192.168.0.100/24
static routers=192.168.0.1
static domain_name_servers=119.29.29.29
打开/etc/dhcpcd.conf 文件进行配置
cat /etc/dhcpcd.conf
添加如下代码即可
interface eth0
static ip_address=192.168.0.100/24
static routers=192.168.0.1
static domain_name_servers=119.29.29.29
本文标题:二、树莓派配置静态IP地址
本文链接:https://www.haomeiwen.com/subject/uergrqtx.html
网友评论