华为设备ensp做STP配置及抓包分析

一、网络拓扑

二、各个设备的配置

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时的抓包:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值