Foreword:
I originally planned to update what I learned every day, but I was slow to learn new knowledge. Every day I was on the verge of failing to complete the task, and I felt like my brain couldn't keep up with the influx of a large amount of knowledge in a short period of time. At the end of the week, the teacher assigned a small project that incorporated the content required in the previous week. On the first day, I struggled until almost 12 o'clock in the evening to get it done. I restored the snapshot three times, and finally found that the DNS configuration was wrong, and it was not paired three times. I made the same mistake.
Next, look at the homework left by the teacher and redo it today to consolidate it.
Topic requirements:
Let’s first look at this idea:
The meaning of this topic is to regard the virtual machine win2019 as the company's server, and the virtual machine win7 as the employee's machine, so that the Internet access and IP allocation of employees' computers are all controlled by the win2019 server, enabling viewing of the company's web pages and ftp sharing. folder.
1. You want to access the company's webpage, but the domain name is not registered, so you need a web server.
2. You need to access the Internet through the company's server, because the vm has a built-in v8 network card. In order for the v8 network card to be the first to allocate IP addresses to employees' win7, you need to turn off the v8 network card.
3. To assign IPs to employees, win2019 also needs a DHCP server.
4. To use ftp to share folders, win2019 also requires an ftp server.
Now let’s officially start the experiment:
First, restore the snapshots of both virtual machines. Note that win7 remains shut down and do not open it yet. The simulated employees have not yet gone to work.
Open win2019, and when you can access the Internet normally
Open cmd and enter ipconfig to check his gateway. You will need to configure it later. This is very important! ! ! !
When my win2019 is online normally, my gateway is 192.168.25.2
Everyone's virtual machine may be different, so remember your own.
Close v8
Because the virtual machines all use v8 mode, in order to prevent v8 from assigning IP to win7 first, we need to shut it down.
Click Edit in the upper left corner of the vm--Virtual Network Editor---Change settings
--
Because I have modified it before, I did not click to change the settings. The option is gray.
If you haven’t done it before, just follow my steps below to complete it.
After the modification is completed, you will find that our virtual machine can no longer access the Internet. This is normal, don't worry.
Next we will do win2019
Configure static IP
Why do we need to configure it? Because this win2019 needs to be used as a DNS, DHCP, and web server. No server's IP changes all the time, so we have to simulate win2019 as a real server.
Right click on the network logo above---open network and internet settings---change adapter options--see below
Right click ethernet0 --Properties
--
Then the static IP setting is successful.
To check and verify, right-click ethernet0 --Status--Details
After the static IP is configured, it stands to reason that we can access the Internet in win2019.
Let’s ping baidu.com to verify and it’s successful.
ok, next step
Configure DNS server
win--server manager
Add roles and features
After installation is complete, click Close
Open windows management tools
Double-click dns to open
Double-click win2019--right-click forward search area--new area
Click Finish
Next add authoritative scope
After this setting is completed, when win7 accesses www.dafeige.com and ftp:ftp.dafeige.com, you can directly let 192.168.25.222, which is win2019, respond.
ok, next
Set up dhcp server
Download first
Except that dncp is checked here, the rest is the same as downloading dns.
After installation is complete, click Close
Open windows management tools
Double-click dhcp to open
Click Finish
ok, dhcp server configuration is completed
In this way, after win7 is turned on, win2019 will assign him an address from 192.168.25.100-192.168.25.150
Next download the web server
Except for the following two steps, the rest is the same as above
If you do not install ftp, there will be no option to add an ftp site.
After the web server is installed, you need to add a site
We don’t have a web page yet so we need to create one
Create an html file first
The content of the web page is as follows, then save it
After the web page is completed
Build a web site
Open the web server on windows manager
Right click to add site
Close the default webpage that comes with it, because it is also port 80, which will cause conflicts.
The web is done, now it’s time to share the ftp files
When adding two users, make sure the password is not the same as the win7 startup password.
Create shared folder
Allow sharing first
Set different permissions for two users
Cancel inheritance--delete redundant users
Add student and teacher user groups
Uploading the folder student has permission to read and list the folder contents
Download folder student has permission to write and list the folder contents
The teacher has full control over both
After setting up the shared folder
Next open windows manager--open web server--add ftp site
In this way, the ftp site is also deployed
Then our win2019 side is almost configured.
Next is the moment of verification! ! !
Experimental result verification:
Open win7
Open cmd
Verify whether you can access the Internet successfully!
Check the IP to see if the configuration is correct. Correct!
Check whether we can ping www.dafeige.com, the webpage we deployed ourselves successfully!
The web page can also be opened successfully!
FTP can also be opened normally and successfully!
Log in to the student and teacher users, and the permissions are correct and successful!
At this point, the experiment ended successfully! ! !