07-30-2023 01:02 AM
Hello,
I configured a Port-Channel in trunk mode with two physical ports on my switch.
In the PO5 if I add spanning-tree vlan 10,15 cost 100, this command is not duplicated on the member interfaces of the PO1 (Te1/1/1 and Te1/1/2).
interface Port-channel1
switchport
switchport trunk allowed vlan 10-15
switchport mode trunk
spanning-tree vlan 10,15 cost 100
!
interface TenGigabitEthernet1/1/1
description member of PO1
switchport
switchport trunk allowed vlan 10-15
switchport mode trunk
!
interface TenGigabitEthernet1/1/2
description member of PO1
switchport
switchport trunk allowed vlan 10-15
switchport mode trunk
Is this normal ?
Thanks
Solved! Go to Solution.
07-30-2023 07:51 AM
This is normal and expected behavior.
07-30-2023 02:08 AM
@sebastien3 hi normally, you need to configure settings on Port channel interface only. but in your question, you are mentioned about PO5 ?
07-30-2023 02:38 AM
Mistake... PO1 not PO5.
07-30-2023 02:15 AM - edited 07-30-2023 02:15 AM
Hello
Spanning-tree sees the port-channel as a single interface as such it will calculate the stp cost based on the multiple interfaces allocated to it, So if you manually apply an stp cost to the PC it should not append that cost its related physical interfaces.
07-30-2023 02:40 AM
So I need to enable this command on member interfaces (TE1/1/1 and TE1/1/2) in addition to port-channel1 ?
07-30-2023 04:22 AM
Hi @sebastien3
This is the expected behavior for Port-channel and spenning-tree and you dont need to add the config to the member interface. You can check on this Lab for CCNP for Cisco Academy as reference.
The spanning-tree sees the port-channel as one interface therefore will not treat each interface individually but as part of the channel.
"Verify the EtherChannel has formed by examining the output of the show etherchannel summary command. Also check the spanning tree status. You will see that the two interfaces are no longer referenced by Spanning Tree, but the port-channel is. Because there is only one (logical) trunk between D1 and D1, there are no Spanning Tree blocked ports."
07-30-2023 05:53 AM
Hello @sebastien3,
When you configure a Port-Channel, the logical interface (Port-Channel interface) acts as a single aggregated link that represents the bundled member interfaces. STP treats the Port-Channel as a single entity, and STP settings, such as the cost and VLAN assignments, are applied to the entire Port-Channel, not to its individual member interfaces.
This allows the Port-Channel to be treated as a single link for STP purposes, providing loop prevention and redundancy without the need to configure STP settings on each member interface separately. The individual member interfaces are essentially hidden from STP, and all STP-related decisions are made based on the logical Port-Channel.
07-30-2023 07:41 AM
Hello M02@rt37
So this is normal behavior. SPT cost must be configured on the Port-Channel and not on the physical interfaces... No bug or mishandling on the configuration.
07-30-2023 07:51 AM
This is normal and expected behavior.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide