ifconfig eth0 ip netmask 255.255.255.0 route add default gw 网关
Linux用ifconfig设置IP、掩码、网关
原文:https://www.cnblogs.com/linuxde/p/8719490.html