ESR series service routers.ESR-Series. User manual
Step Description Command Keys
16 Set the path value determination 
method.
esr(config-if-gi)# spanning-tree 
cost
<COST> – path cost in the range 
[1..20000000].
Default value: 4.
17 Allow this port to be set as root. esr(config-if-gi)# spanning-tree 
guard root
18 Set the RSTP protocol to the 
transmitting state and determine the 
type of connection for the selected 
port – 'point-to-point', 'branched'.
esr(config-if-gi)# spanning-tree 
link-type {point-to-point|shared}
point-to-point – the command 
defines the interface as 'point-to-
point';
shared –the command defines the 
interface as 'shared'.
Default value: point-to-point.
19 Set interface priority in STP spanning 
tree.
esr(config-if-gi)#spanning-tree 
port-priority <PRIORITY>
<PRIORITY> –priority, specified in 
the range with increments of 16 
[0..240].
20 The mode is activated, in which the 
port, when the link is up, immediately 
switches to the transmitting state, 
without waiting for the timer to expire.
esr(config-if-gi)# spanning-tree 
portfast
8.7.2  Configuration example
Objective:
Configure STP on the router to prevent a loop with a 10 second listen and learn interval and a spanning tree 
lifetime of 15 seconds.
Solution:
Example of a diagram with a router and a switch connected by two links is given below.
RSTP protocol on the ESR is enabled by defalut.
Go to the configuration mode:
The commands for configuring MSTP are only available on the ESR-1000 as the MSTP protocol is 
currently supported solely on this device.