Step-by-Step
Procedure
To configure interfaces and MSTP on Switch 4:
1.
Configure the VLANs
voice-vlan
,
employee-vlan
,
guest-vlan
, and
camera-vlan
:
[edit vlans]
user@switch4#
set voice-vlan description “Voice VLAN”
user@switch4#
set voice-vlan vlan—id 10
user@switch4#
set employee-vlan description “Employee VLAN”
user@switch4#
set employee-vlan vlan—id 20
user@switch4#
set guest-vlan description “Guest VLAN”
user@switch4#
set guest-vlan vlan—id 30
user@switch4#
set camera-vlan description “Camera VLAN”
user@switch4#
set guest-vlan vlan—id 40
2.
Configure the VLANs on the interfaces, including support for the Ethernet Switching
protocol:
[edit interfaces]
user@switch4#
set ge-0/0/23 unit 0 family ethernet-switching vlan members [10
20 30 40]
user@switch4#
set ge-0/0/19 unit 0 family ethernet-switching vlan members [10 20
30 40]
3.
Configure the port mode for the interfaces:
[edit interfaces]
user@switch4#
set ge—0/0/23 unit 0 family ethernet-switching port-mode trunk
user@switch4#
set ge—0/0/19 unit 0 family ethernet-switching port-mode trunk
4.
Configure MSTP on the switch, including the two MSTIs:
[edit protocols]
user@switch4#
mstp configuration-name region1
user@switch4#
mstp bridge-priority 16k
user@switch4#
mstp interface all cost 1000
user@switch4#
mstp interface ge—0/0/23.0 cost 1000
user@switch4#
mstp interface ge—0/0/23.0 mode point-to-point
user@switch4#
mstp interface ge—0/0/19.0 cost 1000
user@switch4#
mstp interface ge—0/0/19.0 mode point-to-point
user@switch4#
mstp msti 1 bridge-priority 16k
user@switch4#
mstp msti 1 vlan [10 20]
user@switch4#
mstp msti 2 bridge-priority 32k
user@switch4#
mstp msti 2 vlan [30 40]
Results
Check the results of the configuration:
user@switch4> show configuration
interfaces {
ge-0/0/23 {
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members 10;
members 20;
members 30;
members 40;
}
}
1553
Copyright © 2010, Juniper Networks, Inc.
Chapter 65: Examples of Spanning-Tree Protocols Configuration
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...