Linux设置IP

进入 vi /etc/sysconfig/network-scripts/ifcfg-eth0

 root # ifconfig eth0 192.168.22.232
root # route add default gw 192.168.22.1
打root # echo nameserver 192.168.22.1 > /etc/resolv.conf

 

posted @ 2014-02-11 14:51  aspirant  阅读(180)  评论(0编辑  收藏  举报