Linux network service experiment

1. Set the window IP address to 192.168.3.XX and mask 24 bits.
2. Set the Linux IP address to 192.168.3.YY with a 24-bit mask. Window and Linux ping each other.
3. Open telnet and vsftp services in linux.
4. Create an account with a+ student number in linux, use this account to log in to linux using telnet, and create a login.txt file in the main directory.
5. Use the command line terminal in the window to connect to the ftp service of Linux.
6. Write the last 10 lines of the /var/log/messages file to the login.txt file in linux.
7. Use the account you just created to log in to ftp, and download the login.txt file to the C drive directory of Windows.
8. Take a screenshot of the ip address set in steps 1 and 2 and ping each other to word, and take a screenshot of the operation process of steps 4, 5, and 7 to word. Submit the word file.
 
 
Environment centOS6.8
My approach:
1. Set the window IP address to 192.168.3.XX and mask 24 bits.
2. Set the Linux IP address to 192.168.3.YY with a 24-bit mask. Window and Linux ping each other.
I read a lot of ways to change the IP address of Linux and Windows on the Internet, but the ping fails. Then I used a detailed explanation of setting a fixed IP address on the Internet, and it was solved. https://www.linuxidc.com/Linux/2017-12/149910.htm
ping result:
 

 

 

3. Open telnet and vsftp services in linux.
Since I don't have telnet installed, install it first. Use the command yum install xinetd telnet telnet-server -y
Start the telent service:
Edit command: vi /etc/xinetd.d/telnet , change yes in the last line to no
Start command: service xinetd start
 
 
4. Create an account with a+ student number in linux, use this account to log in to linux using telnet, and create a login.txt file in the main directory.

 Create an account: useradd a201525050203

Use the account telnet to log in to Linux: telnet 192.168.3.2

Create a login.txt file in the home directory: touch login.txt

 

 

 

 5. Use the command line terminal in the window to connect to the ftp service of Linux.

 

 

 

 

 

 

6. Write the last 10 lines of the /var/log/messages file to the login.txt file in linux.

 

 

 

7. Use the account you just created to log in to ftp, and download the login.txt file to the C drive directory of Windows.

I downloaded the xshell and xftp tools and used this directly.

 

 

 

Guess you like

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