Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

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

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
Hall of Fame Super Silver

Re: what is the purpose of this command "spanning-tree vlan 10,9

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

New Member

Re: what is the purpose of this command "spanning-tree vlan 10,9

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

Hall of Fame Super Silver

Re: what is the purpose of this command "spanning-tree vlan 10,9

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

126
Views
0
Helpful
3
Replies