configuring static ip through command line in Linux
ifconfig is the command you want:
Code:
ifconfig device my.static.ip.addr netmask my.net.work.mask up
for example:
Code:
ifconfig eth0 10.1.7.13 netmask 255.255.255.0 up
Then if you want to see the current network configuration:
Code:
ifconfig

浙公网安备 33010602011771号