国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網絡通信 > 正文

一個很有實用價值的QoS策略配置實例

2019-11-04 12:30:26
字體:
來源:轉載
供稿:網友

  某公司QoS策略配置實例

Current configuration : 3568 bytes

!

!

version 12.2

service timestamps debug datetime

service timestamps log datetime

service passWord-encryption

!

hostname xxxxxx

!

enable secret 5 $1$uJPt$/Uh

!

clock timezone China 8

ip subnet-zero

no ip source-route

ip cef

!

!

ip name-server x.x.x.x

ip name-server x.x.x.x

!

no ip bootp server

!

class-map match-any PRemium_class

description For premium

match protocol fasttrack

match protocol http

match protocol icmp

match protocol napster

match protocol netshow

match protocol pcanywhere

match protocol realaudio

match protocol streamwork

match protocol vdolive

match protocol cuseeme

match protocol telnet

match protocol secure-http

match access-group 110

match ip precedence 5

match ip precedence 4

match ip precedence 3

class-map match-any normal_calss

description For normal

match protocol FTP

match protocol imap

match protocol pop3

match protocol secure-ftp

match protocol secure-imap

match protocol secure-pop3

match protocol smtp

match access-group 120

match ip precedence 2

match ip precedence 1

!

!

policy-map qos_policy_map

class premium_class

bandwidth percent 50

random-detect

random-detect eXPonential-weighting-constant 4

police cir 2000000 bc 10000 be 10000

conform-action transmit

exceed-action transmit

class normal_calss

bandwidth percent 25

random-detect

random-detect exponential-weighting-constant 4

police cir 2000000 bc 2000 be 2000

conform-action transmit

exceed-action drop

!

!

!

!

interface FastEthernet0/0

ip address 192.168.0.1 255.255.255.0

ip address 192.168.1.1 255.255.255.0 secondary

ip access-group 130 in

ip verify unicast reverse-path

ip nat inside

ip route-cache same-interface

ip route-cache policy

ip policy route-map qos

duplex auto

speed auto

no cdp enable

!

interface Serial0/0

bandwidth 2048

ip address x.x.x.x 255.255.255.252

ip verify unicast reverse-path

no ip proxy-arp

ip nat outside

rate-limit input 2000000 20000 20000 conform-action transmit exceed-action drop

ip route-cache policy

service-policy output qos_policy_map

no cdp enable

!

ip nat inside source list 10 interface Serial0/0 overload

ip classless

ip route 0.0.0.0 0.0.0.0 x.x.x.x

ip route 192.168.0.0 255.255.255.0 192.168.1.1

ip route 192.168.1.0 255.255.255.0 192.168.0.1

no ip http server

no ip pim bidir-enable

!

!

access-list 10 remark NAT

access-list 10 permit 192.168.0.0 0.0.0.255

access-list 10 permit 192.168.1.0 0.0.0.255

access-list 110 remark normal

access-list 110 permit ip 192.168.0.0 0.0.0.255 any

access-list 120 remark premium

access-list 120 permit ip 192.168.1.0 0.0.0.255 any

access-list 130 remark anti BT and anti-virus

access-list 130 deny tcp any any range 6881 6890 time-range work

access-list 130 deny tcp any range 6881 6890 any time-range work

access-list 130 deny tcp any any range 6969 6979 time-range work

access-list 130 deny tcp any range 6969 6979 any time-range work

access-list 130 deny tcp any any range 7000 7100 time-range work

access-list 130 deny tcp any range 7000 7100 any time-range work

access-list 130 deny tcp any any range 9995 9996

access-list 130 deny tcp any range 9995 9996 any

access-list 130 deny tcp any any eq 5554

access-list 130 deny tcp any eq 5554 any

access-list 130 permit ip any any

no cdp run

route-map qos permit 10

match ip address 110

set ip precedence priority

!

route-map qos permit 20

match ip address 120

set ip precedence critical

!

banner motd ^CUnauthorized access will be Prosecuted!!!^C

!

line con 0

exec-timeout 0 0

line aux 0

line vty 0 4

password 7 121A0C0411045D5D7C

login

!

time-range work

periodic weekdays 8:30 to 18:00

!

!

end

公司有兩個內網段:192.168.0.0/24,192.168.1.0/24。

192.168.0.0/24為低優先級內網段,192.168.1.0/24為高優先級內網段。

在class-map中premium_class類包括了192.168.1.0/24高優先級內網段,采用NBAR匹配實時性較高的應用如:napster、netshow、pcanywhere、realaudio、streamwork、vdolive、cuseeme、telnet等。

normal_class類包括了192.168.0.0/24低優先級內網段,采用NBAR匹配實時性不強的應用如:ftp、pop3、smtp等。

在policy-map中針對不同的class,采取不同的策略。如:CBWFQ、WRED等。因為公司互聯網帶寬為2M,故考慮WRED中的指數加權因子為4,最小閥值為5,最大閥值為17,標記幾率分母為1。

在route-map(PBR)中采用匹配不同的ACL 110#,ACL 120#。設置不同的IP precedence值。

在F 0/0以太口上增加inbound policy--ACL 130#,在上班時間8:30到18:00禁止BT下載。限制震蕩波病毒的端口。

在S 0/0串口上采用Input CAR策略。對進入S 0/0串口的流量進行整形。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 黄冈市| 祥云县| 潮安县| 崇州市| 庄河市| 昭平县| 泗阳县| 绍兴市| 抚宁县| 彰化县| 壶关县| 诸暨市| 历史| 白水县| 海淀区| 长顺县| 孝感市| 陕西省| 德庆县| 汶上县| 辰溪县| 定陶县| 石家庄市| 临沧市| 东源县| 淳安县| 邹城市| 界首市| 曲阜市| 防城港市| 中江县| 新巴尔虎左旗| 中阳县| 乌鲁木齐市| 云南省| 瑞安市| 丰县| 正镶白旗| 陕西省| 行唐县| 延安市|