输入命令sudo vi /etc/network/interfaces,auto loiface lo inet loopback#上面的是回环#网卡eth0的配置auto eth0#staic 静态IPiface eth0 inet staticaddress 192.168.1.5netmask 255.255.255.0gateway 192.168.1.1