服务器 运维 网络 计算机网络 tcp/ip 网络协议 华为设备ensp做STP配置及抓包分析 - 三、ping通测试
一、网络拓扑
二、各个设备的配置
PC1:
PC配置:
PC3配置:
PC4配置:
LSW1与LSW2、LSW3、LSW4配置一样如下:
# sysname LSW1 # undo info-center enable # vlan batch 10 20 30 40 # stp region-configuration instance 1 vlan 10 20 instance 2 vlan 30 40 active region-configuration # interface Ethernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interface Ethernet0/0/2 port link-type access port default vlan 10 # interface Ethernet0/0/3 port link-type trunk port trunk allow-pass vlan 2 to 4094 #
LSW5与LSW6配置一样如下:
# sysname LSW 5 # undo info-center enable # vlan batch 10 20 30 40 # stp mode stp stp instance 1 root primary stp instance 2 root secondary # stp region-configuration region-name huawei revision-level 5 instance 1 vlan 10 20 instance 2 vlan 30 40 active region-configuration # interface Vlanif10 ip address 192.168.10.254 255.255.255.0 # interface Vlanif20 ip address 192.168.20.254 255.255.255.0 # interface Vlanif30 ip address 192.168.30.254 255.255.255.0 # interface Vlanif40 ip address 192.168.40.254 255.255.255.0 # interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interface GigabitEthernet0/0/1 # interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interface GigabitEthernet0/0/3 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interface GigabitEthernet0/0/4 eth-trunk 1 # interface GigabitEthernet0/0/5 eth-trunk 1 # interface GigabitEthernet0/0/6 port link-type trunk port trunk allow-pass vlan 2 to 4094 # interface GigabitEthernet0/0/7 port link-type trunk port trunk allow-pass vlan 2 to 4094 # 拼多多帮助力入口
三、ping通测试
四、抓包
无stp时的抓包会发现在短时间内有大量的ARP报文
有stp时的抓包:
精彩链接