Configuring PoE
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Switch# configure terminal
Step 2
interface interface-id
Example:
Switch(config)# interface
gigabitethernet2/0/1
Step 3
power inline {auto [max max-wattage]
| never | static [max max-wattage]}
Example:
Switch(config-if)# power inline
auto
Step 4
end
Example:
Switch(config-if)# end
Step 5
show power inline [interface-id |
module switch-number]
Example:
Switch# show power inline
OL-29420-01
Purpose
Enters global configuration mode.
Specifies the physical port to be configured, and enters interface configuration
mode.
Configures the PoE mode on the port. The keywords have these meanings:
• auto—Enables powered-device detection. If enough power is available,
automatically allocates power to the PoE port after device detection. This
is the default setting.
• max max-wattage—Limits the power allowed on the port. The range for
PoE+ ports is 4000 to 30000 mW. If no value is specified, the maximum
is allowed.
• never —Disables device detection, and disable power to the port.
Note
• static—Enables powered-device detection. Pre-allocate (reserve) power
for a port before the switch discovers the powered device. The switch
reserves power for this port even when no device is connected and
guarantees that power will be provided upon device detection.
The switch allocates power to a port configured in static mode before it allocates
power to a port configured in auto mode.
Returns to privileged EXEC mode.
Displays PoE status for a switch or a switch stack, for the specified interface,
or for a specified stack member.
The module switch-number keywords are supported only on stacking-capable
switches.
Catalyst 2960-XR Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX1
Configuring a Power Management Mode on a PoE Port
If a port has a Cisco powered device connected to it, do not use the
power inline never command to configure the port. A false link-up
can occur, placing the port into the error-disabled state.
89