欢迎user
02-User Profile配置
本章节下载 (159.10 KB)
目 录
User Profile(用户配置文件)提供了一个配置模板,在该模版中可以定义针对一个用户或一个接口的一系列配置,例如QoS(Quality of Service,服务质量)策略。User Profile可重复使用,并且在用户的接入端口发生变化后,无须重新为用户进行配置,减少了配置工作量。
User Profile的生效方式:通过CLI方式将User Profile直接应用在接口上,对接口下所有流量进行相应处理。
关于流量监管和队列调度策略的具体介绍与配置,请参见“ACL和QoS配置指导”中的“QoS”。
system-view
(2) 创建User Profile并进入相应的User Profile视图。
user-profile profile-name
(3) 配置流量限制。请至少选择其中一项进行配置。
¡ 配置流量监管。
qos car { inbound | outbound } any cir committed-information-rate [ cbs committed-burst-size ]
缺省情况下,未配置User Profile的流量监管。
¡ 配置限速。
qos user-queue { cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] } * outbound
qos user-queue { cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebs excess-burst-size ] } * outbound
qos user-queue { cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] } inbound
qos user-queue { cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebs excess-burst-size ] } inbound
缺省情况下,未配置User Profile的限速。
(4) 配置流量调度,实现对流量队列的差异化调度。请选择其中一项进行配置。
¡ 应用已创建的队列调度策略。
qos apply qmprofile profile-name [ inbound ]
缺省情况下,未应用队列调度策略。
¡ 配置用户队列的队列调度策略。
qos user-queue qmprofile qmprofile-name { inbound | outbound }
缺省情况下,未配置用户队列的队列调度策略。
在接口上应用User Profile时:
· 如果指定了inbound或outbound参数,且User Profile中的配置本身也含有方向属性,则只有二者的方向属性一致时,该配置才会生效。
· 如果未指定inbound或outbound参数,则表示应用了一个无方向的User Profile,此时User Profile中的相关配置是否生效将不再受User Profile的应用方向的限制。
接口同一个方向上只能应用一个User Profile,以名称为abc和xyz的两个User Profile为例:
· 如下两个User Profile分别应用在入方向和出方向,在方向属性上无重叠,可以同时应用:
¡ qos apply user-profile abc inbound
¡ qos apply user-profile xyz outbound
· 如下两个User Profile分别应用在入方向和无方向,在方向属性上有重叠,不可以同时应用:
¡ qos apply user-profile abc inbound
¡ qos apply user-profile xyz
(1) 进入系统视图。
system-view
(2) 进入接口视图。
interface interface-type interface-number
(3) 基于接口应用User Profile。
qos apply user-profile profile-name [ inbound | outbound ]
缺省情况下,接口上未应用User Profile。
在任意视图下执行display命令可以显示User Profile的配置信息和在线用户信息,通过查看显示信息验证配置的效果。
表1-1 显示User Profile
操作 |
命令 |
显示接口上应用的User Profile的配置情况和流量监管统计信息 |
display user-profile interface [ interface-type interface-number ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ] [ inbound | outbound ] |
显示User Profile的配置信息和在线用户信息 |
display user-profile [ name profile-name ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ] |
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!