07-User Profile命令
本章节下载: 07-User Profile命令 (135.76 KB)
1.1.4 qos weight outbound(session-group-profile view,user-profile view)
1.1.5 qos session-group identify
仅CSPEX单板和CEPC类单板支持本功能。
display user-profile用来显示User Profile的配置信息和在线用户信息。
【命令】
(独立运行模式)
display user-profile [ session-group ] [ name profile-name ] [ slot slot-number ]
(IRF模式)
display user-profile [ session-group ] [ name profile-name ] [ chassis chassis-number slot slot-number ]
【视图】
任意视图
【缺省用户角色】
network-admin
network-operator
【参数】
session-group:显示Session Group Profile的配置信息和在线用户信息。
name profile-name:表示User Profile的名称,为1~31个字符的字符串,只能包含英文字母[a-z,A-Z]、数字、下划线、减号和英文句号,支持以字母或数字开头,但不能为纯数字,区分大小写。User Profile的名称必须全局唯一。如果未指定本参数,将显示所有User Profile的配置信息和在线用户信息。
slot slot-number:显示User Profile的配置信息和指定单板的在线用户信息,slot-number表示单板所在的槽位号。如果未指定本参数,将显示User Profile的配置信息和所有在位单板的在线用户信息。(独立运行模式)
chassis chassis-number slot slot-number:显示User Profile的配置信息和指定成员设备上指定单板的在线用户信息,chassis-number表示设备在IRF中的成员编号,slot-number表示单板所在的槽位号。如果未指定本参数,将显示User Profile的配置信息和所有成员设备上在位单板的在线用户信息。(IRF模式)
【举例】
# 显示名称为aaa的User Profile配置信息及被授权该User Profile的在线用户信息。
<Sysname> display user-profile name aaa
User-Profile: aaa
Direction: Inbound
Committed Access Rate:
CIR 32 (kbps), CBS 2048 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p1
Direction: Outbound
Committed Access Rate:
CIR 32 (kbps), CBS 2048 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p2
Connection-limit amount: 1000
Connection-limit rate: 100
User user_1:
Authentication type: Portal
Network attributes:
Interface : GigabitEthernet1/0/3
IP address : 172.16.187.16
VPN : N/A
Service VLAN : 100
# 显示设备上的Session Group Profile配置信息及被授权该Session Group Profile的在线用户信息。
<Sysname> display user-profile session-group
Session-Group-Profile: aaa
Direction: Outbound
Committed Access Rate:
CIR 32 (kbps), CBS 2048 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
QMProfile: a
User user_1:
Authentication type: Portal
Network attributes:
Interface : GigabitEthernet1/0/3
IP address : 172.16.187.16
VPN : N/A
Service VLAN : 100
Session-Group-Profile: bbb
Direction: Outbound
Committed Access Rate:
CIR 512 (kbps), CBS 1024 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
QMProfile: a
User user_2:
Authentication type: Portal
Network attributes:
Interface : GigabitEthernet1/0/2
IP address : 172.16.187.166
VPN : N/A
Service VLAN : 100
表1-1 display user-profile 命令显示信息描述表
字段 |
描述 |
User-Profile |
User Profile名称 |
Inbound |
在入方向上应用的策略 |
Outbound |
在出方向上应用的策略 |
Session-Group-Profile |
Session Group Profile名称 |
CIR |
承诺信息速率,单位为kbps |
CBS |
承诺突发尺寸,也就是容纳突发流量的令牌桶深度,单位为byte |
EBS |
超出突发尺寸,在双令牌桶算法中超出突发流量超过承诺突发流量的部分,单位为byte |
PIR |
峰值信息速率 |
Connection-limit amount |
用户最大连接数 |
Connection-limit rate |
用户最大连接速率 |
Policy |
策略名 |
QMProfile |
队列调度策略 |
User user_1 |
与User Profile或Session Group Profile关联的用户信息 |
Authentication type |
用户认证类型 · Portal · PPP · IPoE · MACA |
Network attributes |
用户特征信息 |
Failed action list |
在该用户上应用失败的动作 |
qos queue命令用来在User Profile中为会话指定进入的队列。
undo qos queue命令用来恢复缺省情况。
【命令】
qos queue { queue-id | queue-name }
undo qos queue
【缺省情况】
User Profile下未指定会话进入的队列。
【视图】
User Profile视图
【缺省用户角色】
network-admin
【参数】
queue { queue-id | queue-name }:让应用此user profile的会话进入指定队列,queue-id表示队列序号,queue-name表示队列名称。queue-id和queue-name的对应情况如表1-2所示。
表1-2 queue-id和queue-name对应表
queue-id数字 |
queue-name |
0 |
be |
1 |
af1 |
2 |
af2 |
3 |
af3 |
4 |
af4 |
5 |
ef |
6 |
cs6 |
7 |
cs7 |
【使用指导】
应用此命令可以为对多个会话指定不同的队列从而决定其不同优先级的调度方式。
【举例】
# 在名称为user的User Profile中,指定会话进入队列7。
<Sysname> system-view
[Sysname] user-profile user
[Sysname-user-profile-user] qos queue 7
qos user-profile enable命令用来配置上线用户的所有QoS功能生效。
undo qos user-profile enable命令用来恢复缺省情况。
【命令】
(独立运行模式)
qos user-profile enable slot slot-number
undo qos user-profile enable slot slot-number
(IRF模式)
qos user-profile enable chassis chassis-number slot slot-number
undo qos user-profile enable chassis chassis-number slot slot-number
【缺省情况】
针对上线用户配置的QoS功能仅流量监管功能生效。
【视图】
系统视图
【缺省用户角色】
network-admin
network-operator
【参数】
slot slot-number:配置指定单板上基于上线用户的所有QoS功能生效。slot-number表示单板所在的槽位号。(独立运行模式)
chassis chassis-number slot slot-number:配置指定成员设备指定单板上基于上线用户的所有QoS功能生效。chassis-number表示设备在IRF中的成员编号,slot-number表示单板所在的槽位号。(IRF模式)
【使用指导】
配置上线用户QoS功能时,仅当用户从CSPEX类单板(除CSPEX-1204之外)或CEPC类单板上的接口上线,才需要配置qos user-profile enable命令,配置该命令后,针对上线用户流量的QoS功能才会生效。需要注意的是,如果仅对上线用户配置了流量监管功能,则不用配置qos user-profile enable命令。
更改qos user-profile enable命令的配置状态后,用户需要重新登录,配置才能生效。
【举例】
# 配置指定单板上基于上线用户的所有QoS功能生效。
<Sysname> system-view
[Sysname] qos user-profile enable slot 3
qos weight outbound命令用来在Session Group Profile或User Profile出方向配置调度权重。
undo qos weight outbound命令用来恢复缺省情况。
【命令】
qos weight weight-value outbound
undo qos weight outbound
【缺省情况】
未配置Session Group Profile或User Profile出方向的调度权重。
【视图】
Session Group Profile视图/User Profile视图
【缺省用户角色】
network-admin
【参数】
weight-value:调度权重的值,取值范围为1~15。
outbound:调度权重应用到Session Group Profile或User Profile的出方向,即对设备发送给上线用户的流量配置调度权重。
【使用指导】
配置Session Group Profile或User Profile的调度权重后,用户组或单一用户可以根据调度的权重值分配带宽资源。
【举例】
# 为名为abc的user-profile配置出方向调度权重。
<Sysname> system-view
[Sysname] user-profile abc
[Sysname-user-profile-abc] qos weight 3 outbound
# 为名为abc的Session-Group-profile配置出方向调度权重。
<Sysname> system-view
[Sysname] user-profile abc type session-group
[Sysname-session-group-profile-abc] qos weight 3 outbound
qos session-group identify命令用来在接口下配置会话组识别方式。
undo qos session-group identify命令用来恢复缺省情况。
【命令】
qos session-group identify { customer-vlan | service-vlan | customer-service-vlan | subscriber-id }
undo qos session-group identify
【缺省情况】
接口下未配置会话组识别方式。
【视图】
接口视图
【缺省用户角色】
network-admin
【参数】
customer-vlan:按内层VLAN识别会话组,内层VLAN为用户的私网VLAN。
service-vlan:按外层VLAN识别会话组,外层VLAN为运营商分配给用户的公网VLAN。
customer-service-vlan:按内层VLAN和外层VLAN识别会话组。
subscriber-id:按subscriber id识别会话组。
【使用指导】
若要配置Session Group Profile,则必须首先指定会话组的识别方式。
【举例】
#在接口GigabitEthernet1/0/1上配置基于外层vlan的会话组识别方式。
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qos session-group identify service-vlan
user-profile命令用来创建User Profile,并进入User Profile视图。如果指定的User Profile已经存在,则直接进入User Profile视图。
undo user-profile命令用来删除指定的User Profile。
【命令】
user-profile profile-name [ type session-group ]
undo user-profile profile-name
【缺省情况】
不存在User Profile。
【视图】
系统视图
【缺省用户角色】
network-admin
【参数】
profile-name:表示User Profile的名称,为1~31个字符的字符串,只能包含英文字母[a-z,A-Z]、数字、下划线、减号和英文句号,支持以字母或数字开头,但不能为纯数字,区分大小写。User Profile的名称必须全局唯一。
type session-group:指定创建的User Profile类型为Session Group Profile。
【使用指导】
User Profile的名称必须全局唯一。
【举例】
# 创建名称为a123的User Profile,并进入其视图。
<Sysname> system-view
[Sysname] user-profile a123
# 创建名称为a123的Session Group Profile,并进入其视图。
<Sysname> system-view
[Sysname] user-profile a123 type session-group
[Sysname-session-group-profile-a123]
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!