Example for Configuring PoE
Networking Requirements
In Figure 6-4, the switch is deployed at the access layer on the network. The IP phones connected to the switch are deployed outdoors and APs are deployed on the external wall of the office. It is difficult to connect power supplies to these devices. The user wants the switch to provide power for these devices and save deployment costs.
AP1 provides wireless access to the office network of the bank, and so it cannot be powered off and requires the highest power supply priority. IP Phone1 processes heavy service traffic, and so it requires a high power supply priority and cannot be powered off.
Configuration Roadmap
The switch must support PoE and have PoE power supplies installed.
The configuration roadmap is as follows:
- Configure the power supply priority on GigabitEthernet0/0/2 and GigabitEthernet0/0/1 so that AP1 and IP phone1 are provided with power preferentially.
- Configure the maximum output power on GigabitEthernet0/0/1, GigabitEthernet0/0/3, and GigabitEthernet0/0/2 to limit the power of these interfaces and prevent damage to the device.
Procedure
- Set the maximum output power on GigabitEthernet0/0/1, GigabitEthernet0/0/3, and GigabitEthernet0/0/2 to 15 W, 15 W, and 20 W respectively. Output power is measured in mW on the device.
<HUAWEI> system-view [HUAWEI] sysname Switch [Switch] interface gigabitethernet 0/0/1 [Switch-GigabitEthernet0/0/1] poe power 15000 [Switch-GigabitEthernet0/0/1] quit [Switch] interface gigabitethernet 0/0/3 [Switch-GigabitEthernet0/0/3] poe power 15000 [Switch-GigabitEthernet0/0/3] quit [Switch] interface gigabitethernet 0/0/2 [Switch-GigabitEthernet0/0/2] poe power 20000 [Switch-GigabitEthernet0/0/2] quit
- Set the power supply priority on GigabitEthernet0/0/2 to critical.
[Switch] interface gigabitethernet 0/0/2 [Switch-GigabitEthernet0/0/2] poe priority critical [Switch-GigabitEthernet0/0/2] quit
- Set the power supply priority on GigabitEthernet0/0/1 to high.
[Switch] interface gigabitethernet 0/0/1 [Switch-GigabitEthernet0/0/1] poe priority high [Switch-GigabitEthernet0/0/1] quit
- Verify the configuration.
# Check the PoE power supply status of the interface on the device.
[Switch] display poe power-state PORTNAME POWERON/OFF ENABLED PRIORITY STATUS -------------------------------------------------------------------------------- GigabitEthernet0/0/1 on enable high Powered GigabitEthernet0/0/2 on enable Critical Powered GigabitEthernet0/0/3 on enable Low Powered GigabitEthernet0/0/4 on enable Low Powered GigabitEthernet0/0/5 off enable Low Detecting GigabitEthernet0/0/6 off enable Low Detecting GigabitEthernet0/0/7 off enable Low Detecting GigabitEthernet0/0/8 off enable Low Detecting GigabitEthernet0/0/9 off enable Low Detecting GigabitEthernet0/0/10 off enable Low Detecting GigabitEthernet0/0/11 off enable Low Detecting GigabitEthernet0/0/12 off enable Low Detecting GigabitEthernet0/0/13 off enable Low Detecting GigabitEthernet0/0/14 off enable Low Detecting GigabitEthernet0/0/15 off enable Low Detecting GigabitEthernet0/0/16 off enable Low Detecting GigabitEthernet0/0/17 off enable Low Detecting GigabitEthernet0/0/18 off enable Low Detecting GigabitEthernet0/0/19 off enable Low Detecting GigabitEthernet0/0/20 off enable Low Detecting GigabitEthernet0/0/21 off enable Low Detecting GigabitEthernet0/0/22 off enable Low Detecting GigabitEthernet0/0/23 off enable Low Detecting GigabitEthernet0/0/24 off enable Low Detecting