Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HP Procurve Spanning tree config?

Status
Not open for further replies.

matthijsNL

Technical User
Apr 24, 2006
43
NL
Hello everybody,

I would like to configure a HP procurve for Spanning Tree.

1. I would have NO STP on access links (PC's). (Port fast
mode Cisco)
2. Only STP enabled on redundant Inter Switch Links (ISL's)

I'am experienced with Cisco and STP. Can somebody give me the command's to do this?

Kind regards Matthijs

 
For spanning tree it is:
(config)# span protocol-version stp
(config)# span

For RSTP it is:
(config)# span protocol-version rstp
(config)# span

I would recommend using RSTP.

Nice
 
Thank you for reaction!

I would like to use IEEE 802.1w RSTP.

But my quetstion is:
1. How do i configure access-links (No RSTP links: PC, printers etc. Cisco calls it Portfast)?
2. How do i configure redundant stp links?

Kind regards
Matthijs

 
RSTP By default all of the ports are treated as edge ports, cisco's implementation of port-fast was taken on in the RSTP protocol.

When an RSTP port sees BPDU arriving it understands that it is not an edge port and must take part in RSTP.

Redundant links are automatically configured due to lowest cost wins, if you want to keep all of the links open you can choose to use Multiple Instance Spanning (MSTP) or configure Routing (OSPF)

Nice
 
Ok thank you.

The only thing i've to do on our HP-switches is:

config)# span protocol-version rstp
(config)# span

Without any regard of timing problems etc.?
 
That's all you need to do.

What do you mean timing problems, if you are referring to the Blocking, Listening, Learning, Forwarding timers, I would suggest that you leave them as they are, any alteration of these timers can cause the network to become unstable.

Nice
 
I was refering to referring to the Blocking, Listening, Learning, Forwarding timers, yes.

But when i want to bundle links, what is the best method for this? I want 2 1 Gigabit fiber links bundle to 2 Gigabit total bandwidth?
 
Trunked links (HP Term for what cisco calls fastether channel) will operate from the perspective of RSTP as a single link.

Trunk the links, then add Vlan to the links.
 
Thank you!

What is difference with LACP?

Trunking is with Cisco "carrier of multiple VLAN's" across interswitch links. And for HP bonding i think.
 
The IEEE standard 802.3ad, also known as LACP, is based on Cisco’s Port Aggregation Protocol (PAgP). LACP was standardized to allow a switch to automatically recognize coterminous, full duplex, same-speed links between itself
and another LACP-compliant switch.

Although LACP can automatically recognize links that are capable of aggregation, the activation of an LACP trunk requires some configuration. You can’t simply connect four links between the same two switches and expect them to act as a trunk.

When using dynamic LACP, you must define the trunk on one side, which is known as the “active” side. The active side sends Bridge Protocol Data Units (BPDUs) across every link that has LACP defined statically.

When a switch receives BPDUs through multiple “passive” LACP ports that have the same system identifier, it knows that those ports are linked to the same switch.

If the links are the same speed, the switch sends BPDUs to the “active” partners on the other side of the links, and the two switches agree to load share across the group of links. Passive LACP ports only “speak” when “spoken” to; a passive LACP port sends BPDUs only after it has received BPDUs from a connected switch.

 
Ok super!

But what are the configuration commands (Two Procurve's 5406zl/J8697A)to bundle both links A1 and A2 witk RSTP enabled?

Switch 1:

hostname switch_1
module 1 type J8702A
module 2 type J8702A
vlan 1
name "DEFAULT_VLAN"
untagged A1-A24,B1-B24
ip address dhcp-bootp
exit
vlan 2
name "VLAN2"
ip address 192.168.2.254 255.255.255.0
tagged A1-A2
exit
spanning-tree
spanning-tree force-version RSTP-operation

Switch_2:

hostname switch_2
module 1 type J8702A
module 2 type J8702A
vlan 1
name "DEFAULT_VLAN"
untagged A1-A24,B1-B24
ip address dhcp-bootp
exit
vlan 2
name "VLAN2"
ip address 192.168.2.253 255.255.255.0
tagged A1-A2
exit
spanning-tree
spanning-tree force-version RSTP-operation


 
The command is:

(conf)#trunk A1,A2 trk1

The trunk configuration must be performed on both sides of the trunk before the redundant links are connected.

Port trunking has implications for VLAN configuration. Because aggregated ports cannot be configured individually for VLAN membership, the trunk must be added by name as a tagged member of any VLAN whose traffic it must carry.

The VLAN's must be added to the entity called 'Trk1'

 
Now i've:

hostname "HP-Boven"
module 1 type J8702A
module 2 type J8702A
trunk A1-A2 Trk1 Trunk
ip routing
snmp-server community "public" Unrestricted
vlan 1
name "DEFAULT_VLAN"
untagged A3-A24,B1-B24,Trk1
ip address dhcp-bootp
exit
vlan 2
name "VLAN2"
ip address 192.168.2.253 255.255.255.0
exit
vlan 3
name "VLAN3"
ip address 192.168.3.253 255.255.255.0
exit
spanning-tree
spanning-tree Trk1 priority 4
spanning-tree force-version RSTP-operation

and

hostname "HP-Onder""
module 1 type J8702A

module 2 type J8702A
trunk A1-A2 Trk1 Trunk
ip routing
snmp-server community "public" Unrestricted
vlan 1
name "DEFAULT_VLAN"
untagged A4-A24,B1-B24,Trk1
ip address dhcp-bootp
no untagged A3
exit
vlan 2
name "VLAN2"
untagged A3
ip address 192.168.2.254 255.255.255.0
exit
vlan 3
name "VLAN3"
ip address 192.168.3.254 255.255.255.0
exit
spanning-tree
spanning-tree Trk1 priority 4
spanning-tree force-version RSTP-operation

I've added the command trunk A1-A2 Trk1 Trunk.

I,am a user at HP-onder, port A3. First I could ping all the VLAN addresses but now it's not possible????
 
Add the correct VLAN's to 'trk1'

conf)#VLAN 1 trk1 untagged

conf)#VLAN 2 trk1 tagged

conf)#VLAN 3 trk1 tagged

do this on both sides

 
It works fine, thank you very much!!!!! I've now the following configurations. I've rouing between the VLAN's 2 and 3, see two config files.

What can I do anymore to optimize the two configurations?

hostname "HP-Onder"
module 1 type J8702A
module 2 type J8702A
trunk A1-A2 Trk1 Trunk

ip routing
snmp-server community "public" Unrestricted
vlan 1
name "DEFAULT_VLAN"
untagged B1-B24,Trk1
ip address dhcp-bootp
no untagged A3-A24
exit
vlan 2
name "VLAN2"
untagged A3-A24
ip address 192.168.2.254 255.255.255.0
tagged Trk1
exit
vlan 3
name "VLAN3"
ip address 192.168.3.254 255.255.255.0
tagged Trk1
exit
spanning-tree
spanning-tree Trk1 priority 4
spanning-tree force-version RSTP-operation


hostname "HP-Boven"
module 1 type J8702A
module 2 type J87
trunk A1-A2 Trk1 Trunk

ip routing
snmp-server community "public" Unrestricted
vlan 1
name "DEFAULT_VLAN"
untagged B1-B24,Trk1
ip address dhcp-bootp
no untagged A3-A24
exit
vlan 2
name "VLAN2"
untagged A3-A24
ip address 192.168.2.253 255.255.255.0
tagged Trk1
exit
vlan 3
name "VLAN3"
ip address 192.168.3.253 255.255.255.0
tagged Trk1
exit
spanning-tree
spanning-tree Trk1 priority 4
spanning-tree force-version RSTP-operation
 
From your config it does not look like you are putting the P.C's into the back of the phones. Are you using one port per device?
 
I've the configuration working!

VLAN 1 = management
VLAN 2 = client 2 LAN
VLAN 3 = client 3 LAN

Basic inter-VLAN routing is working.

But in the future i'will use VOIP, so i asked you this question.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top