版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_24890953/article/details/70139888
树莓派下进入
1、sudo nano /etc/dhcpcd.conf
2、
interface eth0
static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
interface wlan0
static ip_address=192.168.0.200/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
eth0 有线 wlan0 无线
interface 填入你需要设置网路接口
ip_address 可以设置你的IP地址 /24 是指子网掩码255.255.255.0
routers 设置路由
domain_name_servers 是指服务器地址(一般和路由器地址一致)