打开文件:vim /etc/dhcpcd.conf
修改:
interface eth0
static ip_address=xxxx;静态ip
static routers=xxxx;路由
static domain_name_servers=xxx;DNS
其中interface表示网线接口,eth0表示第一块网卡
树莓派配置静态ip地址
最新推荐文章于 2024-05-20 18:17:51 发布
打开文件:vim /etc/dhcpcd.conf
修改:
interface eth0
static ip_address=xxxx;静态ip
static routers=xxxx;路由
static domain_name_servers=xxx;DNS
其中interface表示网线接口,eth0表示第一块网卡