Modify the network configuration of the virtual machine to a fixed IP

Minimized virtual machine installation without iptables

View network card information

ip a

Insert picture description here
Learn that the network card information is ens18

Modify network card information

vi /etc/sysconfig/network-scripts/ifcfg-ens18

Insert picture description here
Change to a fixed IP address
Insert picture description here

Restart network

systemctl restart network

Guess you like

Origin blog.csdn.net/wenyichuan/article/details/113997008