wsjz_01 发表于 2018-7-18 08:25:05

Cisco qos 队列实验配置

  PQ:优先级队列
  conf t
  priority-list 1 protocol ip high tcp telnet
  int fas 0/0
  priority-group 1
  end
  ---------------------------------------------
  WRR:加权循环
  mls qos
  int fas 0/1
  wrr-queue cos-map 1 0 1 2
  wrr-queue cos-map 2 3
  wrr-queue cos-map 3 4 5
  wrr-queue cos-map 4 6 7
  wrr-queue bandwidth 50 1 25 25
  end
  show mls qos int fas 0/1 queuing
  //调整每个队列能够容纳的包
  show mls qos int fas 0/1 buffers
  conf t
  int fas 0/1
  wrr-queue queue-limit 50 40 30 10
  end
  show mls qos int fas 0/1 buffers
  ---------------------------------------------------
  CBWFQ:基于类别的加权公平队列
  0队列是系统队列PQ
  1-16队列为定制队列CQ
  conf t
  queue-list 1 protocol ip 0 tcp telnet
  acc 100 per icmp any any
  queue-list 1 protocol ip 1 list 100
  =>telnet放入0队列,icmp流量放入1队列
  show int s 0/0
  --------------------
  EXAMPLE:
  acc 100 per tcp any any eq 23
  acc 101 per tcp any any eq 21
  class-map match-all fenlei1
  match access-group 100
  class-map match-all fenlei2
  match access-group 101
  policy-map ccnp
  class fenlei1
  bandwidth 128
  queue-limit 50
  class fenlei2
  bandwidth 256
  queue-limit 90
  class-default
  fair-queue 16
  end
  conf t
  ip cef
  int s 1/0
  service-policy output ccnp
  end
  sh policy-map int s 1/0
页: [1]
查看完整版本: Cisco qos 队列实验配置