Cannot access virtual machine remotely [bug]
bug
The virtual machine cannot access its default gateway
Virtual machine IP: 172.25.254.250
Virtual machine gateway IP: 172.25.254.1
Remote login also times out
error occurs
I restored the network configuration options of the virtual machine
Cause
√ Use the local DHCPT service to give the IP address to the virtual machine
related resources
IP configuration of this machine
This is the virtual machine IP configuration
This is the virtual machine IP configuration file/etc/sysconfig/network-scripts/if-ens161
solve
Cancel ✔
Restart the virtual machine
It is best to power off + boot
The virtual machine can ping the gateway
and can connect remotely.
final thanks
My classmate: pxq
CSDN Personal Community Office ② Group:
Hunan Foreign Trade Vocational College-Miss her@
Other reading
CSDN Personal Community Office ② Group:
Full Stack Engineer Community-Ai Ma Code’s Aim
Recommended Articles to Read
In host-only mode
The local machine and the virtual machine cannot access each other by default, but this can be achieved through network sharing.
Presumably it is set in the local network adapter.