需要設(shè)置修改的文件:vi /etc/dhcpcd.conf
interface wlan0
static ip-adress=192.168.1.119/24
static routers=192.168.1.1
static domain_name_servers=114.114.114.114
static domain_search=114.114.115.115
noipv6
interface eth0
static ip_adress=192.168.1.120/24
static routers=192.168.1.1
static domain_name_servers=114.114.114.114
static domain_search=114.114.115.115
noipv6