ถ้าหากเราทำเป็น Sub Interface จะไม่สามารถใช้คำสั่ง show Interface Gigabit0/1.180 ได้
เราจำเป็นต้องสร้าง Qos มาเพื่อตรวจสอบ โดยการ configure และใช้คำสั่งที่แสดงตามรูปนี้ครับ จะอธิบายคำสั่งสำคัญๆอีกครั้งด้านล่าง
! เพิ่มคำสั่ง Qos บน Global configure ชื่อว่า Check_BW
Policy-map
Check_BW
interface GigabitEthernet0/1.180
bandwidth 50000
encapsulation dot1Q 180
ip address 192.168.1.2 255.255.255.0
service-policy input Check_BW
! เพิ่มคำสั่งตรวจสอบทิศทางขาเข้า(download) จากอินเตอร์เน็ตสังเกตตรงคำสั่ง "input"
service-policy output Check_BW! เพิ่มคำสั่งตรวจสอบทิศทางขาออก (upload)ไปยังอินเตอร์เน็ตสังเกตตรงคำสั่ง "output"
interface GigabitEthernet0/1.180
bandwidth 50000
encapsulation dot1Q 180
ip address 192.168.1.2 255.255.255.0
service-policy input Check_BW
! เพิ่มคำสั่งตรวจสอบทิศทางขาเข้า(download) จากอินเตอร์เน็ตสังเกตตรงคำสั่ง "input"
service-policy output Check_BW! เพิ่มคำสั่งตรวจสอบทิศทางขาออก (upload)ไปยังอินเตอร์เน็ตสังเกตตรงคำสั่ง "output"
! ใช้คำสั่ง show policy-map interface xx เพื่อตรวจสอบ Bandwidth
RouterInternet#show policy-map interface gigabitEthernet 0/1.180
GigabitEthernet0/1.180
Service-policy input: Check_BW
Class-map: class-default (match-any)
2453238 packets, 2732963618 bytes
30 second offered rate 1962000 bps, drop rate 0000 bps ! ผลที่ได้คือ Bandwidth ที่ download จำนวน 1.9Mbps
Match: any
Service-policy output: Check_BW
Class-map: class-default (match-any)
1382515 packets, 146227284 bytes
30 second offered rate 108000 bps, drop rate 0000 bps ! ผลที่ได้คือ Bandwidth ที่ upload จำนวน 108 kbps
Match: any
GigabitEthernet0/1.180
Service-policy input: Check_BW
Class-map: class-default (match-any)
2453238 packets, 2732963618 bytes
30 second offered rate 1962000 bps, drop rate 0000 bps ! ผลที่ได้คือ Bandwidth ที่ download จำนวน 1.9Mbps
Match: any
Service-policy output: Check_BW
Class-map: class-default (match-any)
1382515 packets, 146227284 bytes
30 second offered rate 108000 bps, drop rate 0000 bps ! ผลที่ได้คือ Bandwidth ที่ upload จำนวน 108 kbps
Match: any
โดยเราจะ configure กัน 3 บรรทัดเท่านั้น ลองทำดูน่ะครับPolicy-map Check_BW
service-policy input Check_BW
service-policy output Check_BW
service-policy input Check_BW
service-policy output Check_BW
https://www.facebook.com/networkbanban
ไม่มีความคิดเห็น:
แสดงความคิดเห็น