我有一个新安装的 Ubuntu 12.04.2 服务器安装后我将/etc/network/interfaces从dhcp更改为static。
重新启动“网络”后一切正常。但是每天早上 IP 都会改回旧的 dhcp 地址。
有任何想法吗?
/etc/网络/接口
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.210
netmask 255.255.255.0
gateway 192.168.0.254
dns-nameservers 192.168.0.254
/etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.0.254
search localdomain
洛诺