Make sure VLAN / ports are assoiciated with a STP domain so the ports can particiapate in STP. Check with show vlan (T flag means VLAN is member of a STP domain) or show stpd (check VLAN bindings).
Created VLAN 11 and moved port 5 to it and purposely tried to set p-t-p link knowing VLAN not part of STP domain…
* EXOS-VM.28 # create vlan 11
* EXOS-VM.29 # configure vlan 11 add ports 5
VLAN 11 VLAN_0011: Port 5 untagged has been auto-moved from VLAN “Default” to “VLAN_0011”.
* EXOS-VM.30 # show stpd s0 p 5-8
Port Mode State Cost Flags Priority Port ID Designated Bridge
Port 5 not in STP domain s0
6 802.1D FORWARDING 200000 eDap-w–B- 128 8006 80:00:0c:72:16:86:e7:00
7 802.1D FORWARDING 200000 eDap-w–B- 128 8007 80:00:0c:72:16:86:e7:00
8 802.1D FORWARDING 200000 eDap-w–B- 128 8008 80:00:0c:72:16:86:e7:00
Total Ports: 3
————————- Flags: —————————-
1: e=Enable, d=Disable
2: (Port role) R=Root, D=Designated, A=Alternate, B=Backup, M=Master
3: (Config type) b=broadcast, p=point-to-point, e=edge, a=auto
4: (Oper. type) b=broadcast, p=point-to-point, e=edge
5: p=proposing, a=agree
6: (partner mode) d = 802.1d, w = 802.1w, m = mstp
7: i = edgeport inconsistency
8: S = edgeport safe guard active
s = edgeport safe guard configured but inactive
8: G = edgeport safe guard bpdu restrict active in 802.1w and mstp
g = edgeport safe guard bpdu restrict active in 802.1d
9: B = Boundary, I = Internal
10: r = restricted role, t = active role
* EXOS-VM.31 # configure stpd s0 ports link-type point-to-point 5
Error: Port 5 is not a member of STP domain s0
Error: Command aborted due to input errors, no changes made
* EXOS-VM.32 #
After binding VLAN 11 I can set port 5 as link-type point-to-point…
* EXOS-VM.33 # enable stpd s0 auto-bind vlan 11
* EXOS-VM.34 # configure stpd s0 ports link-type point-to-point 5
* EXOS-VM.35 # show stpd s0 port 5
Port Mode State Cost Flags Priority Port ID Designated Bridge
5 802.1D FORWARDING 200000 eDpppw–B- 128 8005 80:00:0c:72:16:86:e7:00