1.使用dd拷贝系统,启动后找不到eth0
使用lshw -class network查看,发现网卡的逻辑名称是eth1
再去查看/etc/udev/rules.d/70-persistent-net.rules
发现eth0绑定的是上一台服务器的地址
需要将其修改为当前网卡的mac地址
2.配置ubuntu的DNS,静态地址
格式:
auto eth0
iface eth0 inet static
address 10.112.18.106
network 10.112.18.0
netmask 255.255.255.0
broadcast 10.112.18.255
gateway 10.112.18.254
dns-nameservers 10.112.18.1
dns-search foo
不能修改/etc/resolv.conf
重启后失效
http://blog.csdn.net/csfreebird/article/details/8593791
其中这样说:
上面我用的是静态IP地址,很多时候需要使用DHCP动态分配IP, 这个时候dns-nameservers仍然能够使用,不过优先级比DHCP提供的dns要低。可以改变这个优先级,通过修改/etc/resolvconf/interface-order配置文件。
这个我没有验证。