#1.手动配置网卡
```
nmcli connection modify ens160 connection.autoconnect yes
nmcli connection modify ens160 ipv4.method manual ipv4.addresses 192.168.88.81/24
nmcli connection modify ens160 ipv4.gateway 192.168.88.2
nmcli connection modify ens160 ipv4.dns 114.114.114.114
reboot
```
#2.修改配置yum
```
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
```
#3.安装软件
dnf -y install vim wget
[root@localhost yum.repos.d]# cat CentOS-Linux-BaseOS.repo
[baseos]
name=CentOS Linux $releasever - BaseOS
baseurl=https://vault.centos.org/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[root@localhost yum.repos.d]# cat CentOS-Linux-AppStream.repo
[appstream]
name=CentOS Linux $releasever - AppStream
baseurl=https://vault.centos.org/centos/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial