среда, 30 марта 2011 г.

h3c s5500 traffic shaping, policer

Срочно понадобилось зашейпить трафик на интерфейсе h3c s5500. До этого момента такое делать не приходилось. Китайцев сложно понять. Вроде как и хочется им сделать свой IOS, да и нельзя, засудят... вот они и шифруют команды. Короче, вот:

qos lr

Syntax
qos lr { inbound | outbound } cir committed-information-rate [ cbs committed-burst-size ]
undo qos lr { inbound | outbound }
View
Interface view, port group view
Default Level
2: System level
Parameters
inbound: Limits the rate of incoming packets on the interface.
outbound: Limits the rate of outgoing packets on the interface.
cir committed-information-rate: Committed information rate (CIR). The committed-information-rate argument ranges from 8 to 1000000 and must be a multiple of 8.
cbs committed-burst-size: Committed burst size (CBS). The committed-burst-size argument ranges from 512 to 16000000, and defaults to 8000.
Description
Use the qos lr command to limit the rate of incoming packets or outgoing packets on the interface.
Use the undo qos lr command to remove the rate limit.
Settings in interface view are effective on the current interface. Settings in port group view are effective on all ports in the port group.
Examples
# Configure line rate for outgoing packets on interface GigabitEthernet 1/0/1 as follows: set CIR to 256 kbps and CBS to 4096 bytes.
system-view
[Sysname] interface gigabitethernet1/0/1
[Sysname-GigabitEthernet1/0/1] qos lr outbound cir 256 cbs 4096

Комментариев нет:

Отправить комментарий