104Configuration procedureTo configure a port as an edge port:Step Command Remarks1. Enter system view. system-view N/A2. Enter Layer 2 Ethernet oraggregate interface view. interface interface-type interface-number N/A3. Configure the current ports asedge ports. stp edged-port By default, all ports arenon-edge ports.Configuring path costs of portsPath cost is a parameter related to the rate of a port. On a spanning tree device, a port can have differentpath costs in different MSTIs. Setting appropriate path costs allows VLAN traffic flows to be forwardedalong different physical links, achieving VLAN-based load balancing.You can have the device automatically calculate the default path cost, or you can configure the path costfor ports.Specifying a standard for the device to use when it calculatesthe default path costCAUTION:If you change the standard that the device uses to calculate the default path costs, you restore the pathcosts to the default.You can specify a standard for the device to use in automatic calculation for the default path cost. Thedevice supports the following standards:• dot1d-1998—The device calculates the default path cost for ports based on IEEE 802.1d-1998.• dot1t—The device calculates the default path cost for ports based on IEEE 802.1t.• legacy—The device calculates the default path cost for ports based on a private standard.When you specify a standard for the device to use when it calculates the default path cost, follow theseguidelines:• When it calculates the path cost for an aggregate interface, IEEE 802.1t takes into account thenumber of Selected ports in its aggregation group. However, IEEE 802.1d-1998 does not take intoaccount the number of Selected ports. The calculation formula of IEEE 802.1t is: Path cost =200,000,000/link speed (in 100 kbps), where link speed is the sum of the link speed values of theSelected ports in the aggregation group.• IEEE 802.1d-1998 or the private standard always assigns the smallest possible value to a single portor aggregate interface with a speed exceeding 10 Gbps. The forwarding path selected based onthis criterion might not be the best one. To solve this problem, perform one of the following actions:{ Use dot1t as the standard for default path cost calculation.{ Manually set the path cost for the port (see "Configuring path costs of ports").