ifconfig eth0 192.168.1.10 netmask 255.255.255.0 //配置IP地址 ifconfig eth0 up | down //激活,关闭设备eth0 route add default gw 192.168.1.1 //配置默认网关