MSTP-sw2.cfg 1.8 KB

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