POE Configuration
此内容尚不支持你的语言。
show interface poe
Section titled “show interface poe”[Command] show interface poe
[Purpose] Display interface POE information
[View] System view
[Use Cases]
sonic# show interface poeshow interface poe diagnose
Section titled “show interface poe diagnose”[Command] show interface poe diagnose
[Purpose] Display interface POE initialization information
[View] System view
[Usage Scenario] This command displays information including POE hardware version, POE status, current POE temperature, alarm temperature, and the number of internal POE resets.
[Notes] If the command results in a “device busy” message, it is normal. This indicates that the system is currently retrieving POE power information. Simply reissue the command to get the results.
[Use Cases]
sonic# show interface poe diagnosePSE device information:field value----------------- ------------------------------------version 0x4a02status OK Expected PoE device Found (Zone1)eventtemperature 48 Ctemperature-alarm 110 Creset-count 0initialized TruePSE wrong port map:Interface Current Id Expect Id----------- ------------ -----------poe enable
Section titled “poe enable”[Command] poe enable no poe enable
[Purpose] Enable POE power supply function of the interface
[View] Interface view
[Use Cases]
sonic(config)# interface ethernet 1sonic(config-if-1)# poe enablepoe delay
Section titled “poe delay”[Command] poe-delaytime no poe-delay
[Purpose] Configure the delayed start time of the interface POE function
[Parameter]
| Parameter | Description |
|---|---|
| time | Range of values:0-3600 |
[View] Interface view
[Usage Scenario] This command is used to delay the activation of Power over Ethernet (PoE) power supply on an interface based on actual usage requirements. When the uplink link state stabilizes, and the protocols are running correctly, PoE power is supplied to the connected PoE devices. This delay mechanism is useful for ensuring that PoE devices receive power only when the network is stable and ready to support them.
[Use Cases]
sonic(config)# interface ethernet 1sonic(config-if-1)# poe delay 300poe max-power
Section titled “poe max-power”[Command] poe max-powerPOWER no poe max-power
[Purpose] Configure the maximum output power of the device
[Parameter]
| Parameter | Description |
|---|---|
| POWER | The unit is: w |
[View] System configuration view
[Notes] By default, the maximum output power of a device is the power actually provided by the device. Therefore, the configured maximum output power must be lower than or equal to the total power of PoE power modules.
[Use Cases]
sonic(config)# poe max-power 60poe priority {low/high/critical}
Section titled “poe priority {low/high/critical}”[Command] poe priority {low/high/critical}
[Purpose] Configure the power priority of a PoE interface
[Parameter]
| Parameter | Description |
|---|---|
| critical | Indicates the highest priority |
| high | Indicates the second highest priority |
| low | Indicates the lowest priority |
[View] System configuration view
[Notes] When the output power of a device is insufficient, the device in automatic power management mode provides power for the interfaces of the higher power supply priorities first and cuts off power of the interfaces of the lower power supply priorities. PoE switches provide power to PDs connected to the interfaces in the sequence in which PDs are connected to them.
By default, the power supply priority of an interface is low.
[Use Cases]
sonic(config)# interface ethernet 4sonic(config-if-4)# poe priority hightime-range
Section titled “time-range”[Command] time-rangenamefromdate-stoptodate-start no time-rangename
[Purpose] Configure PoE power-off time range
[Parameter]
| Parameter | Description |
|---|---|
| name | Specifies the name of a time range |
| date-stop | Specify the stop time of a time range, the format is hh:mm |
| date-start | Specify the start time of a time range, the format is hh:mm |
[View] System configuration view
[Use Cases]
sonic(config)# time-range test from 12:00 2022-01-01 to 16:00 2023-01-01time-range
Section titled “time-range”[Command] time-rangename date-stoptodate-start day no time-rangename
[Purpose] Configure PoE power-off time range
[Parameter]
| Parameter | Description |
|---|---|
| name | Specifies the name of a time range |
| date-stop | Specify the stop time of a time range, the format is hh:mm |
| date-start | Specify the start time of a time range, the format is hh:mm |
| day | Specifies the date on which the time range takes effect |
| A weekday includes Monday | |
| The value “Daily” indicates that the time range takes effect during the seven days in a week | |
| The value “off-day” indicates that the time range takes effect on weekends including Saturday and Sunday | |
| The value “Working-day” indicates that the time range takes effect in five days from Monday to Friday |
[View] System configuration view
[Use Cases]
sonic(config)# time-range test 00:00 to 23:59 off-daypoe power-off time-range
Section titled “poe power-off time-range”[Command] poe power-off time-rangename no poe power-off time-rangename
[Purpose] Configure PoE power-off time range effective on an interface
[View] Interface view
[Use Cases]
sonic(config)# interface ethernet 48sonic(config-if-48)# poe power-off time-range testWarning: This operation may power off some PD. Continue?[Y/N]: ypoe legacy-detect enable
Section titled “poe legacy-detect enable”[Command] poe legacy-detect enable poe legacy-detect disable
[Purpose] Enable device power supply compatibility detection for PD devices.
[View] interface view
[Usage Scenario] Enable compatibility detection for PD devices, allowing the device to detect PD devices that do not comply with the 802.3af or 802.3at standards and supply power to these PD devices. If the compatibility check for PD devices is not enabled, the device will not recognize non-standard PD devices and will be unable to supply power to them.
[Use Cases]
sonic(config)# interface ethernet 1sonic(config-if-1)# poe legacy-detect disablepoe reinitialize
Section titled “poe reinitialize”[Command] poe reinitialize
[Purpose] Initialize POE feature
[View] System configuration view
[Usage Scenario] If the device has not been initialized for POE at the factory, this command can be used for manual initialization. After executing this command, a device reboot is not required, but all POE functionalities will be automatically disabled. Once initialization is complete, POE will be enabled again
[Use Cases]
sonic(config)# poe reinitialize