Alcatel-Lucent omnistack 6300 Guía Del Usuario

Descargar
Página de 21
Console(config)# policy-map P1 
Console(Config-pmap)# class FLOW1 
Console(Config-pmap-c)# set cos 7 
Console(Config-pmap-c)# police 1000 1000 exceed-action drop 
Console(config-pmap-c)# exit 
Console(Config-pmap)# class FLOW2 
Console(Config-pmap-c)# set ip precedence 5 
Console(Config-pmap-c)# police 2000 1000 exceed-action drop 
Console(config-pmap-c)# exit 
Console(Config-pmap)# exit 
 
Console(config)# interface ethernet 1/1 
Console(Config-if)# service-policy input P1 
Console(Config-if)# exit 
Console(config)# interface ethernet 1/2 
Console(Config-if)# service-policy input P1 
Console(Config-if)# exit 
 
Flow1 is shaped to 1Mbps 
Flow2 is shaped to 2Mbps 
Packets exiting OmniSwitch6300 have 802.1p 7 and ToS byte unchanged for Flow1 
Packets exiting OmniSwitch6300 have 802.1p unchanged and ToS byte precedence 5 for Flow2 
 
6.6 Ingress “Service Policy”: 1 “Policy Map” + 1 “ip precedence” and 1 “ip dscp” 
“Class Map” with action set cos, set ip precedence and rate limiting (exceed set ip 
dscp) 
We want to: 
set cos 7 for flow1 (packets with ToS 3) and “set ip dscp to 63”  if  flow1 exceeds  1Mbps 
set ip precedence 5 for flow2 (packets with DSCP 12) and “set ip dscp to 63”  if  flow1 exceeds  2Mbps 
 
Console(config)# access-list ip mask-precedence in 
Console(config-ip-mask-acl)# mask any any precedence 
Console(config-ip-mask-acl)# mask any any dscp 
Console(config-ip-mask-acl)#exit 
 
 
Console(config)# class-map FLOW1 match-any 
Console(Config-cmap)# match ip precedence 3 
Console(config-cmap)# exit 
 
Console(config)# class-map FLOW2 match-any 
Console(Config-cmap)# match ip dscp 12 
Console(config-cmap)# exit 
 
Console(config)# policy-map P1 
Console(Config-pmap)# class FLOW1 
Console(Config-pmap-c)# set cos 7 
Console(Config-pmap-c)# police 1000 1000 exceed-action set ip dscp 63 
Console(config-pmap-c)# exit 
Console(Config-pmap)# class FLOW2 
Console(Config-pmap-c)# set ip precedence 5 
Console(Config-pmap-c)# police 2000 1000 exceed-action set ip dscp 62 
Console(config-pmap-c)# exit 
Console(Config-pmap)# exit 
 
Console(config)# interface ethernet 1/1 
Console(Config-if)# service-policy input P1 
Console(Config-if)# exit 
Console(config)# interface ethernet 1/2 
Console(Config-if)# service-policy input P1 
Console(Config-if)# exit