Lab Objective:
The focus of this lab is to understand Quality of Service (QoS) implementation and configuration for voice and video services in Cisco IOS Catalyst switches.
Lab Topology:
The lab network topology is illustrated below:
|
IMPORTANT NOTE If you are using the www.howtonetwork.net racks, please begin each and every lab by shutting down all interfaces on all switches and then manually re-enabling only the interfaces that are illustrated in this topology. |
Task 1
Configure VTP on all switches illustrated in the network topology as follows:
- Switches DLS1 and ALS1 should reside in VTP domain ONE
- Switch DLS1 should be configured as a VTP server and ALS1 as a VTP client
- Switches DLS1 and ALS1 should secure VTP using a password of ONE
- Both switches should run VTP version 2
- Switches DLS2 and ALS2 should reside in VTP domain TWO
- Switch DLS2 should be configured as a VTP server and ALS2 as a VTP client
- Switches DLS2 and ALS2 should secure VTP using a password of TWO
- Both switches should run VTP version 2
Task 2
Configure an 802.1Q trunk between DLS1 and ALS1 as well as between DLS2 and ALS2. Next, configure a PAgP Layer 3 EtherChannel between switches DLS1 and DLS2. Use the 192.168.0.0/30 subnet for the EtherChannel.
Task 3
Configure VLANs and the following SVIs and interfaces on the switches in the topology:
- DLS1: VLAN 100 – name DATA; VLAN 101 – name VOICE
- DLS1: Interface VLAN 100: IP address 100.1.1.1/24
- DLS1: Interface VLAN 101: IP address 101.1.1.1/24
- DLS2: VLAN 200 – name DATA; VLAN 201 – name VOICE
- DLS2: Interface VLAN 200: IP address 200.1.1.1/24
- DLS2: Interface VLAN 201: IP address 201.1.1.1/24
Task 4
Configure Cisco IOS DHCP on switch DLS1 to provide IP addressing information to both the DATA and VOICE VLANs. The first 5 addresses should be excluded from the DHCP scopes. The Cisco IP phones that will be assigned to the VOICE VLANs on the switches will need to communicate with a Cisco Unified Communications Manager with the IP address 192.168.0.254. This address should be included in the VOICE DHCP scopes. The DHCP scopes should be configured for a lease time of 5 days, use the domain name howtonetwork.net and use servers 172.16.1.253 and 172.16.2.254 for name resolution.
Configure switch DLS2 to forward DHCP requests to servers 192.168.1.254 and 192.168.2.254
Task 5
Configure OSPF on switches DLS1 and DLS2 so that switches ALS1 and ALS2 have IP reachability to each other.
Task 6
Configure Quality of Service on switches DLS1 and DLS2 as follows:
- All markings for packets received across the Layer 3 EtherChannel should be trusted
- All markings for packets received from their access switches should be trusted
Task 7
Configure voice support and Quality of Service on switch ALS1. Ports FastEthernet0/1- 0/5 will be connected to Cisco IP phones. The phones will should use VLAN 101 and the users connected to the phone LAN port should use VLAN 100. The switch should trust QoS markings from the phones only.
Configure voice support and Quality of Service on switch ALS2. Ports FastEthernet0/1 – 0/5 will be connected to Cisco IP phones. The phones will should use VLAN 201 and the users connected to the phone LAN port should use VLAN 200. The switch should trust QoS markings from both the phones as well as the user devices connected to the phones.
Task 8
On switches ALS1 and ALS2, ports FastEthernet0/10 – 12 will be connected to non-trusted video endpoints. To ensure that these do not affect other services, e.g. voice, configure the switches to ignore any CoS values in frames received on these ports and assign a default CoS value of 3.
Lab Validation
Task 1
| DLS1(config)#vtp domain ONE DLS1(config)#vtp password ONE DLS1(config)#vtp version 2 |
| DLS2(config)#vtp domain TWO DLS2(config)#vtp password TWO DLS2(config)#vtp version 2 |
| ALS1(config)#vtp version 2 ALS1(config)#vtp domain ONE ALS1(config)#vtp password ONE ALS1(config)#vtp mode client |
| ALS2(config)#vtp domain TWO ALS2(config)#vtp password TWO ALS2(config)#vtp version 2 ALS2(config)#vtp mode client |
Task 2
| DLS1(config)#interface fastethernet 0/7 DLS1(config-if)#switchport DLS1(config-if)#switchport trunk encapsulation dot1q DLS1(config-if)#switchport mode trunk DLS1(config-if)#no shutdown DLS1(config-if)#exit DLS1(config)#interface range fastethernet 0/11 – 12 DLS1(config-if-range)#no switchport DLS1(config-if-range)#channel-group 1 mode desirable Creating a port-channel interface Port-channel 1 DLS1(config-if-range)#no shutdown |
| DLS2(config)#interface fastethernet 0/7 DLS2(config-if)#switchport DLS2(config-if)#switchport trunk encapsulation dot1q DLS2(config-if)#switchport mode trunk DLS2(config-if)#no shutdown DLS2(config-if)#exit DLS2(config)#interface range fastethernet 0/11 – 12 DLS2(config-if-range)#no switchport DLS2(config-if-range)#channel-group 1 mode desirable Creating a port-channel interface Port-channel 1 DLS2(config-if-range)#no shutdown |
| ALS1(config)#interface fastethernet 0/7 ALS1(config-if)#no shutdown ALS1(config-if)#switchport mode trunk ALS1(config-if)#exit |
| ALS2(config)#interface fastethernet 0/7 ALS2(config-if)#no shutdown ALS2(config-if)#switchport mode trunk ALS2(config-if)#exit |
Verify trunking status and configuration using the show interfaces trunk command:
| ALS1#show interfaces trunk
Port Mode Encapsulation Status Native vlan |
| ALS2#show interfaces trunk
Port Mode Encapsulation Status Native vlan |
Verify EtherChannel status and configuration using the show etherchannel commands:
| DLS1#show etherchannel summary Flags: D – down P – bundled in port-channel I – stand-alone s – suspended H – Hot-standby (LACP only) R – Layer3 S – Layer2 U – in use f – failed to allocate aggregator M – not in use, minimum links not met
Number of channel-groups in use: 1 Group Port-channel Protocol Ports |
And finally, verify IP connectivity between switches DLS1 and DLS2 using a simple ping:
| DLS1#ping 192.168.0.2
Type escape sequence to abort. |
Task 3
| DLS1(config)#vlan 100 DLS1(config-vlan)#name DATA DLS1(config-vlan)#exit DLS1(config)#vlan 101 DLS1(config-vlan)#name VOICE DLS1(config-vlan)#exit DLS1(config)#interface vlan 100 DLS1(config-if)#ip address 100.1.1.1 255.255.255.0 DLS1(config-if)#exit DLS1(config)#interface vlan 101 DLS1(config-if)#ip address 101.1.1.1 255.255.255.0 DLS1(config-if)#exit |
| DLS2(config)#vlan 200 DLS2(config-vlan)#name DATA DLS2(config-vlan)#exit DLS2(config)#vlan 201 DLS2(config-vlan)#name VOICE DLS2(config-vlan)#exit DLS2(config)#interface vlan 200 DLS2(config-if)#ip address 200.1.1.1 255.255.255.0 DLS2(config-if)#exit DLS2(config)#interface vlan 201 DLS2(config-if)#ip address 201.1.1.1 255.255.255.0 DLS2(config-if)#exit |
Task 4
While the other DHCP configuration tasks are simple, when configuring the Cisco Unified Communications Manager (CUCM) address in DHCP, you can use either DHCP option 66 (name) or DHCP option 150 (IP address). This task is completed as follows on switch DLS1:
| DLS1(config)#ip dhcp excluded-address 100.1.1.1 100.1.1.4 DLS1(config)#ip dhcp excluded-address 101.1.1.1 101.1.1.4 DLS1(config)#ip dhcp pool DATA DLS1(dhcp-config)#network 100.1.1.0 255.255.255.0 DLS1(dhcp-config)#default-router 100.1.1.1 DLS1(dhcp-config)#lease 5 0 0 DLS1(dhcp-config)#domain-name howtonetwork.net DLS1(dhcp-config)#dns-server 172.16.1.254 172.16.2.254 DLS1(dhcp-config)#exit DLS1(config)#ip dhcp pool VOICE DLS1(dhcp-config)#network 101.1.1.0 255.255.255.0 DLS1(dhcp-config)#lease 5 0 0 DLS1(dhcp-config)#domain-name howtonetwork.net DLS1(dhcp-config)#lease 5 0 0 DLS1(dhcp-config)#dns-server 172.16.1.254 172.16.2.254 DLS1(dhcp-config)#option 150 ip 192.168.0.254 DLS1(dhcp-config)#exit |
The second part of this task calls for the configuration of the Cisco IOS DHCP Relay Agent, configured using the ip helper-address command. This task is completed as follows:
| DLS2(config)#interface vlan 200 DLS2(config-if)#ip helper-address 192.168.1.254 DLS2(config-if)#ip helper-address 192.168.2.254 DLS2(config-if)#exit DLS2(config)#interface vlan 201 DLS2(config-if)#ip helper-address 192.168.1.254 DLS2(config-if)#ip helper-address 192.168.2.254 DLS2(config-if)#exit |
You can verify the helper addresses configured on a per-interface basis by looking at the device configuration or using the show ip interfacecommand:
| DLS2#show ip interface vlan 200 Vlan200 is up, line protocol is up Internet address is 200.1.1.1/24 Broadcast address is 255.255.255.255 Address determined by setup command MTU is 1500 bytes Helper addresses are 192.168.1.254 192.168.2.254 Directed broadcast forwarding is disabled Outgoing access list is not set Inbound access list is not set |
Task 5
| DLS1(config)#ip routing DLS1(config)#router ospf 1 DLS1(config-router)#network 100.1.1.0 0.0.0.255 area 0 DLS1(config-router)#network 101.1.1.0 0.0.0.255 area 0 DLS1(config-router)#network 192.168.0.0 0.0.0.3 area 0 DLS1(config-router)#exit |
| DLS2(config)#ip routing DLS2(config)#router ospf 2 DLS2(config-router)#network 200.1.1.0 0.0.0.255 area 0 DLS2(config-router)#network 201.1.1.0 0.0.0.255 area 0 DLS2(config-router)#network 192.168.0.0 0.0.0.3 area 0 DLS2(config-router)#exit |
Verify your configuration using the show ip ospf and show ip route commands:
| DLS1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface |
| DLS1#show ip route ospf O 201.1.1.0/24 [110/2] via 192.168.0.2, 00:01:47, Port-channel1 O 200.1.1.0/24 [110/2] via 192.168.0.2, 00:01:47, Port-channel1 |
Task 6
When configuring QoS on Catalyst switches, first QoS must be enabled globally. When this is done, by default, all interfaces are untrusted and a trust state must be explicitly configured. When configuring trust states, configure the switch to trust CoS only on trunks or ports connected to Cisco IP phones; and to trust DSCP or IP Precedence on Layer 3 (routed) ports or ports connected to non-Cisco IP phones, e.g. ports connected to workstations only.
| DLS1(config)#mls qos DLS1(config-if)#interface fastethernet 0/7 DLS1(config-if)#mls qos trust cos DLS1(config-if)#exit DLS1(config)#interface range fastethernet 0/11 – 12 DLS1(config-if-range)#mls qos trust dscp DLS1(config-if-range)#exit |
NOTE: Depending on the switch platform, when configuring QoS for EtherChannels, you must configure it on a per-port basis. It is imperative to ensure that all ports have the same configuration, otherwise, some of the ports will not be included in the EtherChannel bundle.
| DLS2(config)#mls qos DLS2(config)#interface fastethernet 0/7 DLS2(config-if)#mls qos trust cos DLS2(config-if)#exit DLS2(config)#interface range fastethernet 0/11 – 12 DLS2(config-if-range)#mls qos trust dscp DLS2(config-if-range)#exit |
Verify your configuration using the show mls qos commands:
| DLS2#show mls qos QoS is enabled |
| DLS2#show mls qos interface fastethernet 0/7 FastEthernet0/7 QoS is disabled. pass-through mode When QoS is enabled, following settings will be applied trust state: trust cos trust mode: trust cos COS override: dis default COS: 0 DSCP Mutation Map: Default DSCP Mutation Map Trust device: none |
Task 7
| ALS1(config)#interface range fastethernet 0/1 – 5 ALS1(config-if-range)#switchport mode access ALS1(config-if-range)#switchport access vlan 100 ALS1(config-if-range)#switchport voice vlan 100 ALS1(config-if-range)#mls qos trust cos ALS1(config-if-range)#mls qos trust device cisco-phone ALS1(config-if-range)#exit |
By default, the Cisco IP phone does not trust traffic received from its LAN port and resets the QoS values to 0 (default). To allow the Cisco IP phone to trust the connected devices QoS settings, the trust boundary must be extended to the device. This task is completed as follows:
| ALS2(config)#interface range fastethernet 0/1 – 5 ALS2(config-if-range)#switchport mode access ALS2(config-if-range)#switchport access vlan 200 ALS2(config-if-range)#switchport voice vlan 201 ALS2(config-if-range)#mls qos trust cos ALS2(config-if-range)#switchport priority extend trust ALS2(config-if-range)#exit |
Verify the configuration using the show mls qos commands:
| ALS1#show mls qos interface fastethernet 0/1 FastEthernet0/1 trust state: not trusted trust mode: trust cos COS override: dis default COS: 0 pass-through: none trust device: cisco-phone |
NOTE: The port trust state will be ‘not trusted’ until a Cisco IP phone is connected to the port
| ALS2#show mls qos interface fastethernet 0/1 FastEthernet0/1 trust state: trust cos trust mode: trust cos COS override: dis default COS: 0 pass-through: none trust device: none |
You can also use the show interfaces switchport command to verify QoS configuration:
| ALS1#show interfaces fastethernet 0/1 switchport Name: Fa0/1 Switchport: Enabled Administrative Mode: static access Operational Mode: down Administrative Trunking Encapsulation: dot1q Negotiation of Trunking: Off Access Mode VLAN: 100 (DATA) Trunking Native Mode VLAN: 1 (default) Voice VLAN: 100 (DATA) Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk private VLANs: none Operational private-vlan: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Protected: false Appliance trust: none |
| ALS2#show interfaces fastethernet 0/1 switchport Name: Fa0/1 Switchport: Enabled Administrative Mode: static access Operational Mode: down Administrative Trunking Encapsulation: dot1q Negotiation of Trunking: Off Access Mode VLAN: 200 (DATA) Trunking Native Mode VLAN: 1 (default) Voice VLAN: 201 (VOICE) Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk private VLANs: none Operational private-vlan: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Protected: false Appliance trust: trusted |
Task 8
By default, Cisco IOS Catalyst switches uses a default CoS value of 0. To specify a default CoS value other than 0, you must explicitly configure the switch port using the mls qos cos [override] command. The [override] keyword overrides the configured trust state and assigns all traffic the configured CoS value.
| ALS1(config)#interface range fastethernet 0/10 – 12 ALS1(config-if-range)#switchport mode access ALS1(config-if-range)#mls qos cos 3 ALS1(config-if-range)#mls qos cos override ALS1(config-if-range)#exit |
| ALS2(config)#interface range fastethernet 0/10 – 12 ALS2(config-if-range)#switchport mode access ALS2(config-if-range)#mls qos cos 3 ALS2(config-if-range)#mls qos cos override ALS2(config-if-range)#exit |
Again, use the show mls qos commands to verify this configuration:
| ALS2#show mls qos interface fastethernet 0/12 FastEthernet0/12 trust state: not trusted trust mode: not trusted COS override: ena default COS: 3 pass-through: none trust device: none |
Final Switch Configurations
DLS1
|
DLS1#term len 0 Current configuration : 4834 bytes DLS1# |
DLS2
|
DLS2#term len 0 Current configuration : 4536 bytes DLS2# |
ALS1
|
ALS1#term len 0 Current configuration : 1856 bytes ALS1# |
ALS2
|
ALS2#term len 0 Current configuration : 1856 bytes ALS2# |
