一、Rocky linux9.4
1、系统版本查看
[root@localhost ~]# cat /proc/version
Linux version 5.14.0-427.13.1.el9_4.x86_64 (mockbuild@iad1-prod-build001.bld.equ.rockylinux.org) (gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3), GNU ld version 2.35.2-43.el9) #1 SMP PREEMPT_DYNAMIC Wed May 1 19:11:28 UTC 2024
[root@localhost ~]# cat /etc/redhat-release
Rocky Linux release 9.4 (Blue Onyx)
2、网卡配置
[root@localhost ~]# vi /etc/NetworkManager/system-connections/ens33.nmconnection
[root@localhost ~]# vi /etc/NetworkManager/system-connections/ens34.nmconnection
[root@localhost ~]# vi /etc/NetworkManager/system-connections/ens35.nmconnection
重启网卡
[root@localhost ~]# nmcli connection reload ens33.nmconnection
[root@localhost ~]# nmcli connection up ens33
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)
[root@localhost ~]# nmcli connection reload ens34.nmconnection
[root@localhost ~]# nmcli connection up ens34
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)
[root@localhost ~]# nmcli connection reload ens35.nmconnection
[root@localhost ~]# nmcli connection up ens35
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/7)
二、debian12.6
1、系统版本查看
root@debian:~# cat /proc/version
Linux version 6.1.0-22-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21)
2、网卡配置
root@debian:~# nano /etc/network/interfaces
重启网卡
root@debian:~# /etc/init.d/networking restart
Restarting networking (via systemctl): networking.service.
三、centos7.3
1、系统版本查看
[root@localhost ~]# cat /proc/version
Linux version 3.10.0-514.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Tue Nov 22 16:42:41 UTC 2016
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
2、网卡配置
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens33
重启网卡
[root@localhost ~]# systemctl restart network
本文链接:https://blog.runxinyun.com/post/119.html 转载需授权!
留言0