linux9.2测试-网络配置

news/2025/2/12 3:52:58/

周末安装了OracleLinux 9.2的系统,配置网卡时发现/etc/sysconfig/network-scripts/目录下也不存在网卡信息了,只有一个说明文件,readme-ifcfg-rh.txt

网卡配置信息都在/etc/NetworkManager/system-connections/目录下了

[root@db network-scripts]#  more readme-ifcfg-rh.txt
NetworkManager stores new network profiles in keyfile format in the
/etc/NetworkManager/system-connections/ directory.

Previously, NetworkManager stored network profiles in ifcfg format
in this directory (/etc/sysconfig/network-scripts/). However, the ifcfg
format is deprecated. By default, NetworkManager no longer creates
new profiles in this format.

Connection profiles in keyfile format have many benefits. For example,
this format is INI file-based and can easily be parsed and generated.

Each section in NetworkManager keyfiles corresponds to a NetworkManager
setting name as described in the nm-settings(5) and nm-settings-keyfile(5)
man pages. Each key-value-pair in a section is one of the properties
listed in the settings specification of the man page.

If you still use network profiles in ifcfg format, consider migrating
them to keyfile format. To migrate all profiles at once, enter:

# nmcli connection migrate

This command migrates all profiles from ifcfg format to keyfile
format and stores them in /etc/NetworkManager/system-connections/.

Alternatively, to migrate only a specific profile, enter:

# nmcli connection migrate <profile_name|UUID|D-Bus_path>

For further details, see:
* nm-settings-keyfile(5)
* nmcli(1)
[root@db network-scripts]#


http://www.ppmy.cn/news/1212676.html

相关文章

Git的Hooks机制

参考文章&#xff1a;详解如何在项目中使用git Hooks&#xff08;husky、yorkie&#xff09; git hooks钩子 git hooks是一些自定义的脚本&#xff0c;用于控制git工作的流程&#xff0c;分为客户端钩子和服务端钩子。  ~/work/step-time/ [master*] ll .git/hooks total…

【进度条tqdm】python项目中告别丑陋的print伪进度条

在Python开发中&#xff0c;进度条是提高用户体验和可视化操作的重要组成部分。本文将为你介绍热门的Python进度条库tqdm&#xff0c;详细解释常见的使用场景&方法&#xff0c;同时提供代码示例。 1. tqdm库 tqdm是一个简单易用且功能强大的进度条库。首先&#xff0c;你…

【Java】Java8 Function 和 Consumer 接口的使用场景

文章目录 前言1. Function 示例2. Function 介绍3. Consumer 示例4. Consumer 介绍5. Function 和 Consumer 接口的使用场景后记 前言 在 《精通Java8》一书中有讲过 Java8的函数式接口可以简化设计模式的实施&#xff0c;这里记录一下Function 和 Consumer 的使用场景。 1. …

Kotlin基础——接口和类

接口 使用 : 表示继承关系&#xff0c;只能继承一个类&#xff0c;但可以实现多个接口override修饰符表示重写可以有默认方法&#xff0c;若父类的默认方法冲突&#xff0c;则需要子类重写&#xff0c;使用super<XXX>.xxx()调用某一父类方法 interface Focusable {fun …

深入理解Java中的OutOfMemoryError(OOM)异常

导言&#xff1a; 在Java开发中&#xff0c;我们经常会遇到程序抛出OutOfMemoryError异常的情况&#xff0c;这意味着程序在运行时无法继续分配所需的内存。这篇博客将深入探讨Java中的OOM异常&#xff0c;包括异常的种类、常见的引起OOM的原因以及如何诊断和处理这些问题。 1…

css sprite 的优缺点,使用方法和示例

CSS Sprite是一种网页图片应用处理方式。 CSS Sprite的原理是将一个网页或者一个模块所用到的零碎的icon整合拼接到一张大图里&#xff0c;再把这张大图作为背景图放入到网页中&#xff0c;当访问该页面时&#xff0c;加载的图片就不会像以前那样一幅一幅地慢慢显示出来了。 …

Angular 使用教程——基本语法和双向数据绑定

Angular 是一个应用设计框架与开发平台&#xff0c;旨在创建高效而精致的单页面应用 Angular 是一个基于 TypeScript 构建的开发平台。它包括&#xff1a;一个基于组件的框架&#xff0c;用于构建可伸缩的 Web 应用&#xff0c;一组完美集成的库&#xff0c;涵盖各种功能&…

LeetCode110. Balanced Binary Tree

文章目录 一、题目二、题解 一、题目 Given a binary tree, determine if it is height-balanced . Example 1: Input: root [3,9,20,null,null,15,7] Output: true Example 2: Input: root [1,2,2,3,3,null,null,4,4] Output: false Example 3: Input: root [] Output…