08-22-2024 01:00 AM - edited 08-22-2024 01:01 AM
I have the below command.
The switch port type is P2p. It is not P2p edge. Because of that this port is part of STP topollogy change. Which means whenever the switch port goes up/down STP topology change notifications are sent.
This port server is connected.
So I dont want any STP topology change notifications to be sent. Any configuration change I can make to achive this. (By changing to access port, this can be stopped, but I need this port to be trunk)
-------------------------------------------------------------------------------------------------------
interface GigabitEthernet1/0/1
switchport trunk allowed vlan 630
switchport mode trunk
arp timeout 300
spanning-tree portfast
spanning-tree bpduguard enable
end
SW01#show spanning-tree int gigabitEthernet 1/0/1
Mst Instance Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
MST0 Desg FWD 20000 128.2 P2p
08-22-2024 01:37 AM
Hello @RS19 ,
try to use
spanning-tree portfast edge [trunk]
in interface mode
see
Hope to help
Giuseppe
08-22-2024 01:45 AM
Is spanning-tree portfast edge trunk is gobal configuration oir interface configuration command.
What I can see is that it is global configuration. I am looking for interface configuration for that particular interface.
08-22-2024 01:47 AM - edited 08-22-2024 01:49 AM
Hello @RS19 ,
I would use in interface mode it is in the same link I have posted try to use under the interface of interest
depending on IOS version use
spanning-tree postfast edge
or
spanning-tree portfast edge trunk
one of these two variants should work.
Hope to help
Giuseppe
08-22-2024 01:48 AM
sorry missed it
08-22-2024 01:52 AM
Below are the configurations.
Gi1/0/2 - Access port. So the type is P2p Edge
Gu1/0/1 - Trunk port, So the type is P2p.
With the above command will it be changed to P2p trunk ?
SW1#show spanning-tree int gigabitEthernet 1/0/2 (Acess Port)
Mst Instance Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
MST0 Desg FWD 20000 128.1 P2p Edge
SW1#show spanning-tree int gigabitEthernet 1/0/1 (Trunk PorT)
Mst Instance Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
MST0 Desg FWD 20000 128.2 P2p
08-22-2024 01:56 AM - edited 08-22-2024 01:58 AM
Hello @RS19 ,
with the proposed command the port will become P2P edge that is what you would like to achieve.
the trunk keyword refers only to the fact that you would like to enforce STP edge even if the port is configured and acting as a trunk.
This is my understanding
>> To enable PortFast edge on trunk ports, you must use the spanning-tree portfast edge trunk interface configuration command. The spanning-tree portfast edge command is not supported on trunk ports.
but these are notes of a specific release.
Hope to help
Giuseppe
08-22-2024 02:01 AM
Thanks. But I am confused with the last sentence saying not supported on trunk ports
>> To enable PortFast edge on trunk ports, you must use the spanning-tree portfast edge trunk interface configuration command. The spanning-tree portfast edge command is not supported on trunk ports.
08-22-2024 02:04 AM
Hello @RS19 ,
try the following command in interface mode:
spanning-tree portfast edge trunk
then check the spanning-tree for the port.
Hope to help
Giuseppe
08-22-2024 01:39 AM
Friend there are three type
So any one device connect to SW port and use full duplex is type p2p' any one or more devices connect to SW port abd use half duplex (like connect hub) is shared
Any portfast is edge
MHM
08-22-2024 01:52 AM
Which port effect by topology change?
Any port connect to host with or without portfast not effect.
Portfast only make stp state faster.
Ypu can make it faster by use portfast trunk
Spanning tree portfast trunk <<- under interface
MHM
08-22-2024 01:56 AM
If u see my above output, Gi1/0/2 is acces port which is P2p Edge. This port is connected to server. When this port goes up/down there no STP topology change.
Gi1/0/1 is trunk port which is P2p. (not Edge). This port is also connected to server. But when the port goes up/down there is topology changes and some STP topology change notfiications are sent which I want to avoid. Looking for the command.
08-22-2024 02:03 AM
Show spanning tree interface <trunk>×detail
Share this please let see if server send any bpdu or not
MHM
08-22-2024 02:20 AM
This is the output
Port 1 (GigabitEthernet1/0/1) of MST0 is designated forwarding
Port path cost 20000, Port priority 128, Port Identifier 128.2.
Designated root has priority 4096, address 001e.791d.c800
Designated bridge has priority 20480, address bc8d.1f61.4e00
Designated port id is 128.2, designated path cost 5000
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default, Internal
Bpdu guard is enabled
BPDU: sent 126280, received 0
08-22-2024 02:47 AM
Port 1 (GigabitEthernet1/0/1) of MST0 is designated forwarding
Port path cost 20000, Port priority 128, Port Identifier 128.2.
Designated root has priority 4096, address 001e.791d.c800
Designated bridge has priority 20480, address bc8d.1f61.4e00
Designated port id is 128.2, designated path cost 5000
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default, Internal
Bpdu guard is enabled
BPDU: sent 126280, received 0 <<- server dont send any bpdu so you can run both portfast and bpduguard
MHM
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