Configuration of STP and its parameters

Configuration of STP and its parameters

 

1. To configure spanning-tree parameters on a per VLAN basis

Command:

spanning-tree <vlan-range> { { [ forward-time <seconds> ] } | { [ hello-time <seconds> ] } | { [ max-age <seconds> ] } | { [ priority <value> ] } } 

To disable- 
no spanning-tree <vlan-range> { [ forward-time ] | [ hello-time ] | [ max-age ] | [ priority ] } 

 

2. To Configure interface-specific BPDU filter parameters

Command:

spanning-tree bpdufilter { enable | disable } 

3. To Configure spanning-tree cost on an interface

Command:  

spanning-tree cost <value> 

 

4. To Configure spanning-tree global-level BPDU filter

 

Command:

spanning-tree edge-port bpdufilter default 

5. To Configure spanning-tree on an interface

Command

spanning-tree enable 

6. To Configure the spanning-tree forward delay time

Command:

spanning-tree forward-time <seconds> 

7. To Configure the spanning-tree root guard timeout

Command:

spanning-tree guard root { timeout <value> } 

8. To Configure interface-specific guard parameters

Command:

spanning-tree guard <guard> 

9. To Configure the spanning-tree hello time value

Command:

spanning-tree hello-time <seconds> 

10. To Configure the global spanning-tree mode for the device

Command:

spanning-tree mode { [ pvst ] | [ rapid-pvst ] | [ mst ] } 

11. To Configure the spanning-tree max-age time value 

Command:

spanning-tree max-age <seconds> 

 

12. To Configure spanning-tree link-type on an interface

 

Command: 

spanning-tree link-type { point-to-point | shared } 


    • Related Articles

    • Management Interface Configuration (SONiC)

      Configure the management interface (eth0) for network administration in SONiC. Default Configuration: By default, eth0 uses DHCP to dynamically obtain an IP address from a DHCP server. Static IP Configuration: Command Line: sudo config interface ip ...
    • BGP Basic Configuration Commands

      1. Enable BGP Activates BGP on the device with a specified Autonomous System number. Command: router bgp <AS-number> 2. Configure BGP Router ID Sets a unique identifier for the BGP router, usually an IP address to ensure consistent identification. ...
    • How to do Management interface Configuration?

      At root mode Enabling DHCP dhclient eth0 Manual ip configuration config interface ip add eth0 ipaddress/subnetmask gateway Example:-config interface ip add eth0 192.168.1.1/24 192.168.1.100
    • DHCP Snooping configuration on Broadcom Sonic

      Enabling DHCP Snooping Command: ip dhcp snooping This command enables DHCP Snooping globally on the device, helping monitor and block unauthorized DHCP servers. Disable DHCP snooping sonic-cli# configure terminal sonic-cli(config)# no ip dhcp ...
    • NTP Configuration

      NTP is crucial for synchronizing the time across all devices within a network. NTP plays a pivotal role in ensuring that all network components maintain accurate time settings which is essential for activities like logging, security protocols and ...