Cannot access virtual machine remotely [bug]

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
Insert image description here
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

Insert image description here

related resources

IP configuration of this machine

Insert image description here
This is the virtual machine IP configuration
Insert image description here
This is the virtual machine IP configuration file/etc/sysconfig/network-scripts/if-ens161

Insert image description here

solve

Cancel ✔

Restart the virtual machine

It is best to power off + boot

The virtual machine can ping the gateway
Insert image description here
and can connect remotely.
Insert image description here

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

VirtualBox CentOs network address translation (NAT), host mode (Host-Only), bridged (Bridged) mode configuration

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.

Insert image description here

Guess you like

Origin blog.csdn.net/qq_51625007/article/details/131801393