MSTP-sw1.cfg 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. !TL-SG3210
  2. #
  3. vlan 12-16,2005
  4. #
  5. vlan 12
  6. name "P2P sw2"
  7. #
  8. vlan 13
  9. name "P2P sw3"
  10. #
  11. vlan 14
  12. name "P2P sw4"
  13. #
  14. vlan 15
  15. name "P2P sw5"
  16. #
  17. vlan 16
  18. name "P2P sw6"
  19. #
  20. vlan 2005
  21. name "Management"
  22. #
  23. hostname "MSTP-sw1"
  24. #
  25. # [...]
  26. #
  27. spanning-tree
  28. spanning-tree mode mstp
  29. spanning-tree mst instance 2 priority 28672
  30. spanning-tree mst configuration
  31. name MSTP
  32. instance 1 vlan 2005,
  33. instance 2 vlan 12-13,15,24,26,
  34. instance 3 vlan 14,23,34-35,46,
  35. instance 4 vlan 16,25,36,45,56,
  36. #
  37. # [...]
  38. #
  39. interface gigabitEthernet 1/0/1
  40. switchport mode trunk
  41. switchport trunk allowed vlan 2005
  42. description "uplink"
  43. spanning-tree
  44. #
  45. interface gigabitEthernet 1/0/2
  46. switchport mode trunk
  47. switchport trunk allowed vlan 12,2005
  48. spanning-tree
  49. spanning-tree mst instance 2 port-priority 128 cost 1000
  50. #
  51. interface gigabitEthernet 1/0/3
  52. switchport mode trunk
  53. switchport trunk allowed vlan 13,2005
  54. spanning-tree
  55. spanning-tree mst instance 2 port-priority 128 cost 1000
  56. #
  57. interface gigabitEthernet 1/0/4
  58. switchport mode trunk
  59. switchport trunk allowed vlan 14,2005
  60. spanning-tree
  61. spanning-tree mst instance 3 port-priority 128 cost 1000
  62. #
  63. interface gigabitEthernet 1/0/5
  64. switchport mode trunk
  65. switchport trunk allowed vlan 15,2005
  66. spanning-tree
  67. spanning-tree mst instance 2 port-priority 128 cost 1000
  68. #
  69. interface gigabitEthernet 1/0/6
  70. switchport mode trunk
  71. switchport trunk allowed vlan 16,2005
  72. spanning-tree
  73. spanning-tree mst instance 4 port-priority 128 cost 1000
  74. #
  75. # [...]
  76. #
  77. ip management-vlan 2005
  78. interface vlan 2005
  79. ip address 172.24.1.1 255.255.0.0
  80. #
  81. end