Skip to content
New issue

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

centos8系统默认网卡是ens160,如果要修改eth比较麻烦,虚拟机应该只需要改uuid就行了吧 #34

Open
henry-heyou opened this issue Oct 28, 2023 · 1 comment

Comments

@henry-heyou
Copy link

sed -i "s/UUID.*/UUID=uuidgen/" /etc/sysconfig/network-scripts/ifcfg-ens160
生成uuid,然后替换掉原来的就行了,我查看了要改成eth0,还要重启服务器,

当我们修改 /etc/sysconfig/network-scripts/目录下的 ifcfg-ens33文件名为 ifcfg-eth0
同时把文件中的 NAME属性 与DEVICE属性都修改成 eth0
重启网卡,发现并没有修改成功!!!
此时,需要去 /etc/defult 目录下,修改grub文件。
在GRUB_CMDLINE_LINUX原有的参数后面加上"net.ifnames=0 biosdevname=0"
保存退出后,执行命令:"grub2-mkconfig -o /boot/grub2/grub.cfg"
执行完毕后,重启系统即可修改成功。

@kmswilliam
Copy link

大哥我想问一下, 你照着这个教程安装能成功吗, 哪些流程中除了 K8S 命令相关的我没看明白别的都懂, 为啥到装 node 节点里面的 kubelet 哪里执行 kubectl get nodes 就会报 No resources found 来了回回折腾了七八次了, 都是这一个问题, 我该做点什么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants