在/etc/network/interfaces中设置gedit /etc/network/interfaces输入iface eth0 inet staticaddress 192.168.1.3netmask 255.255.255.0gateway 192.168.1.1auto eth0