VM—Virtual Machine—Settings—Network Adapter—Change to NET mode.
Change the ONBOOT
path: /etc/sysconfig/network-scripts. Check your specific file name on this path.
Note: The path needs to be under network-scripts.
vi ifcfg-ens33 (the specific file is modified according to your own, and the name is ifcfg-ensXXX).
Under the ifcfg-ensXXX file, find the ONBOOT option.
Change it to ONBOOT = "yes".
Restart the network card. services network restart
install sudo yum install net-tools
then test ifconfig
Linux---Solve the connection problem of VM and Xshell under campus network
Guess you like
Origin blog.csdn.net/qq_42708024/article/details/108443424
Recommended
Ranking