【Cisco Packet Tracer】DHCP/FTP/WEB/DNS experiment

This article uses CiscoPacketTracer simulation software to implement a DHCP/FTP/WEB/DNS experiment. The topology contains 2 clients and 3 servers (DHCP server, DNS server, FTP/WEB share a common server). The IP address of the client is determined by the DHCP server. Dynamic allocation.

DHCP server IP address: 192.168.0.254

DNS server IP address: 192.168.0.253

FTP/WEB server IP address: 192.168.0.252


1. Draw the topology and set the IP

Draw the following topology and set the IP addresses of the three servers (the IP addresses of client PC0 and PC1 do not need to be set, they are obtained by DHCP):

2. DHCP service

Enable DHCP service:

Set the assigned IP address and other information. The address of the DNS Server is the IP address of the DNS server in the topology. The assigned starting IP is 192.168.0.0, but 192.168.0.0 is the network number and cannot be used as an IP address, so the IP address is actually assigned. Assigned starting from 192.168.1.1:

PC0 obtains the IP address (note: since 192.168.0.0 is a network number and cannot be used as an IP address, the actual IP allocation starts from 192.168.0.1):

PC1 gets the IP address:

The DHCP experiment is over.

3. FTP service

Enable the FTP service of the FTP server (enabled by default):

Add an FTP account. The default account is cisco. Here add an account zhangsan. The password is also zhangsan. Check all permissions and click Add:

You can see that the account zhangsan was added successfully, and RWDNL corresponds to the five permissions of the check box:

Open the command line of PC0:

Use ftp 192.168.0.252 to log in to FTP. 192.168.0.252 is the address of the FTP server. Enter the account password. After success, the command line changes from C:\> to ftp> .

Enter dir to view the file list of the FTP server:

Use the command "get file name" to download the file. Here, download the first file. Use the command "get asa842-k8.bin". After a while, the download is successful:

4. WEB service

Enable web service (enabled by default):

Open PC0’s web browser:

Enter IP address to access:

You can see the access results:

5. DNS

The role of DNS: resolve domain names into IP addresses

Correspondence between IP address and domain name: One domain name can only correspond to one IP address, and one IP address can correspond to multiple domain names.

Set up the following domain name and IP correspondence table:

Domain name and IP correspondence table
www.test.com.cn 192.168.0.252 web service
www.qq.test.cn 192.168.0.252 web service
ftp.test.cn 192.168.0.252 ftp service

Turn on DNS service:

Set the corresponding relationship between domain name and IP address:

Make sure the DNS has 3 records:

Open the web browser of PC0 and access the web server through www.test.com.cn (it can also be accessed through www.qq.test.cn, which will not be demonstrated here):

Next, access the FTP service through the domain name ftp.test.cn and open the command console of PC1:

Enter the following commands in sequence:

The experiment is over.

Guess you like

Origin blog.csdn.net/qq_40035462/article/details/134659833