命令行運行: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
>>>>保存