cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1419
Views
17
Helpful
32
Replies

Spanning Tree - Type P2p

RS19
Level 4
Level 4

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 

32 Replies 32

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.

Hello @RS19 ,

spanning-tree portfast edge (interface configuration)

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

 

sorry missed it

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

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

 

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. 

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

 

Friend there are three type 

 

  • Point-to-Point – Any interface running at Full Duplex
  • Edge – All STP Portfast enabled interfaces
  • Shared – Interface running Half Duplex, or manually configured as Shared

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

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

 

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.

Show spanning tree interface <trunk>×detail

Share this please let see if server send any bpdu or not 

MHM

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

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

Review Cisco Networking for a $25 gift card