CentOS8/9 初始化一些新变化记录

# 查看网卡信息

sudo nmcli 

  

# 网卡配置信息重新加载并启用

sudo nmcli c reload

# 方法二

ifdown和ifup

 

 

CentOS9 Steam

配置文件路径

/etc/NetworkManager/system-connections/网卡名

复制代码
[connection]
id=enp0s3
uuid=0562b3c0-0b5f-37cc-b4f7-63390c5f236b
type=ethernet
autoconnect-priority=-999
interface-name=enp0s3
timestamp=1652055112

[ethernet]

[ipv4]
method=manual                                          # 静态设置
address1=192.168.24.199/22,192.168.25.3  # IP/掩码/网关
dns=114.114.114.114;8.8.8.8;                     # DNS设置

[ipv6]
addr-gen-mode=eui64
method=auto
复制代码

nmcli c reload

nmcli c up <网卡名>

 

# 安装CentOS9 EPEL

dnf config-manager --set-enabled crb
dnf install epel-release epel-next-release

 

posted @   Cong0ks  阅读(504)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
历史上的今天:
2019-05-08 新概念 Lesson 8 Your passports, please. 复数 + s + es
点击右上角即可分享
微信分享提示