To enable the Rapid Spanning Tree Protocol (RSTP), which is defined in IEEE 802.1w, you should use the command that sets the spanning tree mode to rapid-pvst.
The correct commands to enable RSTP would either include:
-
In global configuration mode:
Switch(config)# spanning-tree mode rapid-pvst
-
In privileged exec mode:
Switch# spanning-tree mode rapid-pvst
So the correct answer from your options would be:
- Switch(config)#spanning-tree mode rapid-pvst
or
- Switch#spanning-tree mode rapid-pvst
Note: The other options, Switch(config)#spanning-tree mode 802.1w
and Switch#spanning-tree mode 802.1w
, are not valid commands to configure the RSTP on standard Cisco switches.