修改主机名
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
本文介绍如何在Linux系统中修改主机名及配置网卡地址的方法,包括使用vi编辑器修改配置文件、重启相关服务及设置指定IP地址的具体步骤。
修改主机名
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
转载于:https://www.cnblogs.com/greenZ/p/10471971.html
2040
9671
1111

被折叠的 条评论
为什么被折叠?