dxb305 `auto eth0
iface eth0 inet dhcp
hostname=ubuntu
auto eth0
iface eth0 inet static
address 192.168.1.10
network 192.168.1.1
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 222.74.126.230
pre-up ifconfig eth0 hw ether 00:11:22:33:44:66
~ `
这样设置IP还是不变,不知道为什么