1、首先登录树莓派:
sudo nano /etc/dhcpd.conf
2、在dhcpcd.conf后添加一下:
interface eth0 static ip_address = 210.26.96.127 static routers = 210.26.96.1 static domain_name_servers = 202.201.48.1 202.201.48.2
3、保存后重启树莓派
sudo reboot
时间: 2025-01-05 09:06:52
1、首先登录树莓派:
sudo nano /etc/dhcpd.conf
2、在dhcpcd.conf后添加一下:
interface eth0 static ip_address = 210.26.96.127 static routers = 210.26.96.1 static domain_name_servers = 202.201.48.1 202.201.48.2
3、保存后重启树莓派
sudo reboot