2010年5月26日 星期三

Lab 7-1 Configuring Switches for IP Telephony Support

Topology
image

GNS檔案

DLS1
!
!Step 0: Basic Setting
configure terminal
no ip domain-lookup
hostname DLS1
enable secret cisco
line vty 0 15
password cisco
login
end
!
!Step 1: IP Addressing 
configure terminal
ip routing
interface vlan 1
ip address 172.16.1.3 255.255.255.0
no shutdown
interface vlan 100
ip address 172.16.100.3 255.255.255.0
no shutdown
interface vlan 200
ip address 172.16.200.3 255.255.255.0
no shutdown
end
!
!Step 2: Setting EtherChannels
!設定etherchannel建立channel-group1,2,3
configure terminal
interfacefa 1/7 - 12
shutdown
speed 100
duplex full
interfacefa 1/7 - 8
channel-group 1 mode on
channel-group 1 mode desirable
interfacefa 1/9 - 10
channel-group 2 mode on
channel-group 2 mode desirable
interfacefa 1/11 - 12
channel-group 3 mode on
channel-group 3 mode desirable
no shutdown
end
!
!設定etherchannel為trunk模式
configure terminal
interface port-channel1 – 3
switchport trunk encapsulation dot1q
switchport mode trunk
no shutdown
end
!
!Step 4: Setting VTP Server Mode
!設定VTP資訊(Server)
configure terminal
vtp domain SWPOD
vtp mode server
vtp version 2
!
!Step 5: Setting VLAN Information And Deploy To VTP Clinet
vlan 100
name CP-Data
exit
vlan 200
name Voice
exit
end
!
!Step 6: Setting HSRP
!設定HSRP(vlan1,vlan100為active,vlan200為standby)
configure terminal 
interfacevlan 1
standby 1 ip 172.16.1.1
standby 1 preempt
standby 1 priority 150
!
interfacevlan 100
standby 1 ip 172.16.100.1
standby 1 preempt
standby 1 priority 150
!
interfacevlan 200
standby 1 ip 172.16.200.1
standby 1 preempt
standby 1 priority 100
end
!
!Step 9: Setting Auto Qos Trust
!設定access與voice vlan及啟動auto qos
configure terminal
interfacefa 1/7 - 12
auto qos voip trust
end
!
!Step 10: Verify Auto Qos Trust
show auto qos interface
show mls qos interface fastethernet 0/7

DLS2
!
!Step 0: Basic Setting
configure terminal
no ip domain-lookup
hostname DLS2
enable secret cisco
line vty 0 15
password cisco
login
end
!
!Step 1: IP Addressing 
interface vlan 1
ip routing
configure terminal
ip address 172.16.1.4 255.255.255.0
no shutdown
interface vlan 100
ip address 172.16.100.4 255.255.255.0
no shutdown
interface vlan 200
ip address 172.16.200.4 255.255.255.0
no shutdown
end
!
!Step 2: Setting EtherChannels

!設定etherchannel建立channel-group1,2,3
configure terminal
interfacefa 1/7 - 12
shutdown
speed 100
duplex full
interfacefa 1/7 - 8
channel-group 1 mode on
channel-group 1 mode desirable
interfacefa 1/9 - 10
channel-group 2 mode on
channel-group 2 mode desirable
interfacefa 1/11 - 12
channel-group 3 mode on
channel-group 3 mode desirable
no shutdown
end
!
!設定etherchannel為trunk模式
configure terminal 
interface port-channel1 – 3
switchport trunk encapsulation dot1q
switchport mode trunk
no shutdown
end
!
!Step 4: Setting VTP Client Mode
!設定VTP資訊(Clinet)
configure terminal
vtp domain SWPOD
vtp mode client
end
!
!Step 6: Setting HSRP
!設定HSRP(vlan200為active,vlan1,vlan100為standby)
configure terminal
interfacevlan 1
standby 1 ip 172.16.1.1
standby 1 preempt
standby 1 priority 100
!
interfacevlan 100
standby 1 ip 172.16.100.1
standby 1 preempt
standby 1 priority 100
!
interfacevlan 200
standby 1 ip 172.16.200.1
standby 1 preempt
standby 1 priority 150
end
!
!Step 9: Setting Auto Qos Trust
!設定access與voice vlan及啟動auto qos
configure terminal
interfacefa 1/7 - 12
auto qos voip trust
end

ALS1
!
!Step 0: Basic Setting
configure terminal
no ip domain-lookup
hostname ALS1
enable secret cisco
line vty 0 15
password cisco
login
end
!
!Step 1: IP Addressing 
configure terminal
interface vlan 1
ip address 172.16.1.101 255.255.255.0
no shutdown
exit
ip default-gateway 172.16.1.1
end
!
!Step 2: Setting EtherChannels
!設定etherchannel建立channel-group1,2,3
configure terminal
interfacefa 1/7 - 12
shutdown
speed 100
duplex full
interfacefa 1/7 - 8
channel-group 1 mode on
channel-group 1 mode desirable
interfacefa 1/9 - 10
channel-group 2 mode on
channel-group 2 mode desirable
interfacefa 1/11 - 12
channel-group 3 mode on
channel-group 3 mode desirable
no shutdown
end
!
!設定etherchannel為trunk模式
configure terminal
interface port-channel1 - 3
switchport mode trunk
no show
end
!
!Step 3: Setting VTP Client Mode
!設定VTP資訊(Clinet)
configure terminal
vtp domain SWPOD
vtp mode client
end
!
!Step 7: Setting Auto Qos
!設定access與voice vlan及啟動auto qos
configure terminal
interfacefa 1/13 - 15
switchport access vlan 100
switchport voice vlan 200
auto qos voip
auto qos voip cisco-phone
end
!
!Step 8: Verity AutoQos Setting
show mls qos int fa 1/15
show run interface fastethernet 1/15
end
!
!Step 12: Setting Portfast Function 
!設定spanning-tree portfast
configure terminal
interfacefa 1/13 - 15
spanning-tree portfast
end

ALS2
!
!Step 0: Basic Setting 
configure terminal
no ip domain-lookup
hostname ALS2
enable secret cisco
line vty 0 15
password cisco
login
end
!
!Step 1: IP Addressing 
configure terminal
interface vlan 1
ip address 172.16.1.102 255.255.255.0
no shutdown
exit
ip default-gateway 172.16.1.1
end
!
!Step 2: Setting EtherChannels
!設定etherchannel建立channel-group1,2,3
configure terminal
interfacefa 1/7 - 12
shutdown
speed 100
duplex full
interfacefa 1/7 - 8
channel-group 1 mode on
channel-group 1 mode desirable
interfacefa 1/9 - 10
channel-group 2 mode on
channel-group 2 mode desirable
interfacefa 1/11 - 12
channel-group 3 mode on
channel-group 3 mode desirable
no shutdown
end 

!設定etherchannel為trunk模式
configure terminal
interface port-channel1 - 3
switchport mode trunk
no shutdown
end
!
!Step 3: Setting VTP Client Mode
!設定VTP資訊(Clinet)
configure terminal
vtp domain SWPOD
vtp mode client
end
!
!Step 7: Setting Auto Qos
!設定access與voice vlan及啟動auto qos
configure terminal
interfacefa 1/13 - 15
switchport access vlan 100
switchport voice vlan 200
auto qos voip
auto qos voip cisco-phone
end
!
!Step 11: Manual Setting interface COS Value
conf t
int fa 1/7
mls qos cos 3
end
!
!Step 12: Setting Portfast Function 
!設定spanning-tree portfast
configure terminal
interfacefa 1/13 - 15
spanning-tree portfast
end

showow指令
showip interfacebrief
show cdp neighbors
show etherchannel summary
show etherchannel detail
show vlan-switch
show vlan
show vtp status
show standby brief
show mls qos interface(介面 代號)
show auto qos interface

參考文件
Useing AutoQos

Understanding and Troubleshooting HSRP Problems in Catalyst Switch Networks

Understanding EtherChannel Load Balancing and Redundancy on Catalyst Switches

沒有留言:

張貼留言