//设置ip,子网掩码广播地址 ifconfig eth0 192.168.4.39 netmask 255.255.255.0 broadcast 192.168.4.255 //设置DNS vi /etc/resolv.conf