HPE Aruba Networking & ProVision-based
1825805 Members
3570 Online
109687 Solutions
New Discussion

Re: Correct STP and LACP setup for Trunks

 
jerick70
Visitor

Correct STP and LACP setup for Trunks

Hi,

 

I have a small network with 1 Procurve 3500yl-48G as the main switch, and 2 Procurve 2810-48G switches as edge switches.  They are connected via 2 trunks.  I am seeing large amounts of retransmits while capturing packets.  I think I may be seeing a STP loop due to incorrect STP settings.  I am not very familiar with Procurve switches so I need a little bit of help with my setup.  What are the correct settings and commands for STP and LACP on the trunks?  I can post my configs if you would like. 

 

Thanks in advanced

7 REPLIES 7
sm-noc
Advisor

Re: Correct STP and LACP setup for Trunks

Hi, you should elect 1 primary root and secondary root for your network, usually, thr primary root is your core and the secondary is your mdf, for the link-aggregate, I normally used manual link-aggregation, so the the laink-aggregate group is already ampped on the port/s. Please send your config so I can check what should be done

jerick70
Visitor

Re: Correct STP and LACP setup for Trunks

Hi sm-noc,

 

I have 3 switches total on this network. 

 

Here are my configs:

 

3500yl -
; J8693A Configuration Editor; Created on release #K.13.09

hostname "XXXXXXXX"
snmp-server contact "XXXXXXXX"
snmp-server location "XXXXXXX"
time timezone -420
time daylight-time-rule Continental-US-and-Canada
web-management ssl
no telnet-server
module 1 type J86yyA
module 2 type J86xxA
interface 22
   name "XXXXXX"
exit
interface 24
   name "XXXXXX"
   lacp Active
exit
interface 26
   name "XXXXXX"
   lacp Active
exit
interface 42
   name "XXXXXXX"
   speed-duplex 100-full
exit
trunk 47-48 Trk1 Trunk
trunk 45-46 Trk2 Trunk

ip default-gateway XXX.XXX.XXX.XXX
ip routing
timesync sntp
sntp unicast
snmp-server community "public" Unrestricted
snmp-server host XXX.XXX.XXX.XXX "public"
vlan 1
   name "DEFAULT_VLAN"
   untagged 1-44,Trk1-Trk2
   ip address XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
   ip igmp high-priority-forward
   exit
mirror 1 port 22
sflow 1 destination XXX.XXX.XXX.XXXX
sflow 1 sampling 1-21 60
sntp server priority 1 XXX.XXX.XXX.XXX
ip route XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
ip route XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
interface 1
   mdix-mode mdix
   exit
interface 2
   mdix-mode mdix
   exit
interface 3
   mdix-mode mdix
   exit
interface 4
   mdix-mode mdix
   exit
interface 5
   mdix-mode mdix
   exit
interface 6
   mdix-mode mdix
   exit
interface 7
   mdix-mode mdix
   exit
interface 8
   mdix-mode mdix
   exit
interface 9
   mdix-mode mdix
   exit
interface 10
   mdix-mode mdix
   exit
interface 11
   mdix-mode mdix
   exit
interface 12
   mdix-mode mdix
   exit
interface 13
   mdix-mode mdix
   exit
interface 14
   mdix-mode mdix
   exit
interface 15
   mdix-mode mdix
   exit
interface 16
   mdix-mode mdix
   exit
interface 17
   mdix-mode mdix
   exit
interface 18
   mdix-mode mdix
   exit
interface 19
   mdix-mode mdix
   exit
interface 20
   mdix-mode mdix
   exit
interface 21
   mdix-mode mdix
   exit
interface 22
   mdix-mode mdix
   exit
interface 23
   mdix-mode mdix
   exit
interface 24
   mdix-mode mdix
   exit
interface 25
   mdix-mode mdix
   exit
interface 26
   mdix-mode mdix
   exit
interface 27
   mdix-mode mdix
   exit
interface 28
   mdix-mode mdix
   exit
interface 29
   mdix-mode mdix
   exit
interface 30
   mdix-mode mdix
   exit
interface 31
   mdix-mode mdix
   exit
interface 32
   mdix-mode mdix
   exit
interface 33
   mdix-mode mdix
   exit
interface 34
   mdix-mode mdix
   exit
interface 35
   mdix-mode mdix
   exit
interface 36
   mdix-mode mdix
   exit
interface 37
   mdix-mode mdix
   exit
interface 38
   mdix-mode mdix
   exit
interface 39
   mdix-mode mdix
   exit
interface 40
   mdix-mode mdix
   exit
interface 41
   mdix-mode mdix
   exit
interface 42
   mdix-mode mdix
   exit
interface 43
   mdix-mode mdix
   exit
interface 44
   mdix-mode mdix
   exit
interface 45
   mdix-mode mdix
   exit
interface 46
   mdix-mode mdix
   exit
interface 47
   mdix-mode mdix
   exit
interface 48
   mdix-mode mdix
   exit
spanning-tree
spanning-tree Trk1 priority 4
spanning-tree Trk2 priority 4
spanning-tree legacy-path-cost
spanning-tree priority 2 force-version STP-compatible
vlan 1
   monitor all Both mirror 1
   exit
no tftp client
password manager
password operator


-2810 - 1

; J9022A Configuration Editor; Created on release #N.11.08

hostname "XXXXXXX"
snmp-server contact "XXXXXXXX"
snmp-server location "XXXXXXXX"
time timezone -XXX
time daylight-time-rule Continental-US-and-Canada
no telnet-server
trunk 47-48 Trk2 Trunk
ip default-gateway XXX.XXX.XXX.XXX
sntp server XXX.XXX.XXX.XXX
timesync sntp
sntp unicast
snmp-server community "public" Unrestricted
snmp-server host XXX.XXX.XXX.XXX "public"
snmp-server host XXX.XXX.XXX.XXX "public"
vlan 1
   name "DEFAULT_VLAN"
   untagged 1-46,Trk2
   ip address XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
   ip igmp high-priority-forward
   exit
ip authorized-managers XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
ip authorized-managers XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
interface 1
   mdix-mode mdix
   exit
interface 2
   mdix-mode mdix
   exit
interface 3
   mdix-mode mdix
   exit
interface 4
   mdix-mode mdix
   exit
interface 5
   mdix-mode mdix
   exit
interface 6
   mdix-mode mdix
   exit
interface 7
   mdix-mode mdix
   exit
interface 8
   mdix-mode mdix
   exit
interface 9
   mdix-mode mdix
   exit
interface 10
   mdix-mode mdix
   exit
interface 11
   mdix-mode mdix
   exit
interface 12
   mdix-mode mdix
   exit
interface 13
   mdix-mode mdix
   exit
interface 14
   mdix-mode mdix
   exit
interface 15
   mdix-mode mdix
   exit
interface 16
   mdix-mode mdix
   exit
interface 17
   mdix-mode mdix
   exit
interface 18
   mdix-mode mdix
   exit
interface 19
   mdix-mode mdix
   exit
interface 20
   mdix-mode mdix
   exit
interface 21
   mdix-mode mdix
   exit
interface 22
   mdix-mode mdix
   exit
interface 23
   mdix-mode mdix
   exit
interface 24
   mdix-mode mdix
   exit
interface 25
   mdix-mode mdix
   exit
interface 26
   mdix-mode mdix
   exit
interface 27
   mdix-mode mdix
   exit
interface 28
   mdix-mode mdix
   exit
interface 29
   mdix-mode mdix
   exit
interface 30
   mdix-mode mdix
   exit
interface 31
   mdix-mode mdix
   exit
interface 32
   mdix-mode mdix
   exit
interface 33
   mdix-mode mdix
   exit
interface 34
   mdix-mode mdix
   exit
interface 35
   mdix-mode mdix
   exit
interface 36
   mdix-mode mdix
   exit
interface 37
   mdix-mode mdix
   exit
interface 38
   mdix-mode mdix
   exit
interface 39
   mdix-mode mdix
   exit
interface 40
   mdix-mode mdix
   exit
interface 41
   mdix-mode mdix
   exit
interface 42
   mdix-mode mdix
   exit
interface 43
   mdix-mode mdix
   exit
interface 44
   mdix-mode mdix
   exit
interface 45
   mdix-mode mdix
   exit
interface 46
   mdix-mode mdix
   exit
interface 47
   mdix-mode mdix
   exit
interface 48
   mdix-mode mdix
   exit
spanning-tree
spanning-tree Trk2 priority 4
spanning-tree legacy-path-cost
spanning-tree priority 2 force-version STP-compatible
ip ssh
ip ssh filetransfer
no tftp client
no tftp server
password manager
password operator


- 2810 -2

; J9022A Configuration Editor; Created on release #N.11.09

hostname "XXXXXXXXX"
snmp-server contact "XXXXXXXXX"
snmp-server location "XXXXXXXXXX"
time timezone -XXX
time daylight-time-rule Continental-US-and-Canada
no telnet-server
interface 17
   name "XXXX"
   speed-duplex auto-100
exit
trunk 47-48 Trk1 Trunk
ip default-gateway XXX.XXX.XXX.XXX
sntp server XXX.XXX.XXX.XXX
timesync sntp
sntp unicast
snmp-server community "public" Unrestricted
snmp-server host XXX.XXX.XXX.XXX "public"
vlan 1
   name "DEFAULT_VLAN"
   untagged 1-46,Trk1
   ip address XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
   ip igmp high-priority-forward
   exit
interface 1
   mdix-mode mdix
   exit
interface 2
   mdix-mode mdix
   exit
interface 3
   mdix-mode mdix
   exit
interface 4
   mdix-mode mdix
   exit
interface 5
   mdix-mode mdix
   exit
interface 6
   mdix-mode mdix
   exit
interface 7
   mdix-mode mdix
   exit
interface 8
   mdix-mode mdix
   exit
interface 9
   mdix-mode mdix
   exit
interface 10
   mdix-mode mdix
   exit
interface 11
   mdix-mode mdix
   exit
interface 12
   mdix-mode mdix
   exit
interface 13
   mdix-mode mdix
   exit
interface 14
   mdix-mode mdix
   exit
interface 15
   mdix-mode mdix
   exit
interface 16
   mdix-mode mdix
   exit
interface 17
   mdix-mode mdix
   exit
interface 18
   mdix-mode mdix
   exit
interface 19
   mdix-mode mdix
   exit
interface 20
   mdix-mode mdix
   exit
interface 21
   mdix-mode mdix
   exit
interface 22
   mdix-mode mdix
   exit
interface 23
   mdix-mode mdix
   exit
interface 24
   mdix-mode mdix
   exit
interface 25
   mdix-mode mdix
   exit
interface 26
   mdix-mode mdix
   exit
interface 27
   mdix-mode mdix
   exit
interface 28
   mdix-mode mdix
   exit
interface 29
   mdix-mode mdix
   exit
interface 30
   mdix-mode mdix
   exit
interface 31
   mdix-mode mdix
   exit
interface 32
   mdix-mode mdix
   exit
interface 33
   mdix-mode mdix
   exit
interface 34
   mdix-mode mdix
   exit
interface 35
   mdix-mode mdix
   exit
interface 36
   mdix-mode mdix
   exit
interface 37
   mdix-mode mdix
   exit
interface 38
   mdix-mode mdix
   exit
interface 39
   mdix-mode mdix
   exit
interface 40
   mdix-mode mdix
   exit
interface 41
   mdix-mode mdix
   exit
interface 42
   mdix-mode mdix
   exit
interface 43
   mdix-mode mdix
   exit
interface 44
   mdix-mode mdix
   exit
interface 45
   mdix-mode mdix
   exit
interface 46
   mdix-mode mdix
   exit
interface 47
   mdix-mode mdix
   exit
interface 48
   mdix-mode mdix
   exit
spanning-tree
spanning-tree Trk1 priority 4
spanning-tree legacy-path-cost
spanning-tree priority 2 force-version STP-compatible
ip ssh
no tftp client
password manager
password operator

Helper
Valued Contributor

Re: Correct STP and LACP setup for Trunks

Hi,

 

Firstly try this :

 

=3500=

spanning-tree force-version rstp-operation (it is compatible with old version like stp-compatible switchs)

spanning-tree priority 0 (this is the root switch)

no spanning-tree legacy-path-cost (if legacy-path-cost is not use for backward compatibility)

 

=-2810 - 1=

spanning-tree force-version rstp-operation (it is compatible with old version like stp-compatible switchs)

no spanning-tree legacy-path-cost (if legacy-path-cost is not use for backward compatibility)


=-2810 - 2=

spanning-tree force-version rstp-operation (it is compatible with old version like stp-compatible switchs)

no spanning-tree legacy-path-cost (if legacy-path-cost is not use for backward compatibility)

 

Bye.


 

jerick70
Visitor

Re: Correct STP and LACP setup for Trunks

Helper,

 

Thank you for your help.  I adjusted the settings and will let it run for a few days to see what happens. 

 

One question I have, I am getting CRC/Alignment Errors on a few of my ports.  Could this cause these errors I am seeing?

Helper
Valued Contributor

Re: Correct STP and LACP setup for Trunks

Hi,

 

In reply to your secondary question, it shouldn't. Take a look to the RMON Ethernet statistics, interface statistics or RMON Ethernet Error statistics to check for a wire issue, speed-duplex mismatch, bad NIC, drivers issue etc.

 

Bye.

JVos
New Member

Re: Correct STP and LACP setup for Trunks

Hi,

3 year later.... but still..

 

use for your trunks:

 

trunk 47-48 Trk1 LACP

trunk 45-46 Trk2 LACP

 

same on your edge switches ...

 

Also add flow-control to those interfaces.

 

Kind regards,

Jan

 

BGraham_1
Frequent Advisor

Re: Correct STP and LACP setup for Trunks

Jan,

 

Out of curiosity, why add flow control to these interfaces?

 

Thansk,

Bob