As the hub doesn't have STP running, the switch itself will block one of the ports ramdomly, since the ports have the same hardware (speed, media type, cost) and settings. But if you prefer, you can set one of the ports to be the root port, just changing the cost on the port settings, using the command "spanning-tree cost ", where n is the cost you want to assign to the port.
First, I'd like to make sure that your ports f0/0 and f0/1 are really switchports, else STP is not relevant in your setup.
Else, as Fred mentioned, the hub will not run STP and just treats BPDUs as data traffic. So the switch will have to block one of its port based on its own information.
Basically, the port that sends the "Best" BPDU will end up designated forwarding, while the other will be alternate (blocking). This is done in a deterministic way, by comparing the content of the BPDU. The fields of a BPDU sent by the switch are: Root ID, cost to the Root, Sender Bridge ID and the Sender Port ID. Of course, the three first parameters are identical, which means that the tie breaker will be the Sender Port ID. Basically, the port with the numerically lowest priority will be designated, while the other will be alternate. So you can influence the location of the blocked port by tuning the port priority.
This document gives several answers on frequently asked questions for PFRv3 channel state behavior.
Q1: What are all the channel operational states from a BR (border role) perspective and what are the rules/conditions to be in each st...
The need was to reach an host inside a LAN through a VPN connection managed by the LAN gateway (Cisco 1921).
The LAN gateway performs NAT and there was a dedicate nat rule for the host i wanted to reach through VPN.
I couldn't connect to the hos...