greenZ

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

修改主机名

vi /etc/hosts

/etc/rc.d/boot.localnet restart

/etc/init.d/network restart

/etc/init.d/ncsd restart

 

vi /etc/HOSTNAME

 

 

 

设置网卡地址

ifconfig

ifconfig -a

ifconfig eth2 24.24.10.11 netmask 255.255.255.0

 

查看路由和网关

route

 

posted on 2019-03-04 17:29  绿Z  阅读(791)  评论(0编辑  收藏  举报