Step-by-Step
Procedure
Results
Copyright © 2017, Juniper Networks, Inc.
set protocols mstp msti 1 vlan [10 20]
set protocols mstp msti 2 bridge-priority 4k
set protocols mstp msti 2 vlan [30 40]
To configure interfaces and MSTP on Switch 2:
Configure the VLANs
1.
[edit vlans]
user@switch2# set voice-vlan description "Voice VLAN"
user@switch2# set voice-vlan vlan-id 10
user@switch2# set employee-vlan description "Employee VLAN"
user@switch2# set employee-vlan vlan-id 20
user@switch2# set guest-vlan description "Guest VLAN"
user@switch2# set guest-vlan vlan-id 30
user@switch2# set camera-vlan vlan-description "Camera VLAN"
user@switch2# set guest-vlan vlan-id 40
Configure the VLANs on the interfaces, including support for the Ethernet Switching
2.
protocol:
[edit interfaces]
user@switch2# set ge-0/0/14 unit 0 family ethernet-switching vlan members [10 20 30
40]
user@switch2# set ge-0/0/18 unit 0 family ethernet-switching vlan members [10 20 30
40]
Configure the port mode for the interfaces:
3.
[edit interfaces]
user@switch2# set ge-0/0/14 unit 0 family ethernet-switching interface-mode trunk
user@switch2# set ge-0/0/18 unit 0 family ethernet-switching interface-mode trunk
Configure MSTP on the switch, including the two MSTIs:
4.
[edit protocols]
user@switch2# mstp configuration-name region1
user@switch2# mstp bridge-priority 32k
user@switch2# mstp interface ge-0/0/14 cost 1000
user@switch2# mstp interface ge-0/0/14 mode point-to-point
user@switch2# mstp interface ge-0/0/18 cost 1000
user@switch2# mstp interface ge-0/0/18 mode point-to-point
user@switch2# mstp msti 1 bridge-priority 32k
user@switch2# mstp msti 1 vlan [10 20]
user@switch2# mstp msti 2 bridge-priority 4k
user@switch2# mstp msti 2 vlan [30 40]
Check the results of the configuration:
user@switch2> show configuration
interfaces {
ge-0/0/14 {
unit 0 {
family ethernet-switching {
interface-mode trunk;
,
,
voice-vlan
employee-vlan
Chapter 4: Using MSTP
, and
guest-vlan
camera-vlan
:
89
Need help?
Do you have a question about the EX9200 and is the answer not in the manual?
Questions and answers