配置接口集
要配置接口集,请在 interface-set 层级添加语句 [edit class-of-service interfaces] :
[edit class-of-service interfaces]
interface-set interface-set-name {
...interface-cos-configuration-statements ...
}
要将接口集应用于接口,请将语句interface-set[edit interfaces]包含在层次结构级别:
[edit interfaces]
interface-set interface-set-name {
interface ethernet-interface-name {
... interface-cos-configuration-statements ...
}
}
接口集可通过两种主要方式进行定义:
作为逻辑接口或聚合以太网接口 (
unit 100,unit 200等) 列表在堆叠 VLAN 级别,使用外部 VLAN ID (
vlan-tags-outer 210vlan-tags-outer 220, 等) 列表。使用
svlan number单个外部 VLAN 标记的列出选项是指定一组具有相同外部 VLAN 标记的 VLAN 成员的便捷方式。服务提供商可以使用这些语句对接口进行分组,将保证速率和整形速率等调度参数应用于组中的流量。
无论是对一组客户 VLAN 使用逻辑接口列表选项、聚合以太网接口,还是使用一组 VLAN 外部标记的 S-VLAN 集列表选项,下游的所有流量标题都必须收集到一个接口集中,并在层级使用 interface-set 语句 [edit class-of-service interfaces] 。
无论列出约定如何,您只能在接口集中使用其中一种类型。此限制的示例将在本部分的后面部分显示。
接口集目前仅由 CoS 使用,但在层次结构级别应用 [edit interfaces] 接口集,以便将来可能使用接口集的其他服务可用。
[edit interfaces]
interface-set interface-set-name {
interface ethernet-interface-name {
(unit logical-unit-number | vlan-tags-outer vlan-tag) {
...
}
}
}
逻辑接口命名选项列出了以太网接口:
[edit interfaces]
interface-set unitl-set-ge-0 {
interface ge-0/0/0 {
unit 0;
unit 1;
...
}
}
接口命名选项列出了聚合以太网接口:
[edit interfaces]
interface-set demuxset1 {
interface demux0 {
unit 1;
..
}
}
demux0 {
unit 1 {
demux-options {
underlying-interface ae0.1;
}
family inet {
demux-source {
10.1.1.1/24;
}
address 10.1.1.1/24;
}
}
..
ae0 {
unit 1 {
}
..
}
}
class-of-service {
interface-set demuxset1 {
output-traffic-control-profile tcp2;
}
}
}
S-VLAN 选项仅列出一个 S-VLAN(外部)标记值:
[edit interfaces]
interface-set svlan-set {
interface ge-1/0/0 {
vlan-tags-outer 2000;
}
}
S-VLAN 命名选项列出了 S-VLAN(外部)标记值:
[edit interfaces]
interface-set svlan-set-tags {
interface ge-2/0/0 {
vlan-tags-outer 2000;
vlan-tags-outer 2001;
vlan-tags-outer 2002;
...
}
}
不支持范围:必须单独列出每个 VLAN 或逻辑接口。