一、开源系统 Rocky Linux 下载安装
1、安装教程
Rocky Linux 下载安装
二、远程工具 MobaXterm下载安装
1、安装教程
MobaXterm 下载安装
三、Rocky Linux 网卡配置
1、使用ip addr确认网卡名称(此处可得知网卡为ens160)
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000link/ether 00:0c:29:83:f5:c5 brd ff:ff:ff:ff:ff:ffaltname enp3s0inet 192.168.100.10/24 brd 192.168.100.255 scope global dynamic noprefixroute ens160valid_lft 1734sec preferred_lft 1734secinet6 fe80::20c:29ff:fe83:f5c5/64 scope link noprefixroutevalid_lft forever preferred_lft forever
[root@localhost ~]#
2、使用vi对网卡文件进行配置,把IPV4的自动“auto”修改为手动"manual"
[root@localhost ~]# vi /etc/NetworkManager/system-connections/ens160.nmconnection
[connection]
id=ens160
uuid=87a8b3f4-dc0a-37a5-b4b8-95d48e19bbf6
type=ethernet
autoconnect-priority=-999
interface-name=ens160
timestamp=1708221986[ethernet][ipv4]
192.168.100.10/24,192.168.100.2
dns=192.168.100.1
method=manual[ipv6]
addr-gen-mode=eui64
method=auto[proxy]
3、写入配置文件
[root@localhost ~]# nmcli c reload
4、重启系统reboot
5、验证网络ping www.baidu.com