cloud computing virtualization



Cloud computing virtualization experiment (1) - installation of virtual machine software VMware and installation of virtual machine system After the installation
of virtual host is completed, we have to start mutual network access
1. First, check the IP address of the Linux system and use ifconfig Command to check
 
2. Check the IP of the Windows system 
Windows key + R (start->run shortcut), use the cmd command to enter the command line interface
and then use the ipconfig command to check the IP address
 
3, you can see, I am here Experiment, the IP of Windows is 192.168.209.128, the IP of CentOS is 192.168.209.129, and
then check the IP address of the machine
 
4. Here you can see that after the network is turned on, the machine and the two virtual hosts are in the same below the local area network.
ping each other on the network.
It should be noted here that when conducting mutual network visits, the two Windows systems must ensure that the firewall is closed, otherwise the network cannot be pinged.
The first is the host pings two virtual hosts:
 
CentOS pings both Windows:
 
virtual Windows hosts ping the local machine and CentOS:
 

4—Virtual host mutual access in different LANs Let’s
first look at the requirements of the experimental topic:
 
1. It is still the virtual hosts Windows7 and CentOS7
2. The default is two virtual hosts under the same LAN. How to divide them under different LANs? ?
The answer is to use soft routing - the sea spider system!
3. What is soft routing?
Different from hard routing using hardware devices, soft routing uses software to form routing solutions, mainly relying on software to contain and achieve the function of routers.
4. The soft route used in the experiment is the sea spider system - the download link of the Linux2.6-based kernel
sea spider system image is posted! https://pan.baidu.com/s/1jHNTUxoPassword : jxxm
5. Installation of Sea Spider System
(1) VMware creates a new virtual machine and customizes the installation
(2) Default settings Next step
(3) Select "Slightly" After installing the operating system”
(4) Next, select Linux, the version is not limited
 
(5) Named hsrouter, the installation location is also customized
 
(6) The default setting of the number of processors, the next step is to allocate the default memory setting (the one I set in the experiment It is 1G, not less than 256M)
(7) Next, select "Use Bridged Network" 
(8) Next, use the recommended controller and disk type
(9) Next, "Create a new virtual disk"
( 10) The maximum disk size is set by default, and select "Split virtual disk into multiple files"
(11) Custom hardware:
The default is one network adapter, but we need two network cards in our experiment, so we need to virtualize more network cards
Click "Add" to add a new network adapter
 

The next step is to set up here and select "Bridge Mode"
 
to complete!
After adding a network card, you can use the same operation to virtualize more network cards, but in this experiment, it is enough to virtualize two.
Then, select a new CD/DVD, install the system image
 
, and click "Close". , go back to the original installation
(12) click "Finish", the virtual machine is newly created!
(13) Open the virtual machine and press
 
Enter to confirm, install the sea spider routing system and press
Enter. . Enter
until the sea spider is restarted


6. Sea spider routing settings
First, customize two network cards in Sea Spider, which are used to set up two network cards in the management system later, and divide the networks of the two hosts into two networks;
then create two new ones in VMware. Two virtual networks, VMnet18 and VMnet19, which are in host-only mode, are provided to two virtual hosts;
then manually set the IP addresses of the two virtual hosts, one is designated as 192.168.203.5, the other is designated as 192.168.204.5, and at the same time, it is customized And set its network adapters to custom VMnet18 and VMnet19 respectively, in this way, the two virtual hosts are assigned to different networks.
After the allocation, you can set the routing through the sea spider, access the background management system of the sea spider through one of the virtual hosts, and set up different LAN mutual access in the management system. After the setting is successful, the virtual hosts under different LANs can be An exchange visit is taking place!
The detailed steps are as follows:

(1) Right-click on the Sea Spider system to enter settings, one network adapter is customized as 18, and the other is customized as 19
(2) Set the virtual host, menu "Edit" -> "Virtual Network Editor"
(3) Click right "Change settings" in the lower corner, there are three networks in the list at this time
(4) Next, add two networks in host-only mode, click the button "Add network", one chooses 18, and the other chooses 19
 
(5) According to the requirements of the topic:
 
required Set an internal gateway to 192.168.203.1 and an external gateway to 192.168.204.1
So, under the network in host-only mode, modify the following subnet IPs, one (host 18) is set to 192.168.203.0, one (host 19) is set For 192.168.204.0, click "OK" to change.
 

(6) Next, set the IP addresses of the two virtual hosts to static:
Windows:
 
ipconfig view, IP has been modified

CentOS: need to enter the network configuration file to modify
(1) enter the administrator command line
(2) find the file path cd /etc/sysconfig/network-scripts/
(3) modify the first file: use the vim command
(4) to assign The address method is changed from dhcp to static, and the following command is added:
 

(5) Save and exit
(6) Restart the network. In addition to the command to restart the network (service network restart) mentioned in the previous article,
there is also a command: systemctl restart network.service

 
Use ifconfig to view, you can see that the IP address has been modified

(7) After the static address is modified, set the network adapters of the two virtual hosts to a custom host-only mode
Windows corresponds to a custom VMnet18, and CentOS corresponds to a custom VMnet19
(8) Then, we need to pass one of the virtual hosts The browser to enter the sea spider system management background: first enter the sea spider system to set, set the sea spider's IP address and one of the hosts to the same local area network below
 
, the list of available network cards, the first one represents The network card of Vmnet18, the second represents the network card of VMnet19, here we will use the Windows host to access the Sea Spider background management system, so select the network card assigned to the interface as "1", and set the IP address to 192.168. 203.1, and set the port number to 880
 

After the setting is completed, check the information, we can see that the IP address of the sea spider has changed
 

(9) Open the browser of the Windows host, enter "http://192.168.203.1:880/" in the URL, and enter the background management system of Sea Spider, where the login user name and password are both admin
 

(10) Enter, select, configure the network interface on the left, select LAN, you can see LAN1 there, because Windows and Sea Spider have been set under the same LAN, so there is no need to change.
 

Set up LAN2, select a free network card location for binding, and then fill in the following IP address.
The third column is here to ensure the opening of mutual access between LANs.
 

Save Settings

Guess you like

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