1.配置客户端和路由器的IP地址
·
2.配置VLAN及Trunk
·
3.配置MSTP
SW1
[Huawei]stp mode mstp -----将交换机配置成MSTP模式
[Huawei]stp region-configuration -----进入MSTP模式
[Huawei-mst-region]region-name huawei -----配置域名为huawei
[Huawei-mst-region]revision-level 1 ------配置版本等级为1
[Huawei-mst-region]instance 1 vlan 10 ------将vlan10加入实例1中
[Huawei-mst-region]instance 2 vlan 20 ------将vlan20加入实例2中
[Huawei-mst-region]active region-configuration ----激活配置(必须配置)
[Huawei]stp instance 1 root primary -----配置交换机为实例1的主根
[Huawei]stp instance 2 root secondary -----配置交换机为实例2的备根
SW2 [Huawei]stp mode mstp [Huawei]stp region-configuration [Huawei-mst-region]region-name huawei [Huawei-mst-region]revision-level 1 [Huawei-mst-region]instance 1 vlan 10 [Huawei-mst-region]instance 2 vlan 20 [Huawei-mst-region]active region-configuration [Huawei]stp instance 1 root secondary [Huawei]stp instance 2 root primary
**SW3 [Huawei]stp mode mstp [Huawei]stp region-configuration [Huawei-mst-region]region-name huawei [Huawei-mst-region]revision-level 1 [Huawei-mst-region]instance 1 vlan 10 [Huawei-mst-region]instance 2 vlan 20 [Huawei-mst-region]active region-configuration **