1, 移除 NetworkManager
sudo apt-get remove network-manager
Ubuntu NetworkManager會寫入 /etc/NetworkManager/system-connections/ 與 resolv.conf 目錄中
2. 修改
/etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 68.100.16.25 68.100.16.30 68.105.28.12
dns-search cox.net
3. 修改 resolv.conf
# Generated by NetworkManager
domain cox.net
search cox.net
nameserver 68.100.16.25
nameserver 68.100.16.30
nameserver 68.105.28.12
4. 重新啟動 network
sudo /etc/init.d/networking restart
沒有留言:
張貼留言