Implement external communication on CentOS 7 network on virtual machine

Goals
  • CentOS 7 can access Baidu
  • XshellPortable can access CentOS 7
  • XftpPortable can access CentOS 7
A virtual software VirtualBox network configuration
VirtualBox provides four network access modes, they are:
1. Network Address Translation (NAT, Network Address Translation)
2. Bridged Adapter    
3. Internal (internal network mode)
4. Host-only adapters
We choose the second way here.
This way is basically the same as the mainframe. It is also a common method. It is directly connected to the network by setting up a bridge through the host network card. Thus, it enables virtual machines to be assigned to separate IPs on a network, with all network functions exactly as real machines on the network. In this method, you need to enable the virtual network card of the virtual machine first, and then set up the bridge.

 
Two CentOS 7 network configuration
1. Select DHCP mode for IPv4.

2. The operating system automatically assigns the IP as follows.

 3. After testing, you can prevent Baidu from being asked at this time.

 
Three Windows network configuration
Check the IP of Windows. The two operating systems communicate through the network segment 192.168.0.0.

 
Four XshellPortable Access Virtual Machines on CentOS 7 Configuration Methods
Windows access to Linux through SSH method is as follows.

 
 
Five XftpPortable access to the CentOS 7 configuration method on the virtual machine
The screenshot of Windows accessing Linux through SFTP is as follows.

 
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326419869&siteId=291194637
Recommended