- Priority: Priority permite establecer un valor que obligatoriamente tiene que ser múltiplo de 64 y que por defecto es 128, en el cual estableceremos la prioridad del puerto. El puerto con una prioridad menor será el puerto que utilizaremos para alcanzar a root, independientemente del coste que tenga el puerto, la prioridad siempre manda.
-Antes-
Rack05SW3(config-if)#do show spanning-tree mst 1
##### MST1 vlans mapped: 11,22,33
Bridge address aabb.cc00.0900 priority 32769 (32768 sysid 1)
Root address aabb.cc00.0700 priority 24577 (24576 sysid 1)
port Et1/3 cost 2000000 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Et1/1 Desg FWD 2000000 128.34 Shr
Et1/2 Desg FWD 2000000 128.35 Shr
Et1/3 Root FWD 2000000 128.36 Shr
Et2/0 Desg FWD 2000000 128.65 Shr
Et2/1 Desg FWD 2000000 128.66 Shr
Et2/2 Desg FWD 2000000 128.67 Shr
Et2/3 Desg FWD 2000000 128.68 Shr
-Después-
Rack05SW3(config-if)#spanning-tree mst 1 port-priority 64
Rack05SW3(config-if)#do show spanning-tree mst 1
##### MST1 vlans mapped: 11,22,33
Bridge address aabb.cc00.0900 priority 32769 (32768 sysid 1)
Root address aabb.cc00.0700 priority 24577 (24576 sysid 1)
port Et1/3 cost 2000000 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Et1/1 Desg FWD 2000000 128.34 Shr
Et1/2 Desg FWD 2000000 128.35 Shr
Et1/3 Root FWD 2000000 64.36 Shr
Et2/0 Desg FWD 2000000 128.65 Shr
Et2/1 Desg FWD 2000000 128.66 Shr
Et2/2 Desg FWD 2000000 128.67 Shr
Et2/3 Desg FWD 2000000 128.68 Shr
- Cost: Cost es la forma natural de coste de spanning tree, el camino con el menor coste para llegar a root es el camino que elegiremos. Podemos configurar el coste también a nivel de puerto, pero en cualquier caso priority siempre se impondrá ante cost.
-Antes-
Rack05SW3(config-if)#do show spanning-tree mst 1-Después-
##### MST1 vlans mapped: 11,22,33
Bridge address aabb.cc00.0900 priority 32769 (32768 sysid 1)
Root address aabb.cc00.0700 priority 24577 (24576 sysid 1)
port Et1/3 cost 2000000 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Et1/1 Desg FWD 2000000 128.34 Shr
Et1/2 Desg FWD 2000000 128.35 Shr
Et1/3 Root FWD 2000000 128.36 Shr
Et2/0 Desg FWD 2000000 128.65 Shr
Et2/1 Desg FWD 2000000 128.66 Shr
Et2/2 Desg FWD 2000000 128.67 Shr
Et2/3 Desg FWD 2000000 128.68 Shr
Rack05SW3(config-if)#spanning-tree mst 1 cost 100
Rack05SW3(config-if)#do show spanning-tree mst 1
##### MST1 vlans mapped: 11,22,33
Bridge address aabb.cc00.0900 priority 32769 (32768 sysid 1)
Root address aabb.cc00.0700 priority 24577 (24576 sysid 1)
port Et1/3 cost 100 rem hops 19
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Et1/1 Desg FWD 2000000 128.34 Shr
Et1/2 Desg FWD 2000000 128.35 Shr
Et1/3 Root FWD 100 128.36 Shr
Et2/0 Desg FWD 2000000 128.65 Shr
Et2/1 Desg FWD 2000000 128.66 Shr
Et2/2 Desg FWD 2000000 128.67 Shr
Et2/3 Desg FWD 2000000 128.68 Shr
También hay que tener en cuenta, que por defecto los switches configurarán valores a spanning tree según el tipo de interfaz, ya sea Giga, Ethernet, FastEthernet...etc. Dejo la tabla de referencia que nunca viene mal para tenerlo en cuenta.
Speed | Port Cost | Comment |
---|---|---|
10 Mbps | 100 | Ethernet |
20 Mbps | 56 | EtherChannel |
30 Mbps | 47 | EtherChannel |
40 Mbps | 41 | EtherChannel |
50 Mbps | 35 | EtherChannel |
54 Mbps | 33 | 802.11 wireless |
60 Mbps | 30 | EtherChannel |
70 Mbps | 26 | EtherChannel |
80 Mbps | 23 | EtherChannel |
100 Mbps | 19 | Fast Ethernet |
200 Mbps | 12 | Fast EtherChannel |
300 Mbps | 9 | Fast EtherChannel |
400 Mbps | 8 | Fast EtherChannel |
500 Mbps | 7 | Fast EtherChannel |
600 Mbps | 6 | Fast EtherChannel |
700 Mbps | 5 | Fast EtherChannel |
800 Mbps | 5 | Fast EtherChannel |
1 Gbps | 4 | Gigabit Ethernet |
2 Gbps | 3 | Gigabit EtherChannel |
10 Gbps | 2 | 10G Ethernet |
20 Gbps | 1 | 20G EtherChannel |
40 Gbps | 1 | 40G EtherChannel |
No hay comentarios:
Publicar un comentario