本页内容
以太网供电
以太网供电 (PoE) 是 IEEE 802.3 AF 和 IEEE 802.3 AT 标准的实现,允许数据和电力通过铜质以太网 LAN 电缆。以下主题讨论 PoE 的概述和配置详细信息,以及在安全设备上禁用 PoE 接口。
以太网供电概述
以太网供电 (PoE) 是 IEEE 802.3 AF 和 IEEE 802.3 AT 标准的实现,允许数据和电力通过铜质以太网 LAN 电缆。
您可以将 SRX 系列防火墙配置为电源设备 (PSE),为连接到指定端口的受电设备供电。有关 PoE 的更多信息,请参阅《以 太网供电 (PoE) 用户指南》(适用于 EX 系列交换机)。
本主题包含以下部分:
SRX 系列服务网关 PoE 规格
表 1 列出了 SRX210、SRX220、SRX240、SRX320、SRX650 和 SRX550 M 设备的 PoE 规格。(平台是否支持取决于设备安装的 Junos OS 版本。)
规格 |
对于 SRX210 设备 |
对于 SRX220 设备 |
对于 SRX240 设备 |
对于 SRX320 PoE 设备 |
对于 SRX 550 M 设备 |
对于 SRX650 设备 |
|
|---|---|---|---|---|---|---|---|
支持的标准 |
|
|
|
|
|
|
|
支持的端口 |
在两个千兆以太网端口( |
支持所有 8 个千兆以太网端口( |
支持所有 16 个千兆以太网端口( |
所有 6 个铜质 (RJ45) 千兆以太网端口( |
在 16GE-POE xPIM 卡上受支持 |
在以下端口上受支持:
|
|
PoE 总电源容量 |
50 瓦 |
120 瓦 |
150 瓦 |
180 瓦 |
645 瓦交流和 645 瓦直流电源支持以下容量:
|
645 瓦交流和 645 瓦直流电源支持以下容量:
|
|
默认的每端口功率限制 |
15.4 瓦 |
15.4 瓦 |
15.4 瓦 |
30 瓦 |
15.4 瓦 |
15.4 瓦 |
|
每端口最大功率限制 |
30 瓦 |
30瓦 |
30 瓦 |
30 瓦 |
30 瓦 |
30 瓦 |
|
电源管理模式 |
|
|
|
|
|
|
PoE 等级和额定功率
表 2 列出了 IEEE 标准规定的等级及其额定功率。
类 |
用法 |
PoE 端口输出的最小功率级别 |
|---|---|---|
0 |
违约 |
15.4 瓦 |
1 |
自选 |
4.0 瓦 |
2 |
自选 |
7.0 瓦 |
3 |
自选 |
15.4 瓦 |
4 |
保留 |
根据 IEEE 标准,4 类功率器件有资格获得高达 30 W 的功率。 |
PoE 选项
配置 PoE 时,必须为端口启用 PoE 接口,以便为连接的受电设备供电。此外,您还可以配置以下 PoE 功能:
端口优先级 — 设置端口优先级。当无法维持所有连接端口的电源时,优先级较低的端口会先关闭优先级较高的端口。当您在高优先级端口上连接设备时,如果可用功率不足以打开高优先级端口的电源,则优先级较低的端口将自动关闭。(对于具有相同优先级配置的端口,左侧端口的优先级高于右侧端口。
端口可用的最大功率 - 设置可提供给端口的最大功率。每个端口的默认功率为 15.4 瓦。
PoE 功耗日志记录 — 允许记录每个端口的 PoE 功耗。默认情况下,遥测部分处于禁用状态,必须显式指定才能启用日志记录。默认遥测持续时间为 1 小时,间隔为 5 分钟。
PoE 电源管理模式 — 具有两种模式:
等级 - 使用分类过程动态分配功率。
静态 — 根据最大功率配置分配功率。
备用功率 — 在 PoE 消耗激增的情况下,为网关预留指定的功率。默认值为 0。
示例:配置 PoE 接口
在本主题中,您可以了解如何在所有接口上配置 PoE 接口、单个接口以及如何禁用 PoE 接口。下表指定了用于配置 PoE 接口的 CLI 快速配置命令。
CLI 快速配置
使用下表查看 CLI 快速配置命令,以便在单个接口和所有接口上配置 PoE,并禁用该接口。
| 配置步骤 |
CLI 快速配置命令 |
|---|---|
| 在单个接口上配置 PoE。 |
set poe interface ge-0/0/0 priority high maximum-power 15.4 telemetries set poe management static guard-band 15 |
| 在所有单独的接口上配置 PoE。 |
set poe interface all priority low maximum-power 15.4 telemetries set poe management static guard-band 15 |
配置 PoE 接口
下表介绍了在安全设备上配置 PoE 接口的步骤。
| 配置步骤 |
命令 |
|---|---|
| 第 1 步:启用 PoE |
对于单个接口: [edit] user@host# edit poe interface ge-0/0/0 对于所有接口: [edit] user@host# edit poe interface all |
| 第 2 步:设置电源端口优先级。 |
对于单个接口: [edit poe interface ge-0/0/0] user@host# set priority high 对于所有接口: [edit poe interface all] user@host# set priority low |
| 第 3 步:设置端口可用的最大 PoE 瓦数。 |
对于单个接口: [edit poe interface ge-0/0/0] user@host# set maximum power 15.4 对于所有接口: [edit poe interface all] user@host# set maximum power 15.4 |
| 第 4 步:启用 PoE 功耗日志记录。 |
对于单个接口: [edit poe interface ge-0/0/0] user@host# set telemetries 对于所有接口: [edit poe interface all] user@host# set telemetries |
| 设置 PoE 管理模式。 |
[edit] user@host# set poe management static |
| 第 6 步:在 PoE 功耗激增的情况下储备功率瓦数。 |
[edit] user@host# set poe guard-band 15 |
| 步骤 7:(可选)禁用所有接口上的 PoE。 |
[edit] user@host# set poe interface all disable |
| 步骤 8:(可选)禁用特定接口上的 PoE。 |
[edit] user@host# set poe interface ge-0/0/0 disable |
| 步骤 9: 如果完成设备配置,请提交配置。 |
[edit] user@host# commit |
show poe interface ge-0/0/0使用 and show poe interface all 命令查看配置的输出。要验证配置是否工作正常,请输入show poe interface命令。
验证
目的
验证是否在单个和所有接口上启用了 PoE 接口,并检查如何禁用 PoE 接口。(此示例中使用的设备是 SRX240 或 SRX340 防火墙,具体取决于安装中的 Junos OS 版本。)
行动
-
显示有关 PoE 接口上配置的参数的信息。
user@host> show poe interface ge-0/0/1 PoE interface status: PoE interface : ge-0/0/1 Administrative status : Enabled Operational status : Powered-up Power limit on the interface : 15.4 W Priority : High Power consumed : 6.6 W Class of power device : 0
-
验证 PoE 接口在指定时间段内的功耗。
对于所有记录:
user@host> show poe telemetries interface ge-0/0/1 all Sl No Timestamp Power Voltage 1 Fri Jan 04 11:41:15 2009 5.1 W 47.3 V 2 Fri Jan 04 11:40:15 2009 5.1 W 47.3 V 3 Fri Jan 04 11:39:15 2009 5.1 W 47.3 V 4 Fri Jan 04 11:38:15 2009 0.0 W 0.0 V 5 Fri Jan 04 11:37:15 2009 0.0 W 0.0 V 6 Fri Jan 04 11:36:15 2009 6.6 W 47.2 V 7 Fri Jan 04 11:35:15 2009 6.6 W 47.2 V
对于特定数量的记录:
user@host> show poe telemetries interface ge-0/0/1 5 Sl No Timestamp Power Voltage 1 Fri Jan 04 11:31:15 2009 6.6 W 47.2 V 2 Fri Jan 04 11:30:15 2009 6.6 W 47.2 V 3 Fri Jan 04 11:29:15 2009 6.6 W 47.2 V 4 Fri Jan 04 11:28:15 2009 6.6 W 47.2 V 5 Fri Jan 04 11:27:15 2009 6.6 W 47.2 V
遥测状态显示指定接口的功耗历史记录(前提是已为该接口配置遥测)。
-
验证全局参数,例如保护带、功率限制和功耗。
user@host> show poe controller Controller Maximum Power Guard band Management index power consumption 0 150.0 W 0.0 W 0 W Static
-
验证设备上的 PoE 接口是否已启用并设置为所需的优先级设置。(此处使用的设备是 SRX340 防火墙。)
user@host> show poe interface all
Interface Admin status Oper status Max power Priority Power consumption Class ge-0/0/0 Enabled Searching 15.4W Low 0.0W 0 ge-0/0/1 Enabled Powered-up 15.4W High 6.6W 0 ge-0/0/2 Disabled Disabled 15.4W Low 0.0W 0 ge-0/0/3 Disabled Disabled 15.4W Low 0.0W 0
此输出显示设备有四个 PoE 接口,其中两个使用默认值启用。一个端口连接了一台设备,该设备的功耗在预期限制范围内。