1、使用ssh登陆,使用以下命令设置静态ip。

sudo nano /etc/dhcpcd.conf

 


2、在dhcpcd.conf后添加以下内容:

interface eth0
static ip_address=192.168.1.122/24
static routers=192.168.1.1
static domain_name_servers=8.8.8.8 114.114.114.114

 

 

3、保存后重启树莓派。

sudo reboot

 

树莓派设置静态IP地址

 

相关文章:

  • 2021-11-20
  • 2021-10-18
  • 2021-07-12
  • 2021-11-20
  • 2022-12-23
  • 2021-08-02
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2021-09-02
  • 2021-05-21
  • 2021-06-26
相关资源
相似解决方案