การ setup cisco switch ให้เป็น Server+Client mode

การเซ็ต VLAN , VLAN Trunking และ VTP Domain บน Cisco Catalyst 2960 (Layer2) และ 3560 (Layer3)

จุดประสงค์ต้องการเซ็ต Switch เป็น VLAN โดยใช้ 3560 เป็น Core Switch และ 2960 กระจายไปตามจุดต่างๆในเครือข่าย

สิ่งที่ต้องทำคือ

- เปิด VTP ขึ้นมา ตั้งชื่อว่า VTPNAME

- กำหนด VTP บน 3560 เป็น Server Mode

- กำหนด VTP บน 2960 เป็น Client Mode

- ใช้ VTP Version 2

- สาย LAN เชื่อมระหว่าง Switch ใช้ Port 1 โดยทำเป็น Trunking Mode 802.1q

- SW ทุกตัวตั้งค่า VLAN ดังนี้

Port 2-5 VLAN 100 , MAIN

Port 6-10 VLAN 200 , FRONT



เริ่ม

บน 3560

switch#conf t

switch(config)#hostname SW_Core

SW_Core(config)#end

SW_Core#

SW_Core#conf t

SW_Core(config)#vtp domain VTPNAME

SW_Core(config)#vtp mode server

SW_Core(config)#end



บน 2960

คำคล้ายกันแต่เปลี่ยน hostname เป็นชื่ออื่น และ vtp mode เป็น client



ตรวจสอบ VTP โดยคำสั่ง

SW_Core#sh vtp status

ดู version ว่าเป็น v 2 หรือไม่ หากไม่เซ็ตดังนี้

Console>(enable)set vtp v2 enable



เซ็ต trunking ที่ Port 1 ของทุกๆ Switch

SW_Core#conf t

SW_Core(config)#interface fastEthernet 0/1

SW_Core(config-if)#switchport trunk encapsulation dot1q

SW_Core(config-if)#switchport mode trunk

SW_Core(config-if)#end



หากต้องการดูสถานะหลัง config

#sh interfaces fa0/1 switchport



เซ็ต VLAN

Name VLAN

———————————

Switch#conf t

Switch#vlan 100

Switch#name MAIN

Switch#exit

Switch#vlan 200

Switch#name front

Switch#exit



Add port to VLAN

———————————

Switch#config terminal

Switch#interface range fa0/2-5

Switch#switchport mode access

Switch#switch access vlan 100

Switch#exit

Switch#interface range fa0/6-10

Switch#switchport mode access

Switch#switch access vlan 200

Switch#exit


SW_Core#sh vlan <== ดูสถานะของ VLAN

Credit :
http://www.wandee.org/wordpress/?cat=12

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

เมื่อใช้ xcopy แล้ว nsufficient-memory นี่เลยครับ robocopy

การต่อ USB Serial ใน Linux