美文网首页
LINUX 最小版本设置IP,安装ifconfig问题解决

LINUX 最小版本设置IP,安装ifconfig问题解决

作者: BigXue | 来源:发表于2018-07-30 10:43 被阅读0次

首先,LINUX安装是http://archive.kernel.org/centos-vault/中的最小镜像

uname -a

cat /proc/version

以上是LINUX内核信息和操作系统版本信息,各版本基本一致

首先我们先查看是否有网卡:

ip addr

第二步,找到网卡配置文件:

cd etc/sysconfig/network-scripts/

ls

vi ifcfg-ens33(文件名称大同小异)

因为没设置网段IP所以桥接自动获取,不去设置固定ip了。修改激活网卡

重启网卡:

service network restart

执行命令

yum provides ifconfig

yum list | grep net-tools

查看哪个包提供了ifconfig命令,然后安装这个包

执行安装并验证

yum install net-tools.x86_64

ifconfig

END.

相关文章

网友评论

      本文标题:LINUX 最小版本设置IP,安装ifconfig问题解决

      本文链接:https://www.haomeiwen.com/subject/dlvxvftx.html