路由器 生成树.doc_第1页
路由器 生成树.doc_第2页
路由器 生成树.doc_第3页
路由器 生成树.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1.5生成树典型配置举例1.5.1MSTP典型配置举例1.组网需求l网络中所有设备都属于同一个MST域。Device A和Device B为汇聚层设备,Device C和Device D为接入层设备。l通过配置MSTP,使不同VLAN的报文按照不同的MSTI转发:VLAN 10的报文沿MSTI 1转发,VLAN 30沿MSTI 3转发,VLAN 40沿MSTI 4转发,VLAN 20沿MSTI 0转发。l由于VLAN 10和VLAN 30在汇聚层设备终结、VLAN 40在接入层设备终结,因此配置MSTI 1和MSTI 3的根桥分别为Device A和Device B,MSTI 4的根桥为Device C。2.组网图图1-11MSTP典型配置组网图3.配置步骤(1)配置VLAN和端口请按照图1-11在Device A和Device B上分别创建VLAN 10、20和30,在Device C上创建VLAN 10、20和40,在Device D上创建VLAN 20、30和40;将各设备的各端口配置为Trunk端口并允许相应的VLAN通过,具体配置过程略。(2)配置Device A#配置MST域的域名为example,将VLAN 10、30、40分别映射到MSTI 1、3、4上,并配置MSTP的修订级别为0。 system-viewDeviceA stp region-configurationDeviceA-mst-region region-name exampleDeviceA-mst-region instance 1 vlan 10DeviceA-mst-region instance 3 vlan 30DeviceA-mst-region instance 4 vlan 40DeviceA-mst-region revision-level 0#激活MST域的配置。DeviceA-mst-region active region-configurationDeviceA-mst-region quit#配置本设备为MSTI 1的根桥。DeviceA stp instance 1 root primary#全局使能生成树协议。DeviceA stp enable(3)配置Device B#配置MST域的域名为example,将VLAN 10、30、40分别映射到MSTI 1、3、4上,并配置MSTP的修订级别为0。 system-viewDeviceB stp region-configurationDeviceB-mst-region region-name exampleDeviceB-mst-region instance 1 vlan 10DeviceB-mst-region instance 3 vlan 30DeviceB-mst-region instance 4 vlan 40DeviceB-mst-region revision-level 0#激活MST域的配置。DeviceB-mst-region active region-configurationDeviceB-mst-region quit#配置本设备为MSTI 3的根桥。DeviceB stp instance 3 root primary#全局使能生成树协议。DeviceB stp enable(4)配置Device C#配置MST域的域名为example,将VLAN 10、30、40分别映射到MSTI 1、3、4上,并配置MSTP的修订级别为0。 system-viewDeviceC stp region-configurationDeviceC-mst-region region-name exampleDeviceC-mst-region instance 1 vlan 10DeviceC-mst-region instance 3 vlan 30DeviceC-mst-region instance 4 vlan 40DeviceC-mst-region revision-level 0#激活MST域的配置。DeviceC-mst-region active region-configurationDeviceC-mst-region quit#配置本设备为MSTI 4的根桥。DeviceC stp instance 4 root primary#全局使能生成树协议。DeviceC stp enable(5)配置Device D#配置MST域的域名为example,将VLAN 10、30、40分别映射到MSTI 1、3、4上,并配置MSTP的修订级别为0。 system-viewDeviceD stp region-configurationDeviceD-mst-region region-name exampleDeviceD-mst-region instance 1 vlan 10DeviceD-mst-region instance 3 vlan 30DeviceD-mst-region instance 4 vlan 40DeviceD-mst-region revision-level 0#激活MST域的配置。DeviceD-mst-region active region-configurationDeviceD-mst-region quit#全局使能生成树协议。DeviceD stp enable(6)检验配置效果当网络拓扑稳定后,通过使用display stp brief命令可以查看各设备上生成树的简要信息。例如:#查看Device A上生成树的简要信息。DeviceA display stp briefMSTID Port Role STP State Protection 0 Ethernet1/1 ALTE DISCARDING NONE 0 Ethernet1/2 DESI FORWARDING NONE 0 Ethernet1/3 ROOT FORWARDING NONE 1 Ethernet1/1 DESI FORWARDING NONE 1 Ethernet1/3 DESI FORWARDING NONE 3 Ethernet1/2 DESI FORWARDING NONE 3 Ethernet1/3 ROOT FORWARDING NONE#查看Device B上生成树的简要信息。DeviceB display stp briefMSTID Port Role STP State Protection 0 Ethernet1/1 DESI FORWARDING NONE 0 Ethernet1/2 DESI FORWARDING NONE 0 Ethernet1/3 DESI FORWARDING NONE 1 Ethernet1/2 DESI FORWARDING NONE 1 Ethernet1/3 ROOT FORWARDING NONE 3 Ethernet1/1 DESI FORWARDING NONE 3 Ethernet1/3 DESI FORWARDING NONE#查看Device C上生成树的简要信息。DeviceC display stp briefMSTID Port Role STP State Protection 0 Ethernet1/1 DESI FORWARDING NONE 0 Ethernet1/2 ROOT FORWARDING NONE 0 Ethernet1/3 DESI FORWARDING NONE 1 Ethernet1/1 ROOT FORWARDING NONE 1 Ethernet1/2 ALTE DISCARDING NONE 4 Ethernet1/3 DESI FORWARDING NONE#查看Device D上生成树的简要信息。DeviceD display stp briefMSTID Port Role STP State Protection 0 Ethernet1/1 ROOT FORWARDING

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论