首先,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.
网友评论