Trunking หรือเรียกอีกอย่างว่า VLAN Trunking คือ กระบวนการที่ Support ให้ VLANs หลายๆ VLANs ให้มีการเชื่อมต่อข้อมูลการโดยใช้ สายแลน เพียงเส้นเดียว (โดยการใช้ Cisco’s ISL protocol หรือ IEEE 802.1q protocol)
ตัวอย่างการ Config Trunking ให้กับ interface
interface fa0/10 switchport switchport trunk encapsulation dot1q switchport mode trunk |
VTP Server
configure terminal vtp mode server vtp domain domain-name vtp password password end show vtp status |
configure terminal vtp mode client vtp domain domain-name vtp password password end show vtp status |
โดยปกติ เมื่อเราใช้ VTP โฮสทุกเครื่องที่อยู่บน VLAN จะมีการ flooded Broadcast ข้อมูลไปทั่วให้กับทุก Switch ที่ต่อกันอยู่ ดังรูป
จะเห็นว่า Host ที่ต่ออยู่กับ Switch A จะมีการ flooded Broadcast ข้่อมูลไปทั่วทุกตัว Switch ทั้งๆที่ Switch ตัวอื่นไม่ได้มีส่วนเกี่ยวข้องกับ VLAN Red เลย ซึ่งแน่นอนว่า Bandwidth ที่ใช้ใน Network นี้ก็จะถูกใช้ไปโดยเปล่าประโยชน์ มันจึงเป็นที่มาของ VTP Pruning ครับพี่น้อง
VTP Pruning จะเข้ามาช่วยในการตรวจสอบ Switch ที่ต่อกันอยู่ ว่ามีอันไหนบ้างที่ไม่ได้อยู่ VLAN เดียวกัน เมื่อมันพบมันก็จะไม่ ส่ง flooded Broadcast ไปให้ ดังรูป
คำสั่งที่ใช้ในการ Enable VTP Pruning
configure terminal configure terminal vtp pruning end show vtp status |