• 虚拟机--无法连接网络


    情况:
    运行命令 【ifconfig】没有看到【ens33】网络
    命令【ifconfig -a】 可以看到【ens33】
    在这里插入图片描述
    其他

    关闭防火墙
    systemctl stop firewalld
    查看状态
    systemctl status firewalld
    
    • 1
    • 2
    • 3
    • 4

    运行命令

    重新载入 网卡配置文件
    nmcli c reload
    
    • 1
    • 2

    报错

    [root@localhost ~]# nmcli c reload
    错误:重新加载连接失败:NetworkManaer 未运行。
    
    • 1
    • 2

    一般来说重启网卡的命令如下,即可处理问题

    [root@localhost ~]# nmcli c reload
    [root@localhost ~]# nmcli c up ens33
    Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/9)
    
    • 1
    • 2
    • 3

    好!结果报错。
    处理方法:

    [root@localhost ~]# systemctl start NetworkManager
    [root@localhost ~]# nmcli networking on
    [root@localhost ~]# nmcli connection reload 
    
    • 1
    • 2
    • 3

    三条命令,运行即可。

    说明:
    启动NetworkManager服务 :systemctl start NetworkManager
    开启网络 : nmcli networking on
    重载 :nmcli connection reload
    
    • 1
    • 2
    • 3
    • 4

    参考地址:

    https://blog.csdn.net/u013007181/article/details/120918174
    
    • 1

    命令【nmtui】既可以打开网络设置界面

    [root@localhost ~]# nmtui
    
    • 1

    在这里插入图片描述

    其他知识点:

    在这里插入图片描述

  • 相关阅读:
    Vue双向绑定原理
    数组知识点以及leetcode刷题
    最重要的技术深入学习
    【.net core】yisha框架单页面双列表联动效果示例
    GJB 5000B二级-QA质量保证
    go学习笔记
    手绘板的制作——手绘(1)
    什么是热阻?
    maven的私服
    Socks5代理:数字化时代的技术支柱
  • 原文地址:https://blog.csdn.net/m0_37039305/article/details/126285580