1753701 Members
5092 Online
108799 Solutions
New Discussion юеВ

Re: STP enable

 
Jvdv
Advisor

STP enable

Hello

I'm just trying to activate stp on a 5900 switch.

But apparently I have the wrong command (please enable)

Thanks for your help

14 REPLIES 14
Jvdv
Advisor

Re: STP enable

Command stp enable .. sorry

Ivan_B
HPE Pro

Re: STP enable

Hi @Jvdv !

system-view
 stp global enable

should enable STP, by default it will be MSTP.

I am an HPE employee

Accept or Kudo

Jvdv
Advisor

Re: STP enable

Thank you for your reply.
Here is the feedback I have after this order


[SW_AVLCT_A]stp global enable
[SW_AVLCT_A]save
The current configuration will be written to the device. Are you sure? [Y/N]:Y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:Y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
Slot 2:
Save next configuration file successfully.
[SW_AVLCT_A]inter
[SW_AVLCT_A]interface g
[SW_AVLCT_A]interface GigabitEthernet 1/0/1
[SW_AVLCT_A-GigabitEthernet1/0/1]stp edged-port enable
^
% Too many parameters found at '^' position

Ivan_B
HPE Pro

Re: STP enable

The command for setting STP edge port is 'stp edged-port', I don't think you need 'enable' after that.
If that doesn't work, check if you don't have 'port link-mode route' command under the interface. If you do, the port is routed port and of course STP doesn't include it into calculation and STP commands are not available. If the port is 'port link-mode bridge', then post output from following commands for further investigation:

display version
display curr int gig1/0/1
display int gig1/0/1
display stp

 

 

I am an HPE employee

Accept or Kudo

Jvdv
Advisor

Re: STP enable

The command works but when I go to the port conf it is still not in enable.

I also give you the result of the rest of the commands.

thank you

 

 

 

 


With command

[SW_AVLCT_A]display version
HP Comware Software, Version 7.1.045, Release 2308P01
Copyright (c) 2010-2014 Hewlett-Packard Development Company, L.P.
HP 5900AF-48G-4XG-2QSFP+ Switch uptime is 0 weeks, 0 days, 3 hours, 25 minutes
Last reboot reason : Power on

Boot image: flash:/5900_5920-cmw710-boot-r2308p01.bin
Boot image version: 7.1.045P11, Release 2308P01
Compiled Mar 06 2014 13:01:04
System image: flash:/5900_5920-cmw710-system-r2308p01.bin
System image version: 7.1.045, Release 2308P01
Compiled Mar 06 2014 13:01:15

Slot 1
HP 5900AF-48G-4XG-2QSFP+ Switch with 2 Processors
Last reboot reason : Power on
2048M bytes SDRAM
4M bytes Nor Flash Memory
512M bytes Nand Flash Memory
Config Register points to Nand Flash

Hardware Version is Ver.A
CPLD Version is 001
BootRom Version is 130
[SubSlot 0] 48GE+4SFP Plus+2QSFP Plus Hardware Version is Ver.A

Slot 2
HP 5900AF-48G-4XG-2QSFP+ Switch with 2 Processors
Last reboot reason : Power on
2048M bytes SDRAM
4M bytes Nor Flash Memory
512M bytes Nand Flash Memory
Config Register points to Nand Flash

Hardware Version is Ver.A
CPLD Version is 001
BootRom Version is 130
[SubSlot 0] 48GE+4SFP Plus+2QSFP Plus Hardware Version is Ver.A

interface GigabitEthernet1/0/1
port link-mode bridge
description User
port link-type trunk
port trunk permit vlan 1 3 130
port trunk pvid vlan 130
storm-constrain broadcast pps 50 49
storm-constrain multicast pps 50 49
storm-constrain control block
stp edged-port

 


[SW_AVLCT_A]display interface GigabitEthernet 1/0/1
GigabitEthernet1/0/1
Current state: DOWN
Line protocol state: DOWN
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 7848-59f0-1d3c
Description: User
Bandwidth: 1000000kbps
Loopback is not set
Media type is twisted pair
Port hardware type is 1000_BASE_T
Unknown-speed mode, unknown-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 10000
Allow jumbo frame to pass
Broadcast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Unicast MAX-ratio: 100%
PVID: 130
Mdi type: automdix
Port link-type: trunk
VLAN Passing: 1(default vlan), 3, 130
VLAN permitted: 1(default vlan), 3, 130
Trunk port encapsulation: IEEE 802.1q
Port priority: 0
Last clearing of counters: Never
Peak value of input: 0 bytes/sec, at 2011-01-01 00:01:14
Peak value of output: 0 bytes/sec, at 2011-01-01 00:01:14
Last 300 seconds input: 0 packets/sec 0 bytes/sec -%
Last 300 seconds output: 0 packets/sec 0 bytes/sec -%
Input (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Input (normal): 0 packets, - bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Input: 0 input errors, 0 runts, 0 giants, 0 throttles
0 CRC, 0 frame, - overruns, 0 aborts
- ignored, - parity errors
Output (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Output (normal): 0 packets, - bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Output: 0 output errors, - underruns, - buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
0 lost carrier, - no carrier


[SW_AVLCT_A]display stp
-------[CIST Global Info][Mode MSTP]-------
Bridge ID : 0.7848-59f0-1d13
Bridge times : Hello 2s MaxAge 20s FwdDelay 15s MaxHops 20
Root ID/ERPC : 0.7848-59f0-1d13, 0
RegRoot ID/IRPC : 0.7848-59f0-1d13, 0
RootPort ID : 0.0
BPDU-Protection : Enabled
Bridge Config-
Digest-Snooping : Disabled
Root type : Primary root
TC or TCN received : 0
Time since last TC : 0 days 3h:27m:27s

----[Port1(GigabitEthernet1/0/1)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.1
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.1
Port edged : Config=enabled, Active=enabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : BPDU
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port2(GigabitEthernet1/0/2)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.2
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.2
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port3(GigabitEthernet1/0/3)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.3
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.3
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port4(GigabitEthernet1/0/4)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.4
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.4
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port5(GigabitEthernet1/0/5)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.5
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.5
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port6(GigabitEthernet1/0/6)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.6
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.6
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port7(GigabitEthernet1/0/7)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.7
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.7
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port8(GigabitEthernet1/0/8)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.8
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.8
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port9(GigabitEthernet1/0/9)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.9
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.9
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port10(GigabitEthernet1/0/10)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.10
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.10
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port11(GigabitEthernet1/0/11)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.11
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.11
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port12(GigabitEthernet1/0/12)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.12
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.12
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port13(GigabitEthernet1/0/13)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.13
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.13
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port14(GigabitEthernet1/0/14)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.14
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.14
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port15(GigabitEthernet1/0/15)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.15
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.15
Port edged : Config=disabled, Active=disabled
Point-to-Point : Config=auto, Active=false
Transmit limit : 10 packets/hello-time
TC-Restriction : Disabled
Role-Restriction : Disabled
Protection type : NONE
MST BPDU format : Config=auto, Active=802.1s
Port Config-
Digest-Snooping : Disabled
Rapid transition : False
Num of VLANs mapped : 1
Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 0s RemHops 20
BPDU sent : 0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU received : 0
TCN: 0, Config: 0, RST: 0, MST: 0

----[Port16(GigabitEthernet1/0/16)][DOWN]----

 

 

 

Ivan_B
HPE Pro

Re: STP enable

I am afraid you have wrong expectation if you think the 'stp edged-port' command in the current-config will turn to 'stp edged-port enable'. It doesn't work this way. If you see 'stp edged-port' in the configuration, it means the port IS edge port. If you want to disable this feature the command is 'undo stp edged-port' and after applying it you will see how 'stp edged-port' line disappear from the interface's configuration.

So if the 'stp edged-port' is visible under the interface's configuration, STP Edge is enabled. If it's not visible, it's disabled.

At this moment Gig1/0/1 IS edge port:

---[Port1(GigabitEthernet1/0/1)][DOWN]----
Port protocol : Enabled
Port role : Disabled Port
Port ID : 128.1
Port cost(Legacy) : Config=auto, Active=200000
Desg.bridge/port : 0.7848-59f0-1d13, 128.1
Port edged : Config=enabled, Active=enabled
Point-to-Point : Config=auto, Active=false

 

I am an HPE employee

Accept or Kudo

Jvdv
Advisor

Re: STP enable

ok thank you for your clarification.

Last question.

How to add a routing table of this type.

Thank you

 

 

0.0.0.0/0 Static 60 0 10.8.133.254 Vlan133
10.8.133.0/24 Direct 0 0 10.8.133.17 Vlan133
10.8.133.17/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0

Ivan_B
HPE Pro

Re: STP enable

If your task is to configure static route and Vlan-interface, so the routing table to become identical to the output provided, then you can follow this script:

system-view
vlan 133
 quit
interface Vlan-interface133
 no shutdown
 ip address 10.8.133.17 24
 quit
ip route-static 0.0.0.0 0 10.8.133.254
return

 

Don't forget to add VLAN 133 to a physical interface! If Vlan-interface133 will stay down, there is no single port associated with this VLAN.

 

I am an HPE employee

Accept or Kudo

Jvdv
Advisor

Re: STP enable

ok after making the commands I still can't find my route in my routing table

 

 

<SW_AVLCT_I>display ip routing-table
Routing Tables: Public
Destinations : 2 Routes : 2

Destination/Mask Proto Pre Cost NextHop Interface

127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0

<SW_AVLCT_I>display vlan 133
VLAN ID: 133
VLAN Type: static
Route Interface: configured
IP Address: 10.8.133.18
Subnet Mask: 255.255.255.0
Description: Avlct-mgmt_sw
Name: Avlct-mgmt_sw
Tagged Ports:
GigabitEthernet1/0/27 GigabitEthernet1/0/28
Untagged Ports: none