Xin chao Thay & cac ban,
Em cấu hình giới hạn bandwidth trên switch 6513 nhưng không được, không biết có thiếu gì không ? Lúc trước cấu hình trên con 3750 cũng không được & Thầy Thuần cho biết con switch này không hỗ trợ.
Dưới đây là cấu hình:
class-map match-any traffic_all
match access-group 101
!
!
policy-map limit_bandwidth
class traffic_all
bandwidth 2048
…
…
interface GigabitEthernet4/25
no ip address
switchport
switchport mode trunk
service-policy input limit_bandwidth
service-policy output limit_bandwidth
!
interface FastEthernet5/1
no ip address
switchport
switchport access vlan 100
switchport mode access
spanning-tree portfast
service-policy input limit_bandwidth
service-policy output limit_bandwidth
!
..
..
access-list 101 permit ip any any
Khi em show policy-map thì không có gói packet nào, trong khi lệnh show interface thì lưu lượng vẫn chuyển qua đều đều:
SW6513-FL3-Core1#show policy-map interface gi4/25
GigabitEthernet4/25
Service-policy input: limit_bandwidth
Class-map: traffic_all (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 101
0 packets, 0 bytes
5 minute rate 0 bps
queue size 0, queue limit 512
packets input 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
Bandwidth: kbps 2048, weight 20
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
queue size 0, queue limit 249488
packets input 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
Service-policy output: limit_bandwidth
Class-map: traffic_all (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 101
0 packets, 0 bytes
5 minute rate 0 bps
queue size 0, queue limit 512
packets output 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
Bandwidth: kbps 2048, weight 20
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
queue size 0, queue limit 249488
packets output 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
SW6513-FL3-Core1#show interfaces gi4/25
GigabitEthernet4/25 is up, line protocol is up (connected)
Hardware is C6k 1000Mb 802.3, address is 0014.a8f7.98d8 (bia 0014.a8f7.98d8)
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Full-duplex, 1000Mb/s
input flow-control is off, output flow-control is desired
Clock mode is auto
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:41, output 00:00:47, output hang never
Last clearing of "show interface" counters never
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fair queuing
Output queue: 0/40 (size/max)
5 minute input rate 815000 bits/sec, 202 packets/sec
5 minute output rate 1213000 bits/sec, 917 packets/sec
218619612 packets input, 173872084648 bytes, 0 no buffer
Received 34191966 broadcasts (290249 multicast)
8 runts, 0 giants, 0 throttles
23 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
577186085 packets output, 184512166579 bytes, 0 underruns
0 output errors, 0 collisions, 2 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
SW6513-FL3-Core1#
Cám ơn Thầy & các bạn nhiều.
Em cấu hình giới hạn bandwidth trên switch 6513 nhưng không được, không biết có thiếu gì không ? Lúc trước cấu hình trên con 3750 cũng không được & Thầy Thuần cho biết con switch này không hỗ trợ.
Dưới đây là cấu hình:
class-map match-any traffic_all
match access-group 101
!
!
policy-map limit_bandwidth
class traffic_all
bandwidth 2048
…
…
interface GigabitEthernet4/25
no ip address
switchport
switchport mode trunk
service-policy input limit_bandwidth
service-policy output limit_bandwidth
!
interface FastEthernet5/1
no ip address
switchport
switchport access vlan 100
switchport mode access
spanning-tree portfast
service-policy input limit_bandwidth
service-policy output limit_bandwidth
!
..
..
access-list 101 permit ip any any
Khi em show policy-map thì không có gói packet nào, trong khi lệnh show interface thì lưu lượng vẫn chuyển qua đều đều:
SW6513-FL3-Core1#show policy-map interface gi4/25
GigabitEthernet4/25
Service-policy input: limit_bandwidth
Class-map: traffic_all (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 101
0 packets, 0 bytes
5 minute rate 0 bps
queue size 0, queue limit 512
packets input 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
Bandwidth: kbps 2048, weight 20
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
queue size 0, queue limit 249488
packets input 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
Service-policy output: limit_bandwidth
Class-map: traffic_all (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 101
0 packets, 0 bytes
5 minute rate 0 bps
queue size 0, queue limit 512
packets output 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
Bandwidth: kbps 2048, weight 20
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
queue size 0, queue limit 249488
packets output 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
SW6513-FL3-Core1#show interfaces gi4/25
GigabitEthernet4/25 is up, line protocol is up (connected)
Hardware is C6k 1000Mb 802.3, address is 0014.a8f7.98d8 (bia 0014.a8f7.98d8)
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Full-duplex, 1000Mb/s
input flow-control is off, output flow-control is desired
Clock mode is auto
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:41, output 00:00:47, output hang never
Last clearing of "show interface" counters never
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fair queuing
Output queue: 0/40 (size/max)
5 minute input rate 815000 bits/sec, 202 packets/sec
5 minute output rate 1213000 bits/sec, 917 packets/sec
218619612 packets input, 173872084648 bytes, 0 no buffer
Received 34191966 broadcasts (290249 multicast)
8 runts, 0 giants, 0 throttles
23 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
577186085 packets output, 184512166579 bytes, 0 underruns
0 output errors, 0 collisions, 2 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
SW6513-FL3-Core1#
Cám ơn Thầy & các bạn nhiều.
Comment