QOS Lab cbmarking
CBMARKING?
要求:?
1、对VOIP流量,给予IP优先级5?
2、对于telnet流量,给予IP优先级4?
3、对于来自172.16.1.0的流量,给予IP优先级2
步骤:?
1、定义ACL?
R1(config)#access-list 100 permit udp any any range 16384 32767?
R1(config)#access-list 101 permit tcp any any eq 23?
R1(config)#access-list 102 permit ip 172.16.1.0 0.0.0.255 any
2、定义类别映射表?
R1(config)#class-map [match-any|match-all] VOIP?
R1(config-cmap)#match access-group 100
R1(config)#class-map [match-any|match-all] TELNET?
R1(config-cmap)#match access-group 101
R1(config)#class-map [match-any|match-all] NETWORK?
R1(config-cmap)#match access-group 102?
#show class-map
3、定义策略映射表?
R1(config)#policy-map XWX?
R1(config-pmap)#class VOIP?
R1(config-pmap-c)#set ip precedence 5?
R1(config-pmap)#class TELNET?
R1(config-pmap-c)#set ip precedence 4?
R1(config-pmap)#class NETWORK?
R1(config-pmap-c)#set ip precedence 2?
#show policy-map
4、调用?
R1(config)#int s0?
R1(config-if)#service-policy input XWX?
#show policy-map interface
#show policy-map?
#show class-map?
#show policy-map interface
class-map默认是match-all