应用层和交换机

一、tcp

测试环境

 抓包

 三次握手:

 序列号和确认序列号:

 

 

 四次断开:

 

 

 

 二、UDP

测试环境:

配置pc1:

 抓包:

 

 三、FTP

测试环境:

设置HTTP主机:

 

抓包: 

 

 

 

四、telnet\AAA

测试环境: 

配置端口地址:

 路由1:

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add    
[Huawei-GigabitEthernet0/0/0]ip address 192.168.12.1 24

 路由2:

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add    
[Huawei-GigabitEthernet0/0/0]ip address 192.168.12.2 24

 路由1开启远程管理:

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]user-int    
[Huawei]user-interface ?
  INTEGER<0,129-149>   The first user terminal interface to be configured
  console              Primary user terminal interface
  current              The current user terminal interface
  maximum-vty          The maximum number of VTY users, the default value is 5
  tty                  The asynchronous serial user terminal interface 
  vty                  The virtual user terminal interface 
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]auth    
[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 ser    
[Huawei-aaa]local-user ntd service-type tel    
[Huawei-aaa]local-user ntd service-type telnet 
[Huawei-aaa]lo    
[Huawei-aaa]local-user p    
[Huawei-aaa]local-user pri    
[Huawei-aaa]local-user ntd p    
[Huawei-aaa]local-user ntd pri    
[Huawei-aaa]local-user ntd privilege l    
[Huawei-aaa]local-user ntd privilege level 3
路由2登录:

<Huawei>telnet 192.168.12.1
  Press CTRL_] to quit telnet mode
  Trying 192.168.12.1 ...
  Connected to 192.168.12.1 ...

Login authentication


Username:ntd
Password:
<Huawei>

五、交换机mac地址表

测试环境:

 pc1 ping pc2,查看交换机mac地址表

<Huawei>display mac    
<Huawei>display mac-add    
<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-982b-6658 1           -      -      GE0/0/1         dynamic   0/-         
5489-98e9-493b 1           -      -      GE0/0/2         dynamic   0/-         
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 2 

六、vlan

创建vlan:

[Huawei]u t m
[Huawei]vlan 1
[Huawei-vlan1]display v    
[Huawei-vlan1]display vlan
The total number of vlans is : 1
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------

VID  Type    Ports                                                          
--------------------------------------------------------------------------------
1    common  UT:GE0/0/1(U)      GE0/0/2(U)      GE0/0/3(U)      GE0/0/4(D)      
                GE0/0/5(D)      GE0/0/6(D)      GE0/0/7(D)      GE0/0/8(D)      
                GE0/0/9(D)      GE0/0/10(D)     GE0/0/11(D)     GE0/0/12(D)     
                GE0/0/13(D)     GE0/0/14(D)     GE0/0/15(D)     GE0/0/16(D)     
                GE0/0/17(D)     GE0/0/18(D)     GE0/0/19(D)     GE0/0/20(D)     
                GE0/0/21(D)     GE0/0/22(D)     GE0/0/23(D)     GE0/0/24(D)     


VID  Status  Property      MAC-LRN Statistics Description      
--------------------------------------------------------------------------------

1    enable  default       enable  disable    VLAN 0001   

删除vlan:

[Huawei]undo vlan 2
[Huawei]
Jun 15 2023 17:43:00-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 5, th
e change loop count is 0, and the maximum number of records is 4095.dis
            ^
Error:Incomplete command found at '^' position.
[Huawei]display vlan
The total number of vlans is : 1
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------

VID  Type    Ports                                                          
--------------------------------------------------------------------------------
1    common  UT:GE0/0/1(U)      GE0/0/2(U)      GE0/0/3(U)      GE0/0/4(D)      
                GE0/0/5(D)      GE0/0/6(D)      GE0/0/7(D)      GE0/0/8(D)      
                GE0/0/9(D)      GE0/0/10(D)     GE0/0/11(D)     GE0/0/12(D)     
                GE0/0/13(D)     GE0/0/14(D)     GE0/0/15(D)     GE0/0/16(D)     
                GE0/0/17(D)     GE0/0/18(D)     GE0/0/19(D)     GE0/0/20(D)     
                GE0/0/21(D)     GE0/0/22(D)     GE0/0/23(D)     GE0/0/24(D)     


VID  Status  Property      MAC-LRN Statistics Description      
--------------------------------------------------------------------------------

1    enable  default       enable  disable    VLAN 0001                         
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值