You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: L2/STP/SONiC PVST FDS.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,10 +362,12 @@ This command allows enabling the spanning tree mode for the device.
362
362
**config spanning_tree {enable|disable} {pvst}**
363
363
364
364
Note:
365
-
1) When global pvst mode is enabled, by default spanning tree will be enabled on the first 255 VLANs, for rest of the VLAN spanning tree will be disabled.
366
-
2) When multiple spanning-tree modes are supported, only one mode can be enabled at any given point of time.
367
-
368
-
365
+
1) When global PVST or RPVST mode is enabled,
366
+
1. If total number of VLANs in the system is less than or equal to "MAX_STP_INSTANCES".
367
+
- Enable spanning tree on all the VLANs in the system,
368
+
2. If total number of VLANs in the system is greater than "MAX_STP_INSTANCES".
369
+
- Throw an error
370
+
2) Only one mode can be enabled at any given point of time.
369
371
370
372
### 3.6.2.1.2 Per VLAN spanning-tree
371
373
This command allows enabling or disabling spanning-tree on a VLAN.
@@ -702,11 +704,11 @@ This section provides the industry standard CLIs that will be supported in the 2
@@ -266,6 +266,12 @@ Use the no form of this command to return to the default setting.
266
266
267
267
**no spanning-tree mode**
268
268
269
+
Eg:
270
+
```
271
+
spanning-tree mode pvst
272
+
no spanning-tree mode
273
+
```
274
+
269
275
**Syntax Description:**
270
276
271
277
| Keyword | Description |
@@ -278,43 +284,58 @@ Use the no form of this command to return to the default setting.
278
284
**Command Mode**: Global Config
279
285
280
286
Note:
281
-
1) When global PVST or RPVST mode is enabled, by default, spanning tree will be enabled on the first 255 VLANs. For rest of the VLANs, spanning tree is disabled.
282
-
The 255 VLANs are selected in the following order:
283
-
1. If spanning tree instances are configured first followed by VLANs, configuration order is used to count the first 255 spanning tree instances.
284
-
2. If VLANs are configured first followed by spanning tree instances, then VLANs are sorted by VLAN Id and first 255 VLAN Ids are used.
285
287
288
+
1) When global PVST or RPVST mode is enabled,
289
+
1. If total number of VLANs in the system is less than or equal to "MAX_STP_INSTANCES".
290
+
- Enable spanning tree on all the VLANs in the system,
291
+
2. If total number of VLANs in the system is greater than "MAX_STP_INSTANCES".
292
+
- Throw an error
286
293
2) Only one mode can be enabled at any given point of time.
287
294
288
-
289
295
#### 3.6.2.1.2 Per VLAN spanning-tree ####
290
296
291
297
This command allows enabling or disabling spanning-tree on a VLAN. Use this command to disable or enable PVST / RPVST+ on a VLAN. Changing the PVST+ / RPVST+ state in a VLAN affects only that VLAN. This command enables PVST+ / RPVST+ for all ports in a VLAN.
292
298
293
-
Use the no form of this command to return to the default setting.
299
+
Use the no form of this command to disable STP for a VLAN.
| vlan <vlan-id> | Configure spanning-tree information for the given VLAN. User can specify a single VLAN ID, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094. |
316
+
| vlan <vlan-id/vlan-range> | Configure spanning-tree information for the given VLAN. User can specify a single VLAN ID, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094. |
304
317
305
318
**Default**: Spanning tree is enabled on all VLANs subject to scaling limits.
no spanning-tree vlan 75-90,200,1100-1150 priority
422
+
```
372
423
373
424
**Syntax description**:
374
425
@@ -385,10 +436,13 @@ This command allows configuring the bridge priority in increments of 4096 (defau
385
436
This command allows configuring the loop guard on all the ports.
386
437
387
438
By default, when spanning-tree stops receiving the BPDUs on a blocking port, it transitions to forwarding state which can result in a loop in the network. Loop guard feature when enabled, avoids this transition of non-designated ports to forwarding state and instead moves the port to a loop inconsistent state where the port continues to block the traffic to avoid the loop.
439
+
Use the no form of this command to disable loopguard by default on all the ports.
440
+
441
+
Use the no form of this command to disable loopguard by default on all the ports.
388
442
389
443
**spanning-tree loopguard default**
390
444
391
-
**no spanning-tree loopguard default**
445
+
**no spanning-tree loopguard default**
392
446
393
447
**Syntax description**:
394
448
@@ -408,10 +462,18 @@ Below configurations allow STP parameters to be configured on per VLAN, interfac
408
462
409
463
This command allows to configure the port level cost value for a VLAN, range 1 - 200000000.
410
464
411
-
**spanning-tree [vlan <vlan-id>] cost <value\>**
465
+
Use the no form of this command to return to the default setting.
no spanning-tree vlan 75-90,200,1100-1150 port-priority
514
+
```
446
515
447
516
**Syntax description**:
448
517
@@ -460,9 +529,9 @@ This command allows to configure the port level priority value for a VLAN.
460
529
461
530
This command allows enabling or disabling of STP on an interface.
462
531
463
-
**spanning-tree enable**
532
+
**spanning-tree enable**
464
533
465
-
**no spanning-tree enable**
534
+
**no spanning-tree enable**
466
535
467
536
**Syntax description**:
468
537
This command has no arguments or keywords.
@@ -475,9 +544,9 @@ This command has no arguments or keywords.
475
544
476
545
Can be set to enabled or disabled. The port becomes an edge port in the domain when set to enabled. Enabling edge port transitions the port quickly to spanning tree forwarding state without passing through blocking or learning states.
477
546
478
-
**spanning-tree port type edge**
547
+
**spanning-tree port type edge**
479
548
480
-
**no spanning-tree port type**
549
+
**no spanning-tree port type**
481
550
482
551
**Syntax description**:
483
552
@@ -539,13 +608,13 @@ This command allows configuring loop guard or root guard on an interface.
539
608
540
609
Display spanning-tree information on the given vlan.
| vlan <vlan-id> | Display spanning-tree information for the given VLAN. User can specify a single VLAN ID, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094. |
617
+
| vlan <vlan-id/vlan-range> | Display spanning-tree information for the given VLAN. User can specify a single VLAN ID, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094. |
| vlan <vlan-id> | Display spanning-tree information for the given VLAN. User can specify a single VLAN ID, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094. |
655
+
| vlan <vlan-id/vlan-range> | Display spanning-tree information for the given VLAN. User can specify a single VLAN ID, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094. |
0 commit comments