cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
348
Views
0
Helpful
3
Replies

what is the purpose of this command "spanning-tree vlan 10,92 cost 10"

CCDECCDE9
Level 1
Level 1

interface GigabitEthernet0/1

switchport trunk encapsulation dot1q

switchport trunk native vlan 92

switchport trunk allowed vlan 10,92

switchport mode trunk

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape 10 0 0 0

queue-set 2

mls qos trust cos

auto qos voip trust

!

interface GigabitEthernet0/2

!

interface GigabitEthernet0/3

!

interface GigabitEthernet0/4

switchport trunk encapsulation dot1q

switchport trunk native vlan 92

switchport trunk allowed vlan 10,92

switchport mode trunk

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape 10 0 0 0

queue-set 2

mls qos trust cos

auto qos voip trust

spanning-tree vlan 10,92 cost 10

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello,

>> spanning-tree vlan 10,92 cost 10

it modifies (increases) the STP cost for vlans 10 and 92 from default value to 10

These two vlans are also the only two vlans permitted on this L2 trunk.

Hope to help

Giuseppe

if you see the config,both the interfaces have same config except this line...what does this mean ?

Hello,

that int gi0/1 the one without the STP cost command would be chosen as root bridge for vlans 10,92 if both links receive equal cost STP BPDU because cost to root bridge is calculated summing to cost in received BPDU the cost of the port where it is received.

So it is likely that G0/4 should act as backup path to root bridge.

if local switch is root bridge for vlans 10,92 there is no practical difference.

Hope to help

Giuseppe

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card