![Juniper JUNOS OS 10.3 - SOFTWARE Manual Download Page 1659](http://html.mh-extra.com/html/juniper/junos-os-10-3-software/junos-os-10-3-software_manual_20327931659.webp)
CLI Quick
Configuration
To quickly configure BPDU protection on Switch 2, copy the following commands and
paste them into the switch terminal window:
[edit]
set protocols rstp interface ge-0/0/5 edge
set protocols rstp interface ge-0/0/6 edge
set protocols rstp bpdu-block-on-edge
Step-by-Step
Procedure
To configure BPDU protection:
Configure interface
ge-0/0/5
and interface
ge-0/0/6
on Switch 2 as edge ports:
1.
[edit protocols rstp]
user@switch#
set interface ge-0/0/5
edge
user@switch#
set interface ge-0/0/6 edge
2.
Configure BPDU protection on all edge ports:
[edit protocols rstp]
user@switch#
set
bpdu-block-on-edge
Results
Check the results of the configuration:
user@switch> show configuration protocols rstp
interface ge-0/0/5.0 {
edge;
}
interface ge-0/0/6.0 {
edge;
}
bpdu-block-on-edge;
Verification
To confirm that the configuration is working properly:
•
Displaying the Interface State Before BPDU Protection Is Triggered on page 1563
•
Verifying That BPDU Protection is Working Correctly on page 1564
Displaying the Interface State Before BPDU Protection Is Triggered
Purpose
Before BPDUs are being received from the PCs connected to interface
ge-0/0/5
and
interface
ge-0/0/6
, confirm the interface state.
Action
Use the operational mode command:
user@switch>
show spanning-tree interface
Spanning tree interface parameters for instance 0
Interface Port ID Designated Designated Port State Role
port ID bridge ID Cost
ge-0/0/0.0 128:513 128:513 32768.0019e2503f00 20000 BLK DIS
ge-0/0/1.0 128:514 128:514 32768.0019e2503f00 20000 BLK DIS
ge-0/0/2.0 128:515 128:515 32768.0019e2503f00 20000 BLK DIS
ge-0/0/3.0 128:516 128:516 32768.0019e2503f00 20000 FWD DESG
ge-0/0/4.0 128:517 128:517 32768.0019e2503f00 20000 FWD DESG
ge-0/0/5.0 128:518 128:518 32768.0019e2503f00 20000 FWD DESG
1563
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 ...