1-36Configuration PrerequisitesMSTP runs normally on the switch.Configuring BPDU GuardConfiguration procedureFollow these steps to configure BPDU guard:To do... Use the command... RemarksEnter system view system-view —Enable the BPDU guardfunction stp bpdu-protectionRequiredThe BPDU guard function isdisabled by default.Configuration example# Enable the BPDU guard function. system-view[Sysname] stp bpdu-protectionConfiguring Root GuardConfiguration procedureFollow these steps to configure the root guard function in system view:To do... Use the command... RemarksEnter system view system-view —Enable the root guard functionon specified portsstp interface interface-listroot-protectionRequiredThe root guard function isdisabled by default.Follow these steps to enable the root guard function in Ethernet port view:To do... Use the command... RemarksEnter system view system-view —Enter Ethernet port view Interface interface-typeinterface-number —Enable the root guard functionon the current port stp root-protectionRequiredThe root guard function isdisabled by default.Configuration example# Enable the root guard function on GigabitEthernet 1/0/1.1) Perform this configuration in system view system-view