前言

每次重启时都会发现网卡处于关闭状态

[root@redhat ~]# ifconfig 
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 00:0c:29:6b:09:9f  txqueuelen 1000  (Ethernet)
        RX packets 2228918  bytes 3235499764 (3.0 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 169379  bytes 17890463 (17.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

都要手动启动

ifconfig ethx up 

或者

ifup ethx

[root@redhat ~]# ifup ens33
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/13)
[root@redhat ~]# systemctl enable ens33
Failed to execute operation: No such file or directory

修改配置文件

ONBOOT状态 no 改为 yes

[root@redhat ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33

08406-gfbt2gk6nxb.png