Have a question about auto provisioning a spanning tree link type.
All the Vlans have been configured for the switch and each added to ports accordingly. In this example there are multiple Vlans and each Vlan has its own STP domain. An example of part of the config is given below:
configure stpd STP-Data mode dot1w
enable stpd STP-Data rapid-root-failover
configure stpd STP-Data default-encapsulation dot1d
enable stpd STP-Data auto-bind vlan Data
Here auto-bind is configured on the STP-Data domain to the Vlan of Data.
I now want to set edge ports with edge-safeguard and bpdu-restrict, and uplinks as point-to-point.
Now if I enter the following command, with port 48 being the uplink and rest edge ports :
configure stpd STP-Data ports link-type edge 1-47 edge-safeguard enable bpdu-restrict
It wont take the command unless the port is already configured for the STP-Data domain / Vlan, you will get error something like the following:
Error: Port 1 is not a member of STP domain STP-Data
Error: Port 2 is not a member of STP domain STP-Data
Error: Command aborted due to input errors, no changes made
So in theory you would have to find what each port is in and then write the command to only include ports in that vlan.
Another option is that you could enter the following command:
configure stpd STP-Data ports link-type auto 1-48
But you end up with the same problem.
My concern is that doing port vlan configuration changes and each time having to marry this up with a separate stp link type can end up getting tedious and possibly out of sync.
So my question is if there a better way to do this, perhaps you have to do the configuration in a certain order to take advantage the link-type auto command or I'm simply doing it wrong?
Be grateful for any feedback.
Many thanks in advance