命令行运行:sudo gedit /etc/network/interfaces
>>>>
>>>>
#此处为设置静态IP
auto eth0 #设置自动启动eth0接口
iface eth0 inet static #配置静态IPaddress 192.168.11.88 #IP地址
netmask 255.255.255.0 #子网掩码
gateway 192.168.11.1 #默认网关
#此处为设置DHCP自动获取IP
auto eth0 #设置自动启动eth0接口
iface eth0 inet dhcp #自动获取IP
>>>>保存