說明:QOS的其中的…什麼Q什麼Q,我什麼都不記得啦!這次Show Run很長…
實作項目:
Site_A Show Run
Site_A#show run
Building configuration...
Current configuration : 2852 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Site_A
!
CLASS-MAP之區段
class-map match-all VOICE_TRAFFIC RTP(語音)流量
match protocol rtp
class-map match-all TELNET_ROB Telnet流量並符合ACL 100
match access-group 100
match protocol telnet
class-map match-all TELNET_OTHER 其餘Telnet的流量
match protocol telnet
class-map match-all BOSS_IP 符合ACL 101
match access-group 101
class-map match-all FTP_TRAFFIC FTP流量
match protocol ftp
class-map match-all HTTP_TRAFFIC 符合ACL 102
match access-group 102
!
class-map match-all CLASS_IPP_7 pre 7 流量
match ip precedence 7
class-map match-any CLASS_IPP_5_6 pre 5或6 流量
match ip precedence 5
match ip precedence 6
class-map match-all CLASS_IPP_4 pre 4 流量
match ip precedence 4
class-map match-any CLASS_IPP_1_3 pre 1或3 流量
match ip precedence 1
match ip precedence 3
class-map match-all CLASS_IPP_0 pre 0 流量
match ip precedence 0
POLICY-MAP之區段
policy-map FAS0/0_IN 設定F0/0 In 的 policy-map
class VOICE_TRAFFIC 符合class VOICE_TRAFFIC 設 pre7
set precedence 7
class TELNET_ROB 符合class TELNET_ROB 設 pre6
set precedence 6
class TELNET_OTHER 其餘Telnet 流量設 pre5
set precedence 5
class BOSS_IP 符合class BOSS_IP 設 pre4
set precedence 4
class HTTP_TRAFFIC 符合class HTTP_TRAFFIC 設 3
set precedence 3
class FTP_TRAFFIC 符合class FTP_TRAFFIC 設 0
set precedence 0
class class-default 非以上流量,其餘設 pre1
set precedence 1
!
policy-map S0/0/0_OUT 設定S0/0/0 Out 的 policy-map
class CLASS_IPP_7
bandwidth 128
符合class CLASS_IPP_7 設定成BW 128 Kbps
class CLASS_IPP_5_6
bandwidth 128
random-detect
random-detect precedence 5 40 80 5
random-detect precedence 6 60 80 5
符合class CLASS_IPP_5_6 設定成BW 128 Kbps
並 pre 5 的 Queue長度設成最小40、最大80、20%我忘了是啥洨…
並 pre 6 的 Queue長度設成最小60、最大80、20%我忘了是啥洨…
備註:40和80是以 Packet 為單位
備註:5為100/5=20%
class CLASS_IPP_4
bandwidth 256
queue-limit 128
符合class CLASS_IPP_4 設定成BW 128 Kbps、Queue長度128 Packet
class CLASS_IPP_1_3
bandwidth 256
random-detect
random-detect precedence 1 80 120 4
random-detect precedence 3 60 120 4
符合class CLASS_IPP_1_3 設定成BW 256 Kbps
並 pre 1 的 Queue 設成最小80、最大120、25%我忘了是啥洨…
並 pre 3 的 Queue 設成最小60、最大120、25%我忘了是啥洨…
class CLASS_IPP_0
bandwidth 64
queue-limit 1024
符合class CLASS_IPP_0 設定成BW 64 Kbps、Queue長度1024 Packet
備註:Policy-Map 順序很重要,是一行一行判斷下來的
!
各介面之區段
interface FastEthernet0/0
ip address 192.168.10.254 255.255.255.0
service-policy input FAS0/0_IN policy-map FAS0/0_IN 設定於 F0/0的In
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.10.10.1 255.255.255.0
service-policy output S0/0/0_OUT policy-map S0/0/0_OUT 設定於 S0/0/0的Out
hold-queue 1024 out
clock rate 128000
!
ip classless
ip route 192.168.20.0 255.255.255.0 10.10.10.2
!
ACL之區段
access-list 100 permit ip any host 10.10.10.2
access-list 101 permit ip host 192.168.10.100 any
access-list 102 permit tcp any any eq www
!
語音之區段 此部份詳解
dial-peer voice 2000 voip
destination-pattern 20..
session target ipv4:192.168.20.254
!
telephony-service
max-ephones 10
max-dn 20
ip source-address 192.168.10.254 port 2000
auto assign 5 to 9
!
ephone-dn 1
number 1001
!
ephone-dn 2
number 1002
!
ephone-dn 3
number 1003
!
ephone-dn 4
number 1004
!
ephone 1
device-security-mode none
mac-address 0000.1111.1111
type CIPC
button 1:1
!
ephone 2
device-security-mode none
mac-address 0000.1111.2222
type CIPC
button 1:2
!
ephone 3
device-security-mode none
mac-address 0050.0F46.C02A
!
line con 0
line vty 0 4
no login
!
end
Show 指令
show policy-map interface serial 0/0/0
show interfaces serial 0/0/0
show queue serial 0/0/0
請先 登入 以發表留言。