1.tcp
测试环境
设置客户端基础配置
设置服务器基础配置
客户端发送包:
抓包:
请求建立连接
同意建立连接:
断开连接:
2.udp
测试环境
配置pc机
使用upd发包工具发包
抓包:
3.ftp
测试环境
配置主机:
抓包:
4.telnet/aaa
测试环境
配置端口地址:
路由1:
<n s1>sy
Enter system view, return user view with Ctrl+Z.
[n s1]int g 0/0/0
[n s1-GigabitEthernet0/0/0]ip address 192.168.1.20 24
Jun 15 2023 14:47:49-08:00 n s1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol I
P on the interface GigabitEthernet0/0/0 has entered the UP state.
路由2:
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.30 24
[Huawei-GigabitEthernet0/0/0]
Jun 15 2023 14:31:00-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
路由2开启远程管理:
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]user-int v 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]aaa
[Huawei-aaa]local-user ntd password cipher 123456
Info: Add a new user.
[Huawei-aaa]local-user ntd service-type telnet
[Huawei-aaa]local-user ntd privilege level 3
<Huawei>
路由1登录并且修改路由2用户名字:
<n s1>telnet 192.168.1.30
Press CTRL_] to quit telnet mode
Trying 192.168.1.30 ...
Connected to 192.168.1.30 ...
Login authentication
Username:ntd
Password:
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sn s1
^
Error:Too many parameters found at '^' position.
[Huawei]sy s1
[s1]
5.交互机MAC地址表
测试环境
PC机查看交换机Mac地址表
<Huawei>display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
VSI/SI MAC-Tunnel
-------------------------------------------------------------------------------
5489-9896-3dc8 1 - - GE0/0/1 dynamic 0/-
5489-988e-0979 1 - - GE0/0/2 dynamic 0/-
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 2