Chinaunix首页 | 论坛 | 博客
  • 博客访问: 563469
  • 博文数量: 130
  • 博客积分: 7473
  • 博客等级: 少将
  • 技术积分: 1466
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-10 22:29
文章分类

全部博文(130)

文章存档

2012年(1)

2011年(22)

2010年(2)

2009年(58)

2008年(47)

分类: 系统运维

2011-06-06 18:11:51

1.配置MST域
system
stp region-configuration
region-name gaozhonglin
instance 10 vlan 10
revision-level 0 (MSTP修订级别默认为0)
只有域名 默认修订级别 VLAN映射表,链路相同才可为同一域名。
active region-configuration
2.显示MST配置
display stp region-configuration
3.配置根桥、备份根桥
system
stp instance 10 root primary
stp instance 10 root secondary
4.配置MSTP工作模式
system
stp mode stp|rstp|mstp
5.配置设备优先级
system
stp instance 10 priority(默认32768)。
6.在根桥上配置MST域最大跳数
system
stp max-hops 10
7.配置交换网络的直径
最大直径:终端设备间最大设备数。
system
stp bridge-diameter 4
8.配置了网络直径后,自动将Hello Time、Forward Delay和Max Age 这三个时间参数设置为最优值。
网络直径配置只对CIST有效,每个MSTI都视为一台设备
9.配置边缘端口类似(CISCO速端口)
system
interface f0/1
或者
port-group manual 10
stp edged-port enable
cisco中的配置:(spanning-tree  portfast)
10.配置端口的路径开销标准
system
stp pathcost-stardard dot1d-1998(cisco) | dot1t | legacy 默认)
11.配置端口优先级
system
interface f0/1
或者
port-group manual port-group-name
stp instance 10 priority 10
12.全局使能MSTP
system
stp enable
13.执行Mcheck操作
system
stp mcheck
14.配置BPDU保护
system
stp bpdu-protection
15.配置根保护
system
interface f0/1
stp root-protection
16.配置环路保护
system
interface f0/1
stp loop-protection
17.配置MSTP BPDU拦截
system
interface f0/1
bpdu-drop any
1. 组网需求

l              网络中所有设备都属于同一个MST域。Device ADevice B为汇聚层设备,Device CDevice D为接入层设备。

l              通过配置使不同VLAN的报文按照不同的MSTI转发:VLAN 10的报文沿MSTI 1转发,VLAN 30沿MSTI 3转发,VLAN 40沿MSTI 4转发,VLAN 20沿MSTI 0转发。

l              由于VLAN 10VLAN 30在汇聚层设备终结、VLAN 40在接入层设备终结,因此配置MSTI 1MSTI 3的根桥分别为Device ADevice BMSTI 4的根桥为Device C

 
3. 配置步骤

(1)        配置VLAN和端口

请按照1-11Device ADevice B上分别创建VLAN 102030,在Device C上创建VLAN 102040,在Device D上创建VLAN 203040;将各设备的各端口配置为Trunk端口并允许相应的VLAN通过,具体配置过程略。

(2)        配置Device A

# 配置MST域的域名为example,将VLAN 103040分别映射到MSTI 134上,并配置MSTP的修订级别为0

system-view

[DeviceA] stp region-configuration

[DeviceA-mst-region] region-name example

[DeviceA-mst-region] instance 1 vlan 10

[DeviceA-mst-region] instance 3 vlan 30

[DeviceA-mst-region] instance 4 vlan 40

[DeviceA-mst-region] revision-level 0

# 激活MST域的配置。

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 配置本设备为MSTI 1的根桥。

[DeviceA] stp instance 1 root primary

# 全局使能MSTP协议。

[DeviceA] stp enable

(3)        配置Device B

# 配置MST域的域名为example,将VLAN 103040分别映射到MSTI 134上,并配置MSTP的修订级别为0

system-view

[DeviceB] stp region-configuration

[DeviceB-mst-region] region-name example

[DeviceB-mst-region] instance 1 vlan 10

[DeviceB-mst-region] instance 3 vlan 30

[DeviceB-mst-region] instance 4 vlan 40

[DeviceB-mst-region] revision-level 0

# 激活MST域的配置。

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# 配置本设备为MSTI 3的根桥。

[DeviceB] stp instance 3 root primary

# 全局使能MSTP协议。

[DeviceB] stp enable

(4)        配置Device C

# 配置MST域的域名为example,将VLAN 103040分别映射到MSTI 134上,并配置MSTP的修订级别为0

system-view

[DeviceC] stp region-configuration

[DeviceC-mst-region] region-name example

[DeviceC-mst-region] instance 1 vlan 10

[DeviceC-mst-region] instance 3 vlan 30

[DeviceC-mst-region] instance 4 vlan 40

[DeviceC-mst-region] revision-level 0

# 激活MST域的配置。

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 配置本设备为MSTI 4的根桥。

[DeviceC] stp instance 4 root primary

# 全局使能MSTP协议。

[DeviceC] stp enable

(5)        配置Device D

# 配置MST域的域名为example,将VLAN 103040分别映射到MSTI 134上,并配置MSTP的修订级别为0

system-view

[DeviceD] stp region-configuration

[DeviceD-mst-region] region-name example

[DeviceD-mst-region] instance 1 vlan 10

[DeviceD-mst-region] instance 3 vlan 30

[DeviceD-mst-region] instance 4 vlan 40

[DeviceD-mst-region] revision-level 0

# 激活MST域的配置。

[DeviceD-mst-region] active region-configuration

[DeviceD-mst-region] quit

# 全局使能MSTP协议。

[DeviceD] stp enable

(6)        检验配置效果

当网络拓扑稳定后,通过使用display stp brief命令可以查看各设备上生成树的简要信息。例如:

# 查看Device A上生成树的简要信息。

[DeviceA] display stp brief

 MSTID      Port                         Role  STP State     Protection

   0        GigabitEthernet1/0/1         ALTE  DISCARDING    NONE

   0        GigabitEthernet1/0/2         DESI  FORWARDING    NONE

   0        GigabitEthernet1/0/3         ROOT  FORWARDING    NONE

   1        GigabitEthernet1/0/1         DESI  FORWARDING    NONE

   1        GigabitEthernet1/0/3         DESI  FORWARDING    NONE

   3        GigabitEthernet1/0/2         DESI  FORWARDING    NONE

   3        GigabitEthernet1/0/3         ROOT  FORWARDING    NONE

# 查看Device B上生成树的简要信息。

[DeviceB] display stp brief

 MSTID      Port                         Role  STP State     Protection

   0        GigabitEthernet1/0/1         DESI  FORWARDING    NONE

   0        GigabitEthernet1/0/2         DESI  FORWARDING    NONE

   0        GigabitEthernet1/0/3         DESI  FORWARDING    NONE

   1        GigabitEthernet1/0/2         DESI  FORWARDING    NONE

   1        GigabitEthernet1/0/3         ROOT  FORWARDING    NONE

   3        GigabitEthernet1/0/1         DESI  FORWARDING    NONE

   3        GigabitEthernet1/0/3         DESI  FORWARDING    NONE

# 查看Device C上生成树的简要信息。

[DeviceC] display stp brief

 MSTID      Port                         Role  STP State     Protection

   0        GigabitEthernet1/0/1         DESI  FORWARDING    NONE

   0        GigabitEthernet1/0/2         ROOT  FORWARDING    NONE

   0        GigabitEthernet1/0/3         DESI  FORWARDING    NONE

   1        GigabitEthernet1/0/1         ROOT  FORWARDING    NONE

   1        GigabitEthernet1/0/2         ALTE  DISCARDING    NONE

   4        GigabitEthernet1/0/3         DESI  FORWARDING    NONE

# 查看Device D上生成树的简要信息。

[DeviceD] display stp brief

 MSTID      Port                         Role  STP State     Protection

   0        GigabitEthernet1/0/1         ROOT  FORWARDING    NONE

   0        GigabitEthernet1/0/2         ALTE  DISCARDING    NONE

   0        GigabitEthernet1/0/3         ALTE  DISCARDING    NONE

   3        GigabitEthernet1/0/1         ROOT  FORWARDING    NONE

   3        GigabitEthernet1/0/2         ALTE  DISCARDING    NONE

   4        GigabitEthernet1/0/3         ROOT  FORWARDING    NONE

根据上述显示信息,可以绘出各VLAN所对应的MSTI,如1-12所示。

对应的MSTI示意图

 

 
 
 
 
 
 
 
阅读(2111) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~