Linux下用ifconfig命令设置IP、掩码、网关 设置IP和掩码ifconfig eth0 192.168.5.40 netmask 255.255.255.0设置网关route add default gw 192.168.5.1