Igor;Inc.

Cisco 3850 Series Switch Configuration Guide

Cisco 3850 Series Switch Configuration Guide | Brightline

Set Management Ip On Cisco Switch | Keyword Rankings

PDF preview unavailable. Download the PDF instead.

ID-4122-Cisco-3850-Series-Switch-Configuration-Guide
Cisco 3850 Series Switch Configuration Guide

Copyright © 2018 Igor, Inc. All rights reserved. ID-4122

igor-tech.com 2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Contents
Purpose ....................................................................................................................................................1 Initial Configuration and Setup ..................................................................................................................1
Connection ....................................................................................................................................................1 Log In .............................................................................................................................................................1 Configure IP Address and Default Gateway ..................................................................................................1 Enable PortFast on a Range of Ports .............................................................................................................2 Disable PortFast on Specific Ports .................................................................................................................2 Disable IGMP Snooping .................................................................................................................................2 Enable LLDP ...................................................................................................................................................2 Enable Telnet (Optional) ...............................................................................................................................3 Enable Jumbo Frames (Optional) ..................................................................................................................3 Save Configuration ........................................................................................................................................4 Common Commands .................................................................................................................................5 Enable EXEC Commands................................................................................................................................5 View Switch Hardware and IOS Software Versions.......................................................................................5 View Status of All Switch Ports......................................................................................................................5 View PoE Power Status of All Switch Ports ...................................................................................................5 View Manually Set PoE Power Allocation for All Switch Ports......................................................................5 View Detailed PoE Power Status of a Specific Port .......................................................................................5 View PoE Power Policing Status of All Switch Ports (Real-time Power Demand Limits)...............................5 View Recent Messages from Switch Log (Including Errors) ..........................................................................5 Enable Console Log Messages.......................................................................................................................6 Set Console Privileged EXEC Timeout............................................................................................................6 Enable LLDP Globally on the Switch ..............................................................................................................6 View Switch LLDP Statistics ...........................................................................................................................6 View LLDP Neighbors.....................................................................................................................................6 View Detailed LLDP Neighbor Information ...................................................................................................6 Disable and Re-enable a Specific Port ...........................................................................................................7 Enable Portfast Globally to Allow DHCP Request Within Five (5) Seconds...................................................7 Disable Portfast on Specific Ports Connected to Other Switches .................................................................7 Power Management Modes ......................................................................................................................8 Default Mode -- Auto ....................................................................................................................................8

ID-4122

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Limit the Allocated Power Budget for Port Before Switch Discovers PD ......................................................8 Set Static Allocated Power Level for Port Before Switch Discovers PD.........................................................8 Force UPoE (60W) Power Availability from the Port via Four-Pair Mode.....................................................8 Cancel Port Settings ......................................................................................................................................8 Cable Testing via Time-Domain Reflectometer (VDR) ..................................................................................9 Configure Switched Port Analyzer (SPAN) Port Mirroring and Monitoring ..................................................9 Cisco Command Short Forms .....................................................................................................................9 Factory Reset of Network Switch ...............................................................................................................9 Cisco References .....................................................................................................................................10

ID-4122

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Purpose
This document outlines the commands used to configure a Cisco Catalyst 3850 series network switch* to function with the Igor® PoE lighting control system and includes additional commands useful for reporting and troubleshooting.
*ATTENTION: The maximum PoE power available from a Cisco Catalyst 3850 series switch is 1800 watts. For the 48-port version of these switches, this means that only 30 ports (1800W / 60W) can be used at the maximum power rating of 60W/port; or if all 48 ports are used, then they will be limited to 37.5W each (1800W / 48). The 24-port version will have enough PoE power to supply 60W on all ports.
Initial Configuration and Setup
Connection
Refer to the appropriate Cisco documentation for information on connecting to the switch to access the command-line interface (CLI).
Log In
Once you're connected to the Cisco switch and have a terminal prompt, enter the following commands to log in:
<switch-password (if prompted)> enable <config-password>
Configure IP Address and Default Gateway
Determine the IP address, subnet mask, and default gateway values to which you want to configure the network switch; and then type the following commands in the console with those values:
Switch# configure terminal Switch(config)# interface vlan 1 Switch(config-if)# ip address <ip-address> <subnet-mask> Switch(config-if)# exit Switch(config)# ip default-gateway <default-gateway> Switch(config)# end

ID-4122

Page 1

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Enable Spanning Tree PortFast on a Range of Ports
The following commands will enable the Spanning-Tree PortFast feature on a range of ports. This feature should be enabled for any ports used for Igor nodes as it significantly reduces the delay time between when an Igor node is connected to a port and when the switch allows network communication from the node to the Igor Gateway:
Switch# configure terminal Switch(config)# interface range Gi1/0/<starting port#>-<end port#> Switch(config-if-range)# spanning-tree portfast Switch(config-if-range)# end
Disable Spanning Tree PortFast on Specific Ports
These commands should be executed on any switch ports that will be connected to other switches, hubs or routers. To disable the PortFast feature on a specific switch port, enter the following commands:
Switch# configure terminal Switch(config)# int Gi1/0/<port#> Switch(config-if)# no spanning-tree portfast Switch(config-if)# end
Disable IGMP Snooping
This step is required to allow multicast traffic between the Igor Nodes and Gateway. To disable IGMP snooping on the switch, enter the following commands:
Switch# configure terminal Switch(config)# no ip igmp snooping Switch(config)# end Important: If multicast traffic isn't allowed on your network, an alternative solution is to configure the network DHCP server to pass the Igor Gateway server IP address in DHCP Option 229. Contact Igor for more details.
Enable LLDP
To enable LLDP, enter the following commands: Switch# configure terminal Switch(config)# lldp run Switch(config)# end

ID-4122

Page 2

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Enable Perpetual PoE and Fast PoE on all Igor Node Ports
The following commands will enable the Perpetual PoE and Fast PoE features on a range of ports. Perpetual PoE provides uninterrupted power to connected PD devices even when the switch is still booting. Fast Poe remembers the last power drawn from a particular port and switches on PoE power within 15 to 20 seconds after AC power is plugged-in without waiting for IOS to boot up. The combination of these two features means that the nodes will power on faster and turn on the lighting quicker, even before data communication has been granted:
Switch# configure terminal Switch(config)# interface range Gi1/0/<starting port#>-<end port#> Switch(config-if-range)# power inline port poe-ha Switch(config-if-range)# end
Enable Telnet (Optional)
This is an optional step to enable telnet on the Cisco switch. Determine the value you want to use for the telnet password, and then enter the following commands:
Switch# configure terminal Switch(config)# line vty 0 15 Switch(config-line)# password <telnet-password> Switch(config-line)# end
Enable Jumbo Frames (Optional)
This is an optional step to increase the allowed MTU packet size. This setting is important to use in an Igor lighting network with multiple network switches interconnected via trunk ports to ensure no communication packets are dropped between the nodes and the Gateway. To configure this setting, enter the following commands:
Switch# configure terminal Switch(config)# system mtu 9000 Switch(config-line)# end
Verify the setting change by entering the following command: Switch# show system mtu

ID-4122

Page 3

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Save Configuration
From the switch prompt, execute the following commands. (See screen example below.) Switch# copy running-config startup-config [Enter]
Important: If the configuration changes are not saved, then the switch will return to the previous settings the next time it is rebooted.

ID-4122

Page 4

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Common Commands
Enable EXEC Commands
Switch> enable Password: <switch-password> Switch#
View Switch Hardware and IOS Software Versions
Switch# show version
View Status of All Switch Ports
Switch# show interface status
View PoE Power Status of All Switch Ports
Switch# show power inline
View Manually Set PoE Power Allocation for All Switch Ports
Switch# show power inline consumption
View Detailed PoE Power Status of a Specific Port
Switch# show power inline gi1/0/<port#> detail
View PoE Power Policing Status of All Switch Ports (Real-time Power Demand Limits)
Switch# show power inline police
View Recent Messages from Switch Log (Including Errors)
Switch# show log

ID-4122

Page 5

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Enable Console Log Messages
Switch# configure terminal Switch(config)# logging console [severity-level]
Severity-level (Optional) 0 ­ Emergencies 1 ­ Alerts 2 ­ Critical 3 ­ Errors 4 ­ Warnings 5 ­ Notifications 6 ­ Informational 7 ­ Debugging (default)
Set Console Privileged EXEC Timeout
Switch# configure terminal Switch(config)# line console 0 Switch(config-line)# exec-timeout minutes [seconds] Switch(config-line)# end
Enable LLDP Globally on the Switch
Switch# configure terminal Switch(config)# lldp run
View Switch LLDP Statistics
Switch# show lldp
View LLDP Neighbors
Switch# show lldp neighbors
View Detailed LLDP Neighbor Information
Switch# show lldp neighbors detail

ID-4122

Page 6

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Disable and Re-enable a Specific Port
(i.e., Cycle PoE Power on a Port) Switch# configure terminal Switch(config)# int gi1/0/<port#> Switch(config-if)# shutdown Switch(config-if)# no shutdown Switch(config-if)# end
Enable Portfast Globally to Allow DHCP Request Within Five (5) Seconds
Switch# configure terminal Switch(config)# spanning-tree portfast default Switch(config)# end
Disable Portfast on Specific Ports Connected to Other Switches
Switch# configure terminal Switch(config)# int gi1/0/<port#> Switch(config-if)# spanning-tree portfast disable Switch(config-if)# end

ID-4122

Page 7

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Power Management Modes
Default Mode-- Auto
Automatically allocates power to the PoE port after device detection. This is the default setting. Switch# configure terminal Switch(config)# int gi1/0/<port#> Switch(config-if)# power inline auto Switch(config-if)# end
Limit the Allocated Power Budget for Port Before Switch Discovers PD
Switch# configure terminal Switch(config)# int gi1/0/<port#> Switch(config-if)# power inline auto max <milliwatts> Switch(config-if)# end
Set Static Allocated Power Level for Port Before Switch Discovers PD
The switch reserves this amount of power for the port even when no device is connected: Switch# configure terminal Switch(config)# int gi1/0/<port#> Switch(config-if)# power inline static max <milliwatts> Switch(config-if)# end
Force UPoE (60W) Power Availability from the Port via Four-Pair Mode
Switch# configure terminal Switch(config)# int gi1/0/<port#> Switch(config-if)# power inline four-pair forced Switch(config-if)# shutdown Switch(config-if)# no shutdown Switch(config-if)# end
Cancel Port Settings
To cancel specific port settings, reissue the command with a "no" preceding it. Example:
Switch(config-if)# no power inline static max

ID-4122

Page 8

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands

Cable Testing via Time-Domain Reflectometer (VDR)
To instruct the switch to run a TDR test on a specific interface, which helps determine if there's a fault in the cable and approximately how far away from the switch that fault exists, enter the following command:
Switch# test cable tdr int gi1/0/<port#> Show the results: Switch# show cable tdr int gi1/0/<port#>

Configure Switched Port Analyzer (SPAN) Port Mirroring and Monitoring
To send a copy of the traffic from the source port to the destination port on the switch, enter the following command. SPAN mirrors receive or transmit (or both) traffic on one or more source ports to a destination port for analysis:
Switch# configure terminal
Switch(config)# no monitor session all
Switch(config)# monitor session 1 source int gi1/0/<port#>
Switch(config)# monitor session 1 destination int gi1/0/<port#>

Cisco Command Short Forms

The Short Form commands below can be used in place of those listed in the commands above:

COMMAND

SHORT FORM

configure terminal

conf t

importance

imp

level

lev

name

n

show

sh

shutdown

shut

timeout

t

Factory Reset of Network Switch
To perform a hard factory reset, which resets everything, including the VLANs, hold the MODE button for 10 seconds until the switch resets.

ID-4122

Page 9

2018-Rev. 1

Cisco 3850 Series Switch Configuration and Common Commands
Cisco References
1. Cisco Catalyst 3850 Series Switches Data Sheet: http://www.cisco.com/c/en/us/products/collateral/switches/catalyst-3850-seriesswitches/data_sheet_c78-720918.html
2. Cisco IOS Command-Line Interface Basic Software Configuration: http://www.cisco.com/c/en/us/td/docs/routers/access/1800/1841/software/configuration/guide/s w/b_cli.html#wp1047439
3. Troubleshooting Power over Ethernet (PoE): http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/troubleshooting/g_po wer_over_ethernet.html
4. Cisco PoE Power Calculator (PoE+ only, requires Cisco login): https://tools.cisco.com/cpc/launch.jsp
END.

ID-4122

Page 10

2018-Rev. 1


Microsoft Word 2016