首页 > 系统相关 >Ubuntu 23.04网卡配置问题处理

Ubuntu 23.04网卡配置问题处理

时间:2023-08-04 18:55:06浏览次数:42  
标签:ovsdb 23.04 dream netplan openvswitch 网卡 etc Ubuntu root

一、问题描述

Ubuntu 23.04的网卡配置和Ubuntu 22.04的基本是一样的,可以翻看前面发的配置说明。现在主要处理Ubuntu 23.04报的两个问题,Ubuntu 24.04 LTS长期支持版到时候也可参考。

问题1:Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

“00-installer-config.yaml”文件的权限太开放了。Netplan配置不应该被其他人访问。

问题2:Cannot call openvswitch: ovsdb-server.service is not running.

openvswitch的一个服务没法运行,这里是没安装openvswitch相关。

 1 root@dream:/etc/netplan# vim /etc/netplan/00-installer-config.yaml 
 2 root@dream:/etc/netplan# netplan apply
 3  
 4 ** (generate:1347): WARNING **: 06:37:17.466: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.
 5 Cannot call openvswitch: ovsdb-server.service is not running.
 6  
 7 ** (process:1345): WARNING **: 06:37:18.549: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.
 8  
 9 ** (process:1345): WARNING **: 06:37:18.731: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.
10  
11 ** (process:1345): WARNING **: 06:37:18.732: Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.
12 root@dream:/etc/netplan# 

二、问题处理

1、问题1处理

查看文件属性:

1 root@dream:/etc/netplan# ll
2 total 12
3 drwxr-xr-x  2 root root 4096 Aug  4 06:37 ./
4 drwxr-xr-x 99 root root 4096 Aug  4 09:07 ../
5 -rw-r--r--  1 root root  118 Aug  3 09:57 00-installer-config.yaml
6 root@dream:/etc/netplan# 

修改文件属性,成功处理:

1 root@dream:/etc/netplan# chmod 0600 00-installer-config.yaml 
2 root@dream:/etc/netplan# netplan apply
3 Cannot call openvswitch: ovsdb-server.service is not running.
4 root@dream:/etc/netplan# 

 2、问题2处理:

联网在线安装“openvswitch-switch”,启动“ovsdb-server”,成功处理,命令如下:

1 root@dream:/etc/netplan# apt install openvswitch-switch
2 Reading package lists... Done
3 Building dependency tree... Done
4 Reading state information... Done
5 openvswitch-switch is already the newest version (3.1.2-0ubuntu0.23.04.1).
6 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 root@dream:/etc/netplan# systemctl start ovsdb-server
8 root@dream:/etc/netplan# netplan apply
9 root@dream:/etc/netplan# 

若是内网没法正常联网,可到Open vSwitch官网下载文件离线安装。

其他:

 1 root@dream:/etc/netplan# whereis ovsdb-server
 2 ovsdb-server: /usr/sbin/ovsdb-server /usr/share/man/man5/ovsdb-server.5.gz /usr/share/man/man1/ovsdb-server.1.gz /usr/share/man/man7/ovsdb-server.7.gz
 3 root@dream:/etc/netplan# whereis openvswitch
 4 openvswitch: /etc/openvswitch /usr/share/openvswitch
 5 root@dream:/etc/netplan# whereis openvswitch-switch
 6 openvswitch-switch: /usr/lib/openvswitch-switch
 7 root@dream:/etc/netplan# ovsdb-server -V
 8 ovsdb-server (Open vSwitch) 3.1.2
 9 root@dream:/etc/netplan# man ovsdb-server
10 root@dream:/etc/netplan# 

 

标签:ovsdb,23.04,dream,netplan,openvswitch,网卡,etc,Ubuntu,root
From: https://www.cnblogs.com/dayetonghaocai/p/17606765.html

相关文章

  • kvm中新建ubuntu虚拟机
    写在前面:这里宿主机是桥接模式,即通过网桥br0和外部机器进行通信。步骤如下:#下载模板镜像wgethttps://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img#重命名,移动到/opt目录下mv-ifocal-server-cloudimg-amd64.img/opt/ubuntu-20-server.qcow......
  • Ubuntu 22.04网卡配置-区别Ubuntu 16.04
    一、Ubuntu16.04网卡配置1、Ubuntu16.04配置网卡命令:root@dream:/etc/network#vim/etc/network/interfaces2、Ubuntu16.04网卡常规配置:二、Ubuntu22.04网卡配置1、Ubuntu22.04配置网卡命令:Ubuntu16.04是编辑“interfaces”文件,而Ubuntu22.04是编辑“00-installe......
  • Macmini安装Ubuntu
    关闭sip下载并解压refind重启commmand+r进入恢复模式进入终端,找到刚刚解压的文件夹。然后chmod+xrefind-install&&./refind-install安装完refind之后,插入提前制作好的U盘启动神器(制作教程)重启,按住option选择EFI启动(⚠️注意:仅测试非M芯片的Macmini,M芯片的可以看一下As......
  • Ubuntu20.04根目录/home目录扩容(双系统,亲测有效)
    一,下载安装GPartedsudoaptupdate sudoaptinstallgparted        安装完成后输入:sudogparted    如图所示:    1.找到你要扩容的根目录/home目录(会发现名称右边有个钥匙,表示现在无法对其进行操作)    2.扩容要求1:只能将待扩......
  • ubuntu 默认python版本切换
    Ubuntu下完美切换Python版,即设置系统默认的python版本(亲测有效)_ubuntu切换python版本_关彼得的博客-CSDN博客 sudosuupdate-alternatives--listpythonupdate-alternatives:error:noalternativesforpythonupdate-alternatives--install/usr/bin/pythonpytho......
  • ubuntu的docker相关操作指令
    daemon启动docker服务以及停止systemctlstartdockersystemctlstopdockersystemctlstatusdockerdocker的镜像相关操作#查看本地镜像dockerimages#搜索镜像dockersearchredis#下载镜像,不写版本号,默认是latestdockerpullredis:3.2#删除镜像dockerrmi<docker......
  • x86_64 ubuntu22.04环境下编译版本python3.13.0 alpha 0源码——python3.13.0 alpha 0
      python3.13.0alpha0版本源码编译: 环境——x86_64ubuntu22.04系统: 1.源码下载:gitclonehttps://github.com/python/cpython 2.修改apt源地址:编辑文件:sudovim/etc/apt/sources.list添加内容:deb-srchttp://archive.ubuntu.com/ubuntu/jammymain......
  • 网卡
    目录1.网卡1.网卡#添加网络适配器[root@localhost~]#systemctlstopfirewalld.service[root@localhost~]#setenforce0#首先关闭防火墙[root@localhost~]#ipa#查看网卡接口信息[root@localhost~]#cd/etc/sysconfig/network-scripts/#切换目录[root@loca......
  • ubuntu18.04安装nodejs最新版、指定版 12.x 14.x
    ubuntu18.04安装nodejs最新版、指定版12.x14.x 今天准备在ubuntu服务器里面安装nodejs版本,ubuntu18.04仓库nodejs默认是8.x版本。1.通过apt安装nodejs在Ubuntu18.04的默认仓库包含了一个Node.js的版本,截至当前,该仓库的node.js版本是8.10.0。要安......
  • ubuntu相关
    1网卡地址/etc/netplannetwork:ethernets:ens33:dhcp4:noaddresses:[192.168.21.204/24]optional:trueroutes:-to:defaultvia:192.168.21.2nameservers:addresses:[192.168.21.2,8.8.......