We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在安装centos时候输入ifconfig的时候发现没有出现eth0,但是有ens33
centos
ifconfig
eth0
ens33
然后换进入磁盘路径 cd /etc/sysconfig/network-scripts/,发现没有eth0的配置文件
cd /etc/sysconfig/network-scripts/
接下来我们将ifcfg-ens33文件重命名ifcfg-eth0为mv ifcfg-ens33 ifcfg-eth0
ifcfg-ens33
ifcfg-eth0
mv ifcfg-ens33 ifcfg-eth0
然后编辑ifcfg-eth0文件 vi ifcfg-eth0
vi ifcfg-eth0
将name和device修改为eth0
name
device
编辑加载启动项的配置 vi /etc/default/grub
vi /etc/default/grub
添加参数net.ifnames=0 biosdevname=0
net.ifnames=0 biosdevname=0
运行命令grub2-mkconfig -o /boot/grub2/grub.cfg 更新环境参数
grub2-mkconfig -o /boot/grub2/grub.cfg
然后重启就好了
The text was updated successfully, but these errors were encountered:
No branches or pull requests
centos7中没有eth0解决方案
在安装
centos
时候输入ifconfig
的时候发现没有出现eth0
,但是有ens33
然后换进入磁盘路径
cd /etc/sysconfig/network-scripts/
,发现没有eth0
的配置文件接下来我们将
ifcfg-ens33
文件重命名ifcfg-eth0
为mv ifcfg-ens33 ifcfg-eth0
然后编辑
ifcfg-eth0
文件vi ifcfg-eth0
将
name
和device
修改为eth0
编辑加载启动项的配置
vi /etc/default/grub
添加参数
net.ifnames=0 biosdevname=0
运行命令
grub2-mkconfig -o /boot/grub2/grub.cfg
更新环境参数然后重启就好了
The text was updated successfully, but these errors were encountered: