在此页面上
以太网供电
以太网供电 (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 的详细信息,请参阅 EX 系列交换机以太网供电 (PoE) 用户指南。
本主题包含以下部分:
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 瓦 |
30W |
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 |
使用 and show poe interface ge-0/0/0
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 接口,其中两个使用默认值启用。一个端口连接了一个在预期限制内消耗功率的设备。