Все привет.ТоварисЧи - я уже за!!!!!, сил нет - слов нет - ситуация следующая:
есть ME 3400 (Software (ME340x-METROACCESS-M), Version 12.2(40)SE)) - в первый порт вливаю трафик с pre5 - cмотрю на Policy-map и вижу ... ничего хорошего не вижу ... -он просто не полисит по входному интерфейсу - такое чувство, что он снимает все метки. Порты снифал - в порт чесно влитает pre 5.
class-map match-all rrr
match ip precedence 5policy-map rrr
class rrr
set ip precedence 5interface FastEthernet0/1
switchport access vlan 66
service-policy input rrrпытался класифицировать по access-list на интерфейсе , а потом цеплял полиси на это аксеслист и принудительно матчил трафик по pre 5 ... пытался матчить по vlan, а уже потом по прес. ... ничего не получается .... косячу где-то страшно
#######################################################
ME3400_2# sh policy-map interface fastEthernet 0/1
FastEthernet0/1Service-policy input: rrr
Class-map: rrr (match-all)
0 packets
Match: ip precedence 5
Set ip precedence 5Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any########################################################
E3400_2#sh interfaces fas
ME3400_2#sh interfaces fastEthernet 0/1
FastEthernet0/1 is up, line protocol is up (connected)
Hardware is Fast Ethernet, address is 0018.b9bb.5703 (bia 0018.b9bb.5703)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 5/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is 10/100BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:01, output 00:00:09, output hang never
Last clearing of "show interface" counters 00:03:26
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 2063000 bits/sec, 175 packets/sec
5 minute output rate 1000 bits/sec, 1 packets/sec
35916 packets input, 53263089 bytes, 0 no buffer
Received 0 broadcasts (103 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 103 multicast, 0 pause input
0 input packets with dribble condition detected
243 packets output, 26070 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out##########################################################
Единственное, чего удалос на нем добиться - это полисинг по VLAN в транке по nni интерфейсам - конфиг был таким:
class-map match-all vlan40
match vlan 40
class-map match-all vlan60
match vlan 60
class-map match-all vlan80
match vlan 80
class-map match-all 1
match access-group 18
class-map match-all 2
match access-group 18
class-map match-all 3
match access-group 18
class-map match-any ping-class
match access-group 101
!
!
policy-map 1-1
class 1
police cir 5000000
conform-action transmit
exceed-action drop
policy-map 2-1
class 2
police cir 5000000
conform-action transmit
exceed-action drop
policy-map 3-1
class 3
police cir 500000
conform-action transmit
exceed-action drop
policy-map Pa1
class vlan40
service-policy 1-1
class vlan60
service-policy 2-1
class vlan80
service-policy 3-1
!
!
!
interface FastEthernet0/2
port-type nni
switchport trunk allowed vlan 40,60,80
switchport mode trunk
ip access-group 18 in
service-policy input Pa1
!
interface FastEthernet0/3
port-type nni
switchport trunk allowed vlan 40,60,80
switchport mode trunk
!
!
!
access-list 18 permit any
>[оверквотинг удален]
> service-policy input Pa1
>!
>interface FastEthernet0/3
> port-type nni
> switchport trunk allowed vlan 40,60,80
> switchport mode trunk
>!
>!
>!
>access-list 18 permit anyА что необходимо сделать
если просто пропустить трафик с заданным IP precedence
то на порт не надо вешать policy#Default QoS Configuration
The packets are not modified (the CoS, DSCP, and IP precedence values in the packet are not changed). Traffic is switched in pass-through mode without any rewrites and classified as best effort without any policing.#если требуется дальнейшая обработка
то можно:
на входе
class-map match-any RT_USR_IN
description # Voice traffic
match ip precedence 5
policy-map Voice_IN
class RT_USR_IN
set qos-group 5на выходе(с другого интерфейса)
class-map match-any RT_OUT
description Voice traffic
match qos-group 5policy-map OUT
description Output police for Aggregation ports
class RT_OUT
priority
police cir 5000000
queue-limit 32
class VD_OUT...