Linux configuration address by ifconfig

ifconfig eth0 192.168.1.1/24 # set ip and subnet mask

route add gw default 192.168.1.254 # set ip gateway

Guess you like

Origin www.cnblogs.com/zhuomou/p/12143710.html