1.ubuntu在啟動(dòng)網(wǎng)卡的時(shí)候出現(xiàn)reconfiguring network interfaces.如果ping不通外網(wǎng)那么說明配置的網(wǎng)卡錯(cuò)誤了,重新檢查下網(wǎng)卡配置.
2.dns配置sudo vi /etc/resolv.conf
nameserver 114.114.114.114
nameserver 8.8.8.8
3.ip配置sudo vi /etc/network/Interfaces
address 你的IP
gateway 192.168.0.1
netmask 255.255.255.0
3.ubuntu的基本網(wǎng)卡配置就如所上.centos略有不同,要求大寫,有等號(hào),ip配置項(xiàng)為IPADDR.