加载中...

实验ensp-IP和TCP抓包分析实验


IP和TCP抓包分析实验

拓扑图

image-20220722133920864

实验步骤

1.通过上面给的拓扑图和配置编址来配置相应的基本配置。ping通

<Huawei>
<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]inter	
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip addd	
[R1-GigabitEthernet0/0/0]ip add	
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0]
Jul 22 2022 13:04:46-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]ping 192.168.1.2
  PING 192.168.1.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=10 ms
    Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=40 ms
    Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=40 ms
    Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 192.168.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/28/40 ms

2.启动FTP Server

[R2]ftp ser	
[R2]ftp server en	
[R2]ftp server enable 
Info: Succeeded in starting the FTP server
[R2]local-	
[R2]local-u	
[R2]local-user jya
    ^
Error: Unrecognized command found at '^' position.
[R2]aaa
[R2-aaa]local-user ftp passwo	
[R2-aaa]local-user ftp password cipher 123
Info: Add a new user.
[R2-aaa]local	
[R2-aaa]local-user ftp ftp-di	
[R2-aaa]local-user ftp ftp-directory  flash
[R2-aaa]local-user ftp service-type ftp
[R2-aaa]local-user ftp privi	
[R2-aaa]local-user ftp privilege le	
[R2-aaa]local-user ftp privilege level 15
[R2-aaa]loca	
[R2-aaa]local-user ftp pass	
[R2-aaa]local-user ftp password c	
[R2-aaa]local-user ftp password cipher 123
[R2-aaa]
Jul 22 2022 13:19:34-08:00 R2 %%01MTM/3/LOGIN_FAIL(l)[2]:The user failed to log 
in. (UserName="jya", IpAddress=192.168.1.1, VpnInstanceName="")
[R2-aaa]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

3.在R1上使用ftp命令访问FTP服务器

<R1>ftp 192.168.1.2
Trying 192.168.1.2 ...

Press CTRL+K to abort
Connected to 192.168.1.2.
220 FTP service ready.
User(192.168.1.2:(none)):jya
331 Password required for jya.
Enter password:
530 Logged incorrect.

4.打开Wireshark,获取已经抓到的包。可以看到TCP头部分装格式和所学的完全一致,且可以看到FTP服务用户名和密码。


文章作者: okra2saber
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 okra2saber !
评论
  目录