首页 > 其他分享 >华为设备ensp做STP配置及抓包分析

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

时间:2024-07-04 14:28:14浏览次数:17  
标签:ensp vlan 华为 STP trunk interface stp type port

一、网络拓扑

二、各个设备的配置

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

标签:ensp,vlan,华为,STP,trunk,interface,stp,type,port
From: https://blog.csdn.net/m0_64174921/article/details/140177920

相关文章

  • 一图看懂华为云 CodeArts API 7 大特性,带你玩转一站式 API
    everythingisAPI,预计未来将有80%以上的商业合作会通过API来完成。华为云CodeArtsAPI是API全生命周期一体化协作平台,支持开发者高效实现API设计、API开发、API测试、API托管、API运维、API变现的一站式体验。以API契约为锚点,CodeArtsAPI保证了API各阶段数据高度一致,为开发......
  • 【社招+校招】华为OD机试 - 运维日志排序(Java & JS & Python & C)
    鱼弦:公众号【红尘灯塔】,CSDN博客专家、内容合伙人、新星导师、全栈领域优质创作者、51CTO(Top红人+专家博主)、github开源爱好者(go-zero源码二次开发、游戏后端架构https://github.com/Peakchen)运维日志排序算法实现(Java、JavaScript、Python、C、C++)算法概述运维日志......
  • 【校招+社招】华为OD机试 - 统计射击比赛成绩(Java & JS & Python)
    鱼弦:公众号【红尘灯塔】,CSDN博客专家、内容合伙人、新星导师、全栈领域优质创作者、51CTO(Top红人+专家博主)、github开源爱好者(go-zero源码二次开发、游戏后端架构https://github.com/Peakchen)统计射击比赛成绩(Java、JavaScript、Python和C++)算法实现问题描述:在一......
  • VMware ESXi 8.0U3 macOS Unlocker & OEM BIOS Huawei (华为) FusionServer 定制版
    VMwareESXi8.0U3macOSUnlocker&OEMBIOSHuawei(华为)FusionServer定制版ESXi8.0U3标准版,Dell(戴尔)、HPE(慧与)、Lenovo(联想)、Inspur(浪潮)、Cisco(思科)、Hitachi(日立)、Fujitsu(富士通)、NEC(日电)、Huawei(华为)、xFusion(超聚变)OEM定制版请访问......
  • 2024年华为OD机试真题- 分月饼-(C++/Java/python)-OD统一考试(C卷D卷)
      2024华为OD机试真题目录-(B卷C卷D卷)-【C++JavaPython】   题目描述中秋节,公司分月饼,m个员工,买了n个月饼,m≤n,每个员工至少分1个月饼,但可以分多个,单人分到最多月饼的个数是Max1,单人分到第二多月饼个数是Max2,Max1-Max2≤3,单人分到第n-1多月饼个......
  • testptp
    TestthePTPPhysicalHardwareClockfunctionalityusingthe"phc_ctl"(apartof"linuxptp").Thetestcontainsthreesub-tests:*"settime"test*"adjtime"test*"adjfreq"test"settime&qu......
  • ENSP模拟实验-ACL
    实验拓扑图:实验要求:R1,R2模拟PC,R1可以telnetR3,不能pingR3;R1可以pingR4,不能telnetR4;R2的配置与R1相反;实验过程;1.IP地址规划由于未作要求,随意给两个网段即可,地址划分如下:用户:192.168.1.0/24骨干:192.168.2.0/242.基础配置(仅给出模拟PC的路由器R1的配置,R2与R1相似,R3,R......
  • 华为eNSP综合实验:单臂路由、DHCP、RIP、OSPF、VLAN
    前言本实验为华为eNSP综合实验,为某学校相关课程期末考试真题,当时没有完全理解,现在由于工作需求,重新温习相关技术,于是想到用本实验来练练手,提升一下实验操作能力。主要涉及交换机VLAN划分、trunk口放通vlan;路由器单臂路由配置、DHCP配置、RIP配置、OSPF配置以及路由引入。......
  • 华为DCN之:SDN和NFV
    1.SDN概述1.1SDN的起源SDN(SoftwareDefinedNetwork)即软件定义网络。是由斯坦福大学CleanSlate研究组提出的一种新型网络创新架构。其核心理念通过将网络设备控制平面与数据平面分离,从而实现了网络控制平面的集中控制,为网络应用的创新提供了良好的支撑。SDN起源提出了......
  • OpenSpace Web3课程大纲
    这个OpenSpaceWeb3BootCamp区块链技术线下集训营培训的内容看起来不错,比较全面也比较深入,但我没有金钱和时间,而且似乎这个面向的应该是即将毕业的应届生,2个月脱产应该没多少工作的人参加,除了一些处于gap期的吧。年轻真好。不管怎样,在这里列一下这个培训的大纲,作为参考。夯实基......