Published 6月 12, 2018 by with 0 comment

CCNP-BCMSN-v5.0 Lab 7-1: Configuring Switches for IP Telephony Support



!!!I used real Cisco 3550 switch *4 to do this lab. I did not use Dynamips to do this lab.!!!


Objective:
‧ Configure auto QoS to support IP phones
‧ Configure CoS override for data frames
‧ Configure the distribution layer to trust access layer QoS measures
‧ Manually configure CoS for devices that cannot specify CoS (camera)
‧ Configure HSRP for voice and data VLANS to ensure redundancy
‧ Configure 802.1Q trunks and EtherChannels for Layer 2 redundancy and load balancing


Scenario:
You must configure the access and distribution layer switches to trust the CoS
mapping provided by the IP phone through Cisco Discovery Protocol (CDP).It is not
necessary to have a camera to successfully complete the lab.


Basic Configuration:
All Switches:
enable
configure terminal
!
no ip domain lookup
!
line console 0
 logging synchronous
 exec-timeout 0 0
!
hostname


Step 1
Start by deleting the vlan.dat file, erasing the startup config, and reloading all your switches.
All Switches:
Clearing all Switches


Step 2
Configure management IP addresses in VLAN 1, hostname, password, and
telnet access on all four switches.
DLS1(config)#hostname DLS1
DLS1(config)#enable secret cisco
DLS1(config)#line vty 0 15
DLS1(config-line)#password cisco
DLS1(config-line)#logging synchronous
DLS1(config-line)#exit
DLS1(config)#interface vlan 1
DLS1(config-if)#ip address 172.16.1.3 255.255.255.0
DLS1(config-if)#no shutdown

DLS2(config)#hostname DLS2
DLS2(config)#enable secret cisco
DLS2(config)#line vty 0 15
DLS2(config-line)#password cisco
DLS2(config-line)#login
DLS2(config-line)#logging synchronous
DLS2(config-line)#exit
DLS2(config)#interface vlan 1
DLS2(config-if)#ip address 172.16.1.4 255.255.255.0
DLS2(config-if)#no shutdown

ALS1(config)#hostname ALS1
ALS1(config)#enable secret cisco
ALS1(config)#line vty 0 15
ALS1(config-line)#password cisco
ALS1(config-line)#login
ALS1(config-line)#logging synchronous
ALS1(config-line)#exit
ALS1(config)#interface vlan 1
ALS1(config-if)#ip address 172.16.1.101 255.255.255.0
ALS1(config-if)#no shutdown

ALS2(config)#hostname ALS2
ALS2(config)#enable secret cisco
ALS2(config)#line vty 0 15
ALS2(config-line)#password cisco
ALS2(config-line)#login
ALS2(config-line)#logging synchronous
ALS2(config-line)#exit
ALS2(config)#interface vlan 1
ALS2(config-if)#ip address 172.16.1.102 255.255.255.0
ALS2(config-if)#no shutdown

Configure default gateways on the access layer switches.
ALS1(config)#ip default-gateway 172.16.1.1

ALS2(config)#ip default-gateway 172.16.1.1


Step 3
Configure the trunks according to the diagram, and configure EtherChannels
between the switches. Using EtherChannel for the trunks provides Layer 2 load
balancing over redundant trunks.
DLS1(config)#interface range fastEthernet 0/7 - 8
DLS1(config-if-range)#switchport trunk encapsulation dot1q
DLS1(config-if-range)#switchport mode trunk
DLS1(config-if-range)#channel-group 3 mode desirable

DLS1(config)#interface range fastEthernet 0/9 - 10
DLS1(config-if-range)#switchport trunk encapsulation dot1q
DLS1(config-if-range)#switchport mode trunk
DLS1(config-if-range)#channel-group 4 mode desirable

DLS1(config)#interface range fastEthernet 0/11 - 12
DLS1(config-if-range)#switchport trunk encapsulation dot1q
DLS1(config-if-range)#switchport mode trunk
DLS1(config-if-range)#channel-group 2 mode desirable

DLS2(config)#interface range fastEthernet 0/7 - 8
DLS2(config-if-range)#switchport trunk encapsulation dot1q
DLS2(config-if-range)#switchport mode trunk
DLS2(config-if-range)#channel-group 4 mode desirable

DLS2(config)#interface range fastEthernet 0/9 - 10
DLS2(config-if-range)#switchport trunk encapsulation dot1q
DLS2(config-if-range)#switchport mode trunk
DLS2(config-if-range)#channel-group 3 mode desirable
      
DLS2(config)#interface range fastEthernet 0/11 - 12
DLS2(config-if-range)#switchport trunk encapsulation dot1q
DLS2(config-if-range)#switchport mode trunk
DLS2(config-if-range)#channel-group 1 mode desirable

ALS1(config)#interface range fastEthernet 0/7 - 8
ALS1(config-if-range)#switchport trunk encapsulation dot1q
ALS1(config-if-range)#switchport mode trunk
ALS1(config-if-range)#channel-group 1 mode desirable

ALS1(config)#interface range fastEthernet 0/9 - 10
ALS1(config-if-range)#switchport trunk encapsulation dot1q
ALS1(config-if-range)#switchport mode trunk
ALS1(config-if-range)#channel-group 2 mode desirable

ALS1(config)#interface range fastEthernet 0/11 - 12
ALS1(config-if-range)#switchport trunk encapsulation dot1q
ALS1(config-if-range)#switchport mode trunk
ALS1(config-if-range)#channel-group 4 mode desirable

ALS2(config)#interface range fastEthernet 0/7 - 8
ALS2(config-if-range)#switchport trunk encapsulation dot1q
ALS2(config-if-range)#switchport mode trunk
ALS2(config-if-range)#channel-group 2 mode desirable

ALS2(config)#interface range fastEthernet 0/9 - 10
ALS2(config-if-range)#switchport trunk encapsulation dot1q
ALS2(config-if-range)#switchport mode trunk
ALS2(config-if-range)#channel-group 1 mode desirable

ALS2(config)#interface range fastEthernet 0/11 - 12
ALS2(config-if-range)#switchport trunk encapsulation dot1q
ALS2(config-if-range)#switchport mode trunk
ALS2(config-if-range)#channel-group 3 mode desirable

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
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port


Number of channel-groups in use: 3
Number of aggregators:           3

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
2      Po2(SU)         PAgP      Fa0/11(P)   Fa0/12(P) 
3      Po3(SU)         PAgP      Fa0/7(P)    Fa0/8(P)  
4      Po4(SU)         PAgP      Fa0/9(P)    Fa0/10(P) 

DLS1#


Step 4
Change the VTP mode of ALS1 and ALS2 to client.
ALS1(config)#vtp mode client

ALS2(config)#vtp mode client

ALS2#show vtp status
VTP Version                     : running VTP1 (VTP2 capable)
Configuration Revision          : 0
Maximum VLANs supported locally : 1005
Number of existing VLANs        : 5
VTP Operating Mode              : Client
VTP Domain Name                 :
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x57 0xCD 0x40 0x65 0x63 0x59 0x47 0xBD
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
ALS2#


Step 5
Create the VTP domain on DLS1, and create VLANs 100 and 200 for the
computer data and voice VLANs in the domain.
DLS1(config)#vtp domain SWPOD
DLS1(config)#vlan 100
DLS1(config-vlan)#name CP-Data
DLS1(config-vlan)#exit
DLS1(config)#vlan 200
DLS1(config-vlan)#name Voice
DLS1(config-vlan)#exit


Step 6
Configure Hot Standby Router Protocol (HSRP) between the VLANs to provide
redundancy in the network. Use the ip routing command on DLS1 and DLS2 to
activate routing capabilities on the switch. Notice in the following
configurations that the priority for VLANs 1 and 100 has been configured for
150 on DLS1, making DLS1 the active router for those VLANs. VLAN 200 has
been configured for a priority of 100 on DLS1, making DLS1 the standby router
for this VLAN. Reverse priorities have been configured on the VLANs on DLS2.
DLS1(config)#ip routing

DLS1(config)#interface vlan 1
DLS1(config-if)#standby 1 ip 172.16.1.1
DLS1(config-if)#standby 1 preempt
DLS1(config-if)#standby 1 priority 150

DLS1(config)#interface vlan 100
DLS1(config-if)#ip address 172.16.100.3 255.255.255.0
DLS1(config-if)#standby 1 ip 172.16.100.1
DLS1(config-if)#standby 1 preempt
DLS1(config-if)#standby 1 priority 150

DLS1(config)#interface vlan 200
DLS1(config-if)#ip address 172.16.200.3 255.255.255.0
DLS1(config-if)#standby 1 ip 172.16.200.1
DLS1(config-if)#standby 1 preempt
DLS1(config-if)#standby 1 priority 100

DLS2(config)#ip routing

DLS2(config)#interface vlan 1
DLS2(config-if)#standby 1 ip 172.16.1.1
DLS2(config-if)#standby 1 preempt
DLS2(config-if)#standby 1 priority 100

DLS2(config)#interface vlan 100
DLS2(config-if)#ip address 172.16.100.4 255.255.255.0
DLS2(config-if)#standby 1 ip 172.16.100.1
DLS2(config-if)#standby 1 preempt
DLS2(config-if)#standby 1 priority 100

DLS2(config)#interface vlan 200
DLS2(config-if)#ip address 172.16.200.4 255.255.255.0
DLS2(config-if)#standby 1 ip 172.16.200.1
DLS2(config-if)#standby 1 preempt
DLS2(config-if)#standby 1 priority 200

DLS1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 3 subnets
C       172.16.200.0 is directly connected, Vlan200
C       172.16.1.0 is directly connected, Vlan1
C       172.16.100.0 is directly connected, Vlan100
DLS1#


Step 7
Configure Fast Ethernet access ports 15 to 24 to trust the CoS for recognized
IP phones on the network. Any port that has a device other than a Cisco phone
will not trust the CoS that is advertised.
ALS1(config)#interface range fastEthernet 0/15 - 24
ALS1(config-if-range)#switchport access vlan 100
ALS1(config-if-range)#switchport voice vlan 200
ALS1(config-if-range)#auto qos voip cisco-phone

ALS2(config)#interface range fastEthernet 0/15 - 24
ALS2(config-if-range)#switchport access vlan 100
ALS2(config-if-range)#switchport voice vlan 200
ALS2(config-if-range)#auto qos voip cisco-phone


Step 8
Verify the auto QoS configuration at the access layer.
ALS1#show mls qos interface fastEthernet 0/15
FastEthernet0/15
trust state: not trusted
trust mode: trust cos
COS override: dis
default COS: 0
DSCP Mutation Map: Default DSCP Mutation Map
Trust device: cisco-phone

ALS1#
ALS1#show running-config interface fastEthernet 0/15
Building configuration...

Current configuration : 489 bytes
!
interface FastEthernet0/15
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
end

ALS1#

Step 9
Configure the distribution layer switches to trust the CoS information in the
Layer 2 frames being sent from the access layer.
DLS1(config)#mls qos
DLS1(config)#interface range fastEthernet 0/7 - 12
DLS1(config-if-range)#auto qos voip trust

DLS2(config)#mls qos
DLS2(config)#interface range fastEthernet 0/7 - 12
DLS2(config-if-range)#auto qos voip trust


Step 10
Verify auto QoS at the distribution layer on DLS1 and DLS2.
DLS1#show auto qos interface
FastEthernet0/7
auto qos voip trust

FastEthernet0/8
auto qos voip trust

FastEthernet0/9
auto qos voip trust

FastEthernet0/10
auto qos voip trust

FastEthernet0/11
auto qos voip trust

FastEthernet0/12
auto qos voip trust

DLS1#
DLS1#show mls qos interface fastEthernet 0/7
FastEthernet0/7
trust state: trust cos
trust mode: trust cos
COS override: dis
default COS: 0
DSCP Mutation Map: Default DSCP Mutation Map
Trust device: none

DLS1#


Step 11
A camera needs to be moved from its current location in the network and
connected to FastEthernet0/5 of ALS2. Assign a CoS of 3 to ensure that
the video traffic is identified by other switches and routers within the network.
ALS2(config)#interface fastEthernet 0/5
ALS2(config-if)#mls qos cos 3

ALS2#show mls qos interface fastEthernet 0/5
FastEthernet0/5
trust state: not trusted
trust mode: not trusted
COS override: dis
default COS: 3
DSCP Mutation Map: Default DSCP Mutation Map
Trust device: none

ALS2#


Final Configurations
DLS1:
hostname DLS1
!
enable secret 5 $1$FEXu$LjFnOeXx4e0b3ThZ4I7Mc/
!
mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos min-reserve 5 170
mls qos min-reserve 6 85
mls qos min-reserve 7 51
mls qos min-reserve 8 34
mls qos
ip routing
!
no ip domain-lookup
!
interface Port-channel3
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel4
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel2
 switchport trunk encapsulation dot1q
 switchport mode trunk
!       
interface FastEthernet0/7
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 3 mode desirable
!
interface FastEthernet0/8
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 3 mode desirable
!
interface FastEthernet0/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 4 mode desirable
!       
interface FastEthernet0/10
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 4 mode desirable
!
interface FastEthernet0/11
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 2 mode desirable
!
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 2 mode desirable
!
interface Vlan1
 ip address 172.16.1.3 255.255.255.0
 standby 1 ip 172.16.1.1
 standby 1 priority 150
 standby 1 preempt
!
interface Vlan100
 ip address 172.16.100.3 255.255.255.0
 standby 1 ip 172.16.100.1
 standby 1 priority 150
 standby 1 preempt
!
interface Vlan200
 ip address 172.16.200.3 255.255.255.0
 standby 1 ip 172.16.200.1
 standby 1 preempt
!
line con 0
 exec-timeout 0 0
 logging synchronous
line vty 0 4
 password cisco
 logging synchronous
 login
 length 0
line vty 5 15
 password cisco
 logging synchronous
 login
 length 0
!
end

DLS2:
hostname DLS2
!
enable secret 5 $1$9.s3$JEN.2c8nRCWe9wf3vgvvQ/
!
mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos min-reserve 5 170
mls qos min-reserve 6 85
mls qos min-reserve 7 51
mls qos min-reserve 8 34
mls qos
!
ip routing
!
no ip domain-lookup
!
interface Port-channel4
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel3
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel1
 switchport trunk encapsulation dot1q
 switchport mode trunk
!       
interface FastEthernet0/7
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 4 mode desirable
!
interface FastEthernet0/8
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 4 mode desirable
!
interface FastEthernet0/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 3 mode desirable
!       
interface FastEthernet0/10
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 3 mode desirable
!
interface FastEthernet0/11
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 1 mode desirable
!
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
 mls qos trust cos
 auto qos voip trust
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 channel-group 1 mode desirable
!
interface Vlan1
 ip address 172.16.1.4 255.255.255.0
 standby 1 ip 172.16.1.1
 standby 1 preempt
!
interface Vlan100
 ip address 172.16.100.4 255.255.255.0
 standby 1 ip 172.16.100.1
 standby 1 preempt
!
interface Vlan200
 ip address 172.16.200.4 255.255.255.0
 standby 1 ip 172.16.200.1
 standby 1 priority 200
 standby 1 preempt
!
line con 0
 exec-timeout 0 0
 logging synchronous
line vty 0 4
 password cisco
 logging synchronous
 login
 length 0
line vty 5 15
 password cisco
 logging synchronous
 login
 length 0
!
end

ASL1:
hostname ALS1
!
enable secret 5 $1$CKn.$ikYJaJFRqUkiyFJ6oMY2l/
!
mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos min-reserve 5 170
mls qos min-reserve 6 85
mls qos min-reserve 7 51
mls qos min-reserve 8 34
mls qos
!
no ip domain-lookup
!
interface Port-channel1
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel2
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel4
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/7
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode desirable
!
interface FastEthernet0/8
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode desirable
!
interface FastEthernet0/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode desirable
!
interface FastEthernet0/10
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode desirable
!
interface FastEthernet0/11
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 4 mode desirable
!
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 4 mode desirable
!       
interface FastEthernet0/15
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/16
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/17
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/18
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/19
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/20
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/21
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/22
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/23
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/24
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface Vlan1
 ip address 172.16.1.101 255.255.255.0
!
ip default-gateway 172.16.1.1
!
line con 0
 exec-timeout 0 0
 logging synchronous
line vty 0 4
 password cisco
 logging synchronous
 login
 length 0
line vty 5 15
 password cisco
 logging synchronous
 login
 length 0
!
end

ALS2:
hostname ALS2
!
enable secret 5 $1$YCl6$AUgtt/01cv3yVwNw.6USB.
!
mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos min-reserve 5 170
mls qos min-reserve 6 85
mls qos min-reserve 7 51
mls qos min-reserve 8 34
mls qos
!
no ip domain-lookup
!
interface Port-channel3
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel1
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel2
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface FastEthernet0/5
 switchport mode dynamic desirable
 mls qos cos 3
!
interface FastEthernet0/7
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode desirable
!       
interface FastEthernet0/8
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode desirable
!
interface FastEthernet0/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode desirable
!
interface FastEthernet0/10
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode desirable
!
interface FastEthernet0/11
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 3 mode desirable
!
interface FastEthernet0/12
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 3 mode desirable
!
interface FastEthernet0/15
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/16
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!       
interface FastEthernet0/17
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/18
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/19
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/20
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/21
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/22
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/23
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface FastEthernet0/24
 switchport access vlan 100
 switchport mode dynamic desirable
 switchport voice vlan 200
 mls qos trust device cisco-phone
 mls qos trust cos
 auto qos voip cisco-phone
 wrr-queue bandwidth 10 20 70 1
 wrr-queue min-reserve 1 5
 wrr-queue min-reserve 2 6
 wrr-queue min-reserve 3 7
 wrr-queue min-reserve 4 8
 wrr-queue cos-map 1 0 1
 wrr-queue cos-map 2 2 4
 wrr-queue cos-map 3 3 6 7
 wrr-queue cos-map 4 5
 priority-queue out
 spanning-tree portfast
!
interface Vlan1
 ip address 172.16.1.102 255.255.255.0
!       
ip default-gateway 172.16.1.1
!
line con 0
 exec-timeout 0 0
 logging synchronous
line vty 0 4
 password cisco
 logging synchronous
 login
 length 0
line vty 5 15
 password cisco
 logging synchronous
 login
 length 0
!       
end


Reference:
Cisco Networking Academy
http://www.cisco.com/web/learning/netacad/index.html

CCNP Version 5.0: Building Multilayer Switched Networks
Student Lab Manual


最初發表 / 最後更新: 2008.10.13 / 2018.06.12

0 comments:

張貼留言