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
posted @ 2013-10-10 19:52  alxe_yu  阅读(135)  评论(0)    收藏  举报