cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1719
Views
0
Helpful
8
Replies

3560 QOS

malithperera
Level 1
Level 1

Hi All,

I recently deployed 3x 3560 switches in L2 mode (just Vlan 1 with ip add for management). We  will be having VOIP on those switch therefore I put auto QOS. I used the command "Auto QOS trusc cisco-phone" command. Unfortunatly I'm not very familier with QOS but I've seen some examples of QOS where they generate policy maps when you do Auto QOS. However I don't see any policy-maps after I put auto qos. Can someone please tell me why aotu qos didn't generate policy maps? Am I doing something wrong?

8 Replies 8

Hi,

I suggest use any one of the following to classify:

If you are using Cisco's IP Phone:

Under interface config mode:

mls qos trust device cisco-phone

If it other than Cisco IP Phone:

mls qos trust cos

then make class-map to classify those packet and then policy map to do you traffic-shapping.

Finally apply the policy-map to your WAN interface as output policy.

HTH,

Smitesh

Hi Smitesh,

I'm not using trunk interface for phone. In that case can I use COS (as I know CoS is for trunk interfaces only)?

Thanks,

Malith.

Hi

Yes, you would need to use trust dscp if you don't have trunked links.

Re: your original question, on older IOS if you use the 'auto qos trust cisco-softphone' it will generate a service policy that suits both ip phones and soft phones.

trust cisco-phone used to just use conditional trust of IP phones recognised via CDP, which isn't a very modern way of doing things.

Regards

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

@aaronharris,

So newer IOS don't generate policy maps if you just trust cisco-phones? Every video or note I looked at shows that it generate policy maps. In newer IOS when you say "cisco-phone" does in mark the packet properly? Thanks in advance.

Hi

Well - older versions would only do the service policy if you used the softphone macro.

I seem to recall that the last switches I set auto qos on generated the policies regardless of which (cisco-phone/softphone) you used...

Either will work for Cisco hard phones, but if there isn't a service policy (or a simple trust-dscp) then PC-based traffic won't get trusted.

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

I seem to recall that the last switches I set auto qos on generated the  policies regardless of which (cisco-phone/softphone) you used... - This is why I'm confused why it didn't generate the policy map.

So trusing DSCP in cisco connected port without policy map will be enough?

I have following in switchports

on phone connected port

int f0/2

switchport

switchport mode access

switchport access vlan 100

switchport voice vlan 200

auto qos voice trust

mls qos trust dscp

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape 10 0 0 0

spanning-tree portfast

on the trunk

switchport mode trunk

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape 10 0 0 0

auto qos voip trust

msl qos trust dscp

Globally on switch

mls qos

mls qos map cos-dscp 0 10 18 24 34 46 48 56

is this just enough for VOIP QOS? Thank you very much in advance.

Well... it would work... in as much as you would get voice/sig traffic into the right queue. However it would also permit any other marked traffic from the attached PC. Usually you would want the service policy.

What version of IOS have you got?

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

The version is

12.2(35)SE5

This is my full switch config.

swith#sh run

Building configuration...

Current configuration : 14906 bytes

!

version 12.2

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname swich

!

no logging buffered

enable secret 5 $34YntZ$gHHqweeeressdfNv1jep0

!

username cisco_admin secret 5 $1$bGHiers34rhhjrrHHiWnrVb/

no aaa new-model

system mtu routing 1500

vtp domain DTE

vtp mode transparent

ip subnet-zero

!

!

mls qos map cos-dscp 0 10 18 24 34 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

!

!

no file verify auto

!

spanning-tree mode pvst

spanning-tree extend system-id

spanning-tree vlan 1,100,700 priority 57344

!

vlan internal allocation policy ascending

!

vlan 100

name IME

!

vlan 101

name EDT

!

vlan 700

name VOIP

!

!

interface FastEthernet0/1

description TO_BA-ENT-TLSW1

switchport trunk encapsulation dot1q

switchport mode trunk

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

auto qos voip trust

!

interface FastEthernet0/2

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/3

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/4

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/5

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/6

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/7

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/8

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/9

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/10

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/11

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/12

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/13

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/14

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/15

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/16

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/17

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/18

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/19

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/20

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/21

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip cisco-phone

spanning-tree portfast

!

interface FastEthernet0/22

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/23

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/24

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/25

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/26

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/27

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/28

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/29

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/30

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/31

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/32

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/33

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/34

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/35

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/36

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/37

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/38

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/39

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/40

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/41

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/42

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/43

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/44

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/45

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/46

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/47

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface FastEthernet0/48

switchport mode access

switchport voice vlan 700

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape  10  0  0  0

mls qos trust dscp

auto qos voip trust

spanning-tree portfast

!

interface GigabitEthernet0/1

description TRNK_2_TRNST

switchport trunk encapsulation dot1q

switchport mode trunk

mls qos trust dscp

!

interface GigabitEthernet0/2

!

interface GigabitEthernet0/3

!

interface GigabitEthernet0/4

!

interface Vlan1

ip address 192.168.1.0 255.255.255.0

!

ip classless

ip http server

!

ip access-list extended VOIP_RTP

permit ip any any dscp ef log

permit ip any any dscp ef log-input

!

snmp-server community public RO

snmp-server community REUTHPG RW

snmp-server enable traps snmp coldstart warmstart

!

control-plane

!

!

line con 0

login local

line vty 0 4

password reuters

login local

length 0

line vty 5 15

login local

!

end