在terminal里输入如下语句即可:
ifconfig eth0 192.168.1.x 255.255.255.0
refurl:http://zhidao.baidu.com/question/315854263.html