Theoretically would I be able to connect two switch ports together with a simple straight/cross cable on the same switch. If the two ports are in different VLANs (eg. 2 and 22) and ports are in access mode?
BPDU guard and STP are active. The addresses and subnet is the same on both ports 10.9.0.0/24. (I mean there I have assets in VLAN 22, but I have route from the client side to VLAN2, default gw., if asset is connected to access port member in VLAN2, and has the address 10.9.0.2 it can be reached).
I would like to accomplish: make my assets only reachable when switch ports are connected with a cable (and the asset is connected to an access port member of VLAN22), and cut the connection as soon as I pull the cable out? Theoretically. In practice ports are in err-disabled with Cisco Nexus 31xx. It is easy if the cable connects two switches, but what if only one device is present?