MSTP-sw4.cfg 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. !TL-SG2008
  2. #
  3. vlan 14,24,34,45-46,2005
  4. #
  5. vlan 14
  6. name "P2P sw1"
  7. #
  8. vlan 24
  9. name "P2P sw2"
  10. #
  11. vlan 34
  12. name "P2P sw3"
  13. #
  14. vlan 45
  15. name "P2P sw5"
  16. #
  17. vlan 46
  18. name "P2P sw6"
  19. #
  20. vlan 2005
  21. name "Management"
  22. #
  23. # [...]
  24. #
  25. hostname "MSTP-sw4"
  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. #
  38. # [...]
  39. #
  40. interface gigabitEthernet 1/0/1
  41. switchport general allowed vlan 14,2005 tagged
  42. spanning-tree
  43. spanning-tree mst instance 3 port-priority 128 cost 1000
  44. #
  45. interface gigabitEthernet 1/0/2
  46. switchport general allowed vlan 24,2005 tagged
  47. spanning-tree
  48. spanning-tree mst instance 2 port-priority 128 cost 1000
  49. #
  50. interface gigabitEthernet 1/0/3
  51. switchport general allowed vlan 34,2005 tagged
  52. spanning-tree
  53. spanning-tree mst instance 3 port-priority 128 cost 1000
  54. #
  55. interface gigabitEthernet 1/0/4
  56. switchport general allowed vlan 2005 untagged
  57. switchport pvid 2005
  58. spanning-tree
  59. #
  60. interface gigabitEthernet 1/0/5
  61. switchport general allowed vlan 45,2005 tagged
  62. spanning-tree
  63. spanning-tree mst instance 4 port-priority 128 cost 1000
  64. #
  65. interface gigabitEthernet 1/0/6
  66. switchport general allowed vlan 46,2005 tagged
  67. spanning-tree
  68. spanning-tree mst instance 3 port-priority 128 cost 1000
  69. #
  70. # [...]
  71. #
  72. interface gigabitEthernet 1/0/8
  73. switchport general allowed vlan 14,24,34,45-46,2005 tagged
  74. spanning-tree
  75. #
  76. ip management-vlan 2005
  77. interface vlan 2005
  78. ip address 172.24.4.1 255.255.0.0
  79. #
  80. end