二、树莓派配置静态IP地址
2019-01-09 本文已影响0人
竹门日叔
打开/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