Linux---Solve the connection problem of VM and Xshell under campus network

VM—Virtual Machine—Settings—Network Adapter—Change to NET mode.
Insert picture description here
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.
Insert picture description here
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.
Insert picture description here
Change it to ONBOOT = "yes".
Restart the network card. services network restart
install sudo yum install net-tools
then test ifconfig

Guess you like

Origin blog.csdn.net/qq_42708024/article/details/108443424
Recommended