Root Guard can be enabled or disabled on per port basis. If enabled on port, the switch ignores superior BPDUs received on that port and blocks that port. The port will revert back to forwarding automatically once it stops receiving superior BPDUs. To enable the Root Guard on the Interface, first configure the port as trunk.
By default, the Root Guard is disabled.