1、设置IP地址、网关 nano /etc/network/interfaces /etc/network/interfacesbak #备份原有配置文件 nano /etc/network/interfaces #编辑网网卡配置文件 auto lo auto eth0 #开机自动连接网络 iface lo inet loopback allow-hotplug eth0 iface eth0 inet static #static表示使用固定ip,dhcp表述使用动态ip address 192.…