Step 1写入静态ip参数
vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.0
gateway 192.168.2.1
Step 2写入DNS地址参数
vi /etc/resolv.conf
nameserver 127.0.0.53
nameserver 8.8.8.8
Step 1写入静态ip参数
vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.0
gateway 192.168.2.1
Step 2写入DNS地址参数
vi /etc/resolv.conf
nameserver 127.0.0.53
nameserver 8.8.8.8