当前位置:网站首页>The modified network card name of rocky foundation is eth0
The modified network card name of rocky foundation is eth0
2022-07-28 15:05:00 【51CTO】
Change the network card name to eth0
sed -i.bak -r's/^(GRUB_CMDLINE_LINUX=.*)"$/\1 net.ifnames=0 biosdevname=0"/' /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
nmcli connection modify ens160 con-name eth0
Change the network card name to magedu0( If two network cards , It will automatically rename the two network cards , Such as magedu0 and magedu1)
sed -i.bak -r 's/^(GRUB_CMDLINE_LINUX=.*)"$/\1 net.ifnames.prefix=magedu0"/'
grub2-mkconfig -o /boot/grub2/gurb.cfg
reboot
nmcli connection modify ens192 con-name magedu0
cd /etc/sysconfig/network-scripts/
mv ifcfg-ens192 ifcfg-magedu0
vim ifcfg-magedu0
modify DEVICE=magedu0
reboot
边栏推荐
- Gradle -- package multiple variants with gradle
- Third class exercise
- JS常用的3种弹出框
- 6、 C language circular statement
- QT qlineedit, qtextedit, qplaintextedit differences
- Compilation language and interpretation language
- Why can the anonymous functions of JQ access the methods inside
- QT qbuttongroup realizes single selection and multiple selection
- Error reason for converting string to long type: to convert to long type, it must be int, double, float type [easy to understand]
- [leetcode] sticker spelling (dynamic planning)
猜你喜欢

VTK notes - picker picker summary

Solution to the problem of high collapse caused by float (including all methods)

7月29日 ApacheCon|Apache Pulsar 在 vivo 的探索与实践 即将开播

21、 TF coordinate transformation (I): coordinate MSG message

Creating, deleting and viewing Anaconda virtual environment

Hard disk partition method

Store and guarantee rancher data based on Minio objects

Redis configuration file explanation

How long can we "eat" the dividends of domestic databases?

Introduction to MITK
随机推荐
UTF-8、UTF-16 和 UTF-32 字符编码之间的区别?[图文详解]
VTK vtkcontourwidget extracts regions of interest
MySQL authorization method
MITK create module
How long can we "eat" the dividends of domestic databases?
Swiftui 4.0's new navigation system
VTK notes - picker picker summary
Swiftui layout - size (bottom)
多商户商城系统功能拆解17讲-平台端订单列表
[thread safety] what risks may multithreading bring?
QT environment cannot run error set
Store and guarantee rancher data based on Minio objects
QT serialization qdatastream
Solution to the problem of high collapse caused by float (including all methods)
Analysis vulnerability introduction
ssh服务
CCSP 云安全设计原则都有哪些
Switch the cloud synchronization status of core data in real time
Swiftui layout - alignment
Simple data analysis using Weka and excel