1-24Make this configuration on the root bridge and on the leaf nodes separately.Follow these steps to specify a port or a group of ports as edge port or ports:To do... Use the command... RemarksEnter system view system-view —Enter Ethernet interfaceview, or Layer 2 aggregateinterface viewinterface interface-typeinterface-numberEnterinterfaceview or portgroup view Enter port group view port-group manualport-group-nameRequiredUse either command.Configure the current ports as edge ports stp edged-port enableRequiredAll ports are non-edgeports by default.z With BPDU guard disabled, when a port set as an edge port receives a BPDU from another port, itwill become a non-edge port again. To restore the edge port, re-enable it.z If a port directly connects to a user terminal, configure it as an edge port and enable BPDU guardfor it. This enables the port to transition to the forwarding state fast while ensuring network security.Configuring Path Costs of PortsPath cost is a parameter related to the rate of a port. On an MSTP-enabled device, a port can havedifferent path costs in different MSTIs. Setting appropriate path costs allows VLAN traffic flows to beforwarded along different physical links, thus achieving VLAN-based load balancing.The device can automatically calculate the default path cost; alternatively, you can also configure thepath cost for ports.Make the following configurations on the leaf nodes only.Specifying a standard that the device uses when calculating the default path costYou can specify a standard for the device to use in automatic calculation for the default path cost. Thedevice supports the following standards:z dot1d-1998: The device calculates the default path cost for ports based on IEEE 802.1d-1998.z dot1t: The device calculates the default path cost for ports based on IEEE 802.1t.z legacy: The device calculates the default path cost for ports based on a private standard.Follow these steps to specify a standard for the device to use when calculating the default path cost:To do... Use the command... RemarksEnter system view system-view —Specify a standard for thedevice to use when calculatingthe default path costs of itsportsstp pathcost-standard{ dot1d-1998 | dot1t | legacy }OptionalBy default, the devicecalculates the default path costfor ports based on a privatestandard.