Tuesday, 10 June 2014

Basic VoIP Configurations - Auto QoS Implemetation.

Basic Switch QoS Application Configurations

Step 1
. Ensure that QoS is globally enabled with the command
mls qos and enter the configuration mode for the interface on which you want to configure Voice VLANs.

Step 2.
Enable the voice VLAN on the switch port and associate a VLAN ID using the interface command switchport voice vlan
vlan-id.

Step 3.
Configure the port to trust CoS or trust DSCP as frames arrive on the switch port using the mls qos trust cosor mls qos trust
dscp commands, respectively. Recall that the mls qos trust cos command directs the switch to trust ingress CoS values whereas
mls qos trust dscp trusts ingress DSCP values. Do not confuse the two commands as each configures the switch
to look at different bits in the frame for classification.


Note: Configuring auto QoS on an interface automatically adds global mls qos srr-queue, class map and policy-map commands
to the running configuration. A number of interface-specific command are also added, including spanning-tree protfast
  - command: mls qos
int range fa0/7-12
auto qos voip trust



DLS1 (Switch 1)


hostname DLS1
int vlan 1
ip address 172.16.1.3 255.255.255.0
no shut


int range fa0/7-8
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active

int range fa0/9-10
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 2 mode active

int range fa0/11-12
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 3 mode active


vtp domain SWPOD
vtp version 2
vlan 10
name CD-DATA
exit
vlan 20
name VOICE
exit
vlan 30
name VIDEO


ip routing
int vlan 1
standby 1 ip 172.16.1.1
standby 1 preempt
standby 1 priority 150
exit
int vlan 10
ip address 172.16.10.3 255.255.255.0
standby 1 ip 172.16.10.1
standby 1 preempt
standby 1 priority 150
exit
int vlan 20
ip address 172.16.20.3 255.255.255.0
standby 1 ip 172.16.20.1
standby 1 preempt
standby 1 priority 100
exit
int vlan 30
ip address 172.16.30.3 255.255.255.0
standby 1 ip 172.16.30.1
standby 1 preempt
standby 1 priority 100
exit


mls qos
int range fa0/7-12
auto qos voip trust







DLS2 (Switch 2)

hostname DLS2
int vlan 1
ip address 172.16.1.4 255.255.255.0
no shut


int range fa0/7-8
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active

int range fa0/9-10
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 2 mode active

int range fa0/11-12
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 3 mode active


ip routing
int vlan 1
standby 1 ip 172.16.1.1
standby 1 preempt
standby 1 priority 100
exit
int vlan 10
ip address 172.16.10.4 255.255.255.0
standby 1 ip 172.16.10.1
standby 1 preempt
standby 1 priority 100
exit
int vlan 20
ip address 172.16.20.4 255.255.255.0
standby 1 ip 172.16.20.1
standby 1 preempt
standby 1 priority 150
exit
int vlan 30
ip address 172.16.30.4 255.255.255.0
standby 1 ip 172.16.30.1
standby 1 preempt
standby 1 priority 150
exit


mls qos
int range fa0/7-12
auto qos voip trust







ALS1 (Switch 3)

hostname ALS1
int vlan 1
ip address 172.16.1.101 255.255.255.0
no shut
exit
ip default-gateway 172.16.1.1

int range fa0/7-8
switchport mode trunk
channel-group 1 mode active

int range fa0/9-10
switchport mode trunk
channel-group 2 mode active

int range fa0/11-12
switchport mode trunk
channel-group 3 mode active



vtp domain client


int range fa0/15-24
switchport mode access
switchport access vlan 10
switchport voice vlan 20
auto qos voip cisco-phone






ALS2 (Switch 4)

hostname ALS2
int vlan 1
ip address 172.16.1.102 255.255.255.0
no shut
exit
ip default-gateway 172.16.1.1

int range fa0/7-8
switchport mode trunk
channel-group 1 mode active

int range fa0/9-10
switchport mode trunk
channel-group 2 mode active

int range fa0/11-12
switchport mode trunk
channel-group 3 mode active


vtp domain client


int range fa0/15-24
switchport mode access
switchport access vlan 10
switchport voice vlan 20
auto qos voip cisco-phone


int fa0/5
switchport mode access
switchport access vlan 30
mls qos trust cos
mls qos cos 3


This is based on CCNP Switch Lab 7.2 0 Voice Implementation Network.

No comments:

Post a Comment