Fatih Begit

Şubat 5, 2010

Cisco IP Phone için Catalyst Switchlerde IOS Konfigürasyonu

Filed under: Sistem Yönetimi — fatihbegit @ 1:45 pm
Tags: , , ,

Bu yazıda günümüzde kullanımı oldukça yaygınlaşan IP Phone kullanımı için Catalyst switchlerde yapılması gereken uygulamalardan bahsetmeye çalışacağım.

Öncelikle güvenlik ve performans gerekçesiyle data ve ses trafiğini ayırmamız gerekecektir. Bunu switchlerimiz üzerinde farklı vlanlar oluşturarak halledebiliriz. Ayrıca günümüzde her pc ve telefon için ayrı bir port kullanmamıza gerek yoktur çünkü bir çok IP phone modelinde bilgisayarımızın ağımıza erişebilmesini sağlayacak bir port bulunmaktadır.  Yani bağlantımız her pc+telefon switch üzerinde 1 port işgal edicek şekilde aşağıdaki gibi oluşturulabilir.

Peki switch ile telefon rasındaki bağlantı trunk olarak mı tanımlanmalıdır? Trunk portlar gereksiz broadcast/multicast/ve belirsiz unicast trafiğe izin vereceği ve her vlan için ayrı bit spanning tree instance oluşturacağı için trunk yerine QoS uygulanabilir.

3750test(config-if)#switchport voice vlan ?
<1-4094>  Vlan for voice traffic
dot1p     Priority tagged on PVID
none      Do not tell telephone about voice vlan
untagged  Untagged on PVID

Sadece vlan-id opsiyonu ile ses paketlerinin 802.1q ve voice VLAN-ID etiketlemeli, varsayılan Layer 2 CoS değeri 5 olarak (Voice control için 3),

dot1p opsiyonu ile ses paketlerinin VLAN0 etiketlemeli 802.1p frameleri içerisinde , varsayılan Layer 2 CoS değeri 5 olarak (Voice control için 3) iletimi sağlanabilir.

3750test#configure terminal
3750test(config)#interface fastethernet 2/5
3750test(config-if)#switchport mode access
3750test(config-if)#Switchport access vlan 10
3750test(config-if)#switchport voice vlan 20

Voice vlanın konfigürasyonuyla “spanning-tree portfast” komutu otomatik gözükecektir. Dikkat edilmesi gereken noktalardan biri de voice vlan konfigürasyonu kaldırıldığında “Port Fast” komutu otomatik kaldırılmaz.

Otomatik QoS uygulaması için cihazımız daha önceden QoS için konfigüre edilmediyse :

3750test#configure terminal
3750test(config)#interface fastethernet 2/5
3750test(config-if)#auto qos voip ?
cisco-phone      Trust the QoS marking of Cisco IP Phone
cisco-softphone  Trust the QoS marking of Cisco IP SoftPhone
trust            Trust the DSCP/CoS marking
3750test(config-if)#auto qos voip cisco-phone

Auto qos komutu ile QoS disabled durumda ise açılacak ve çıkış kuyrukları ve threshold değerleri otomatik set edilecektir.

mls qos map policed-dscp  24 26 46 to 0
mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos srr-queue input bandwidth 90 10
mls qos srr-queue input threshold 1 8 16
mls qos srr-queue input threshold 2 34 66
mls qos srr-queue input buffers 67 33
mls qos srr-queue input cos-map queue 1 threshold 2  1
mls qos srr-queue input cos-map queue 1 threshold 3  0
mls qos srr-queue input cos-map queue 2 threshold 1  2
mls qos srr-queue input cos-map queue 2 threshold 2  4 6 7
mls qos srr-queue input cos-map queue 2 threshold 3  3 5
mls qos srr-queue input dscp-map queue 1 threshold 2  9 10 11 12 13 14 15
mls qos srr-queue input dscp-map queue 1 threshold 3  0 1 2 3 4 5 6 7
mls qos srr-queue input dscp-map queue 1 threshold 3  32
mls qos srr-queue input dscp-map queue 2 threshold 1  16 17 18 19 20 21 22 23
mls qos srr-queue input dscp-map queue 2 threshold 2  33 34 35 36 37 38 39 48
mls qos srr-queue input dscp-map queue 2 threshold 2  49 50 51 52 53 54 55 56
mls qos srr-queue input dscp-map queue 2 threshold 2  57 58 59 60 61 62 63
mls qos srr-queue input dscp-map queue 2 threshold 3  24 25 26 27 28 29 30 31
mls qos srr-queue input dscp-map queue 2 threshold 3  40 41 42 43 44 45 46 47
mls qos srr-queue output cos-map queue 1 threshold 3  5
mls qos srr-queue output cos-map queue 2 threshold 3  3 6 7
mls qos srr-queue output cos-map queue 3 threshold 3  2 4
mls qos srr-queue output cos-map queue 4 threshold 2  1
mls qos srr-queue output cos-map queue 4 threshold 3  0
mls qos srr-queue output dscp-map queue 1 threshold 3  40 41 42 43 44 45 46 47
mls qos srr-queue output dscp-map queue 2 threshold 3  24 25 26 27 28 29 30 31
mls qos srr-queue output dscp-map queue 2 threshold 3  48 49 50 51 52 53 54 55
mls qos srr-queue output dscp-map queue 2 threshold 3  56 57 58 59 60 61 62 63
mls qos srr-queue output dscp-map queue 3 threshold 3  16 17 18 19 20 21 22 23
mls qos srr-queue output dscp-map queue 3 threshold 3  32 33 34 35 36 37 38 39
mls qos srr-queue output dscp-map queue 4 threshold 1  8
mls qos srr-queue output dscp-map queue 4 threshold 2  9 10 11 12 13 14 15
mls qos srr-queue output dscp-map queue 4 threshold 3  0 1 2 3 4 5 6 7
mls qos queue-set output 1 threshold 1 138 138 92 138
mls qos queue-set output 1 threshold 2 138 138 92 400
mls qos queue-set output 1 threshold 3 36 77 100 318
mls qos queue-set output 1 threshold 4 20 50 67 400
mls qos queue-set output 2 threshold 1 149 149 100 149
mls qos queue-set output 2 threshold 2 118 118 100 235
mls qos queue-set output 2 threshold 3 41 68 100 272
mls qos queue-set output 2 threshold 4 42 72 100 242
mls qos queue-set output 1 buffers 10 10 26 54
mls qos queue-set output 2 buffers 16 6 17 61
mls qos

Ses paketleri trunk linkler üzerine çıkarılacaksa uplink portumuzda da QoS konfigürasyonu gerekir.

3750test(config)#interface gigabitethernet 1/1
3750test(config-if)#auto qos voip trust
Ses  Paketleri Layer 3 interfaceler üzerinde çıkarılacaksa ek olarak “mls qos trust dscp” komutu çalıştırılmalıdır.
3750test#configure terminal
3750test(config)#interface gigabitethernet 1/1
3750test(config-if)#auto qos voip trust
3750test(config-if)#mls qos trust dscp
3750test(config-if)#qos trust dscp

Kullandığımız switch 3750-24ps gibi PoE (Power over Ethernet) desktekleyen bir cihaz ise ve telefonlarımız için ayrıca güç kabloları kullanmak istemiyorsak, switchimizi IP Phone cihazlarımızı beslemek için de kullanabiliriz.

3750test#configure terminal
3750test(config)#interface fastethernet 2/5
3750test(config-if)#power inline auto

Burada switchimizin güç kaynağı ve beslediği cihazların gereksinim duydukları güçlerin de göz önünde bulundurulması gerekebilir.

http://www.ciscosystems.net.mu/en/US/prod/collateral/switches/ps5718/ps5023/product_data_sheet09186a008016136f.html
http://www.cisco.com/en/US/products/hw/switches/ps607/products_qanda_item09186a0080116ffe.shtml
http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_25_sea/configuration/guide/swvoip.html
http://www.cisco.com/en/US/products/hw/switches/ps4324/products_configuration_example09186a0080722cdb.shtml

Yorum yapın »

Henüz yorum yapılmamış.

Bu yazıya yapılan yorumlar için RSS beslemeleri. URI'nin geri izlemesini yap.

Yorum yapın

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Değiştir )

Twitter picture

You are commenting using your Twitter account. Log Out / Değiştir )

Facebook photo

You are commenting using your Facebook account. Log Out / Değiştir )

Connecting to %s

Theme: Rubric. WordPress.com'dan blog alın.

Follow

Get every new post delivered to your Inbox.