指定 ubuntu server ip,一共就两步. ■编辑配置文件sudo vi /etc/network/interfaces ■重启网络配置sudo /etc/init.d/networking restart /etc/network/interfaces 配置示例,注意需要将DNS同时设置在此处 # This file describes the network interfaces available on your system# and how to activate them.