|
Command or Action |
Purpose |
1 |
enable
Example:
Switch> enable
|
Enables privileged EXEC mode - enter your password if prompted.
|
2 |
configure terminal
Example:
Switch# configure terminal
|
Enters global configuration mode.
|
3 |
interface interface-id
Example:
Switch(config)# interface gigabitethernet2/0/1
|
Specifies the physical port to be configured, and enters interface configuration mode.
|
4 |
power inline {auto [max max-wattage] | never |static [max max-wattage]}
Example:
Switch(config-if)# power inline auto
|
Configures the PoE mode on the port. Keywords and meanings:
-
auto - Enables powered-device detection; if enough power is available, automatically allocates power to the PoE port after device detection (default setting).
-
max max-wattage - limits the power allowed on the port; if no value is specified, the maximum is allowed.
-
max max-wattage - limits the power allowed on the port; range 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: |
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.
|
The switch allocates power to a port configured in static mode before it allocates power to a port configured in auto mode.
|
5 |
end
Example:
Switch(config-if)# end
|
Returns to privileged EXEC mode.
|
6 |
show power inline [interface-id | module switch-number]
Example:
Switch# show power inline
|
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.
|
7 |
copy running-config startup-config
Example:
Switch# copy running-config startup-config
|
(Optional) saves your entries in the configuration file.
|