{"id":2625,"date":"2016-02-28T22:50:23","date_gmt":"2016-02-29T03:50:23","guid":{"rendered":"http:\/\/microdevsys.com\/wp\/?p=2625"},"modified":"2019-12-14T00:07:25","modified_gmt":"2019-12-14T05:07:25","slug":"configuring-cisco-switch-3750g-poe","status":"publish","type":"post","link":"https:\/\/microdevsys.com\/wp\/configuring-cisco-switch-3750g-poe\/","title":{"rendered":"Configuring Cisco Switch 3750G  POE"},"content":{"rendered":"<p>\n\tThis is a set of running notes on configuring a Cisco 3750G POE Switch. &nbsp;It&#39;s very very messy and is meant for me to remember the ins and outs of doing this. &nbsp;Along the way, it could help someone else too.\n<\/p>\n<p>\n\tFirst use a console connection to your switch. &nbsp;The console is unaffected by what we do on the ports so for initial configuration, this is what is recommended. &nbsp;You&#39;ll need a DB9 to RS-232 Cable however some wiring of the DB9 may be needed so it is highly recommended you do that. &nbsp;Search for the pin placements of a DB9 to an RS-232 for a Cisco switch on this blog. &nbsp;If all connected well, you&#39;ll be rewarded with a nice cold busybox prompt. &nbsp;Cisco default settings are:\n<\/p>\n<p>\n\t<!--more-->\n<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; padding: 0px 0px 5px; border: 0px; font-stretch: inherit; font-size: 11px; line-height: 14px; font-family: courier; vertical-align: baseline; overflow: auto; max-width: 97%; height: auto; color: rgb(82, 82, 82); margin-left: 40px;\">\r\nBits per sec    :  9600 \r\nData bits       :     8 \r\nParity          :  none \r\nStop bits       :     1 \r\nFlow control    :  none <\/pre>\n<p>\n\tIn windows go to Device Manager vi a navigation gauntlet to find the <strong>COM?<\/strong> port you need for putty while in linux run <strong>ls -altri \/dev\/ttyUSB*<\/strong> to determine the serial port (If you&#39;re using a Serial to USB <strong>RS-232<\/strong>). &nbsp;Your reward will be:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01&gt;<br \/>\n\tmdscisco01&gt;<\/span>\n<\/p>\n<p>\n\t<span style=\"line-height: 1.6em;\">This is good. &nbsp;On to the fun stuff. &nbsp;At this point your best friend is the <\/span><strong style=\"line-height: 1.6em;\">?<\/strong><span style=\"line-height: 1.6em;\"> charater. &nbsp;It will show you the help with which you can remember things and get started on. &nbsp;Turn on previlidged commands. &nbsp;We&#39;ll do most of our work through here:<\/span>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01&gt;enable<br \/>\n\tmdscisco01#<\/span>\n<\/p>\n<p>\n\tNot bad. &nbsp;Now we&#39;ll use this list of commands to get by and configure it the way we like.\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01#conf t<br \/>\n\tEnter configuration commands, one per line. &nbsp;End with CNTL\/Z.<br \/>\n\tmdscisco01(config)#<\/span>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01(config)#int GigabitEthernet1\/0\/28<br \/>\n\tmdscisco01(config-if)#<\/span>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-size:12px;\"><span style=\"font-family:courier new,courier,monospace;\">mdscisco01#show ip int brief<br \/>\n\tInterface &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IP-Address &nbsp; &nbsp; &nbsp;OK? Method Status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Protocol<br \/>\n\tVlan1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;192.168.0.3 &nbsp; &nbsp; YES NVRAM &nbsp;up &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;down<br \/>\n\tGigabitEthernet1\/0\/1 &nbsp; unassigned &nbsp; &nbsp; &nbsp;YES unset &nbsp;down &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;down<\/span><\/span>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01#sh vlan<\/span>\n<\/p>\n<p>\n\tcreate some VLAN&#39;s that we can use later (not necessary but handy)\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01(config)#vlan 1,40-50,60-70,100,200<\/span>\n<\/p>\n<p>\n\twell never mind so let&#39;s remove these VLAN&#39;s &nbsp;(At least now you know the syntax for it. &nbsp;Later we will enable them on a port range.):\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01(config)#no vlan 40-50,60-70,100,200<br \/>\n\tmdscisco01(config)#<\/span>\n<\/p>\n<p>\n\tSet an IP \/ Gateway on VLAN 1 on the switch (Unremovable VLAN)\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01#conf t<br \/>\n\tEnter configuration commands, one per line. &nbsp;End with CNTL\/Z.<br \/>\n\tmdscisco01(config)#int vlan 1<br \/>\n\tmdscisco01(config-if)#ip address 192.168.0.3 255.255.255.0<br \/>\n\tmdscisco01(config-if)#no shut<br \/>\n\tmdscisco01(config-if)#<br \/>\n\t01:00:25: %LINK-3-UPDOWN: Interface Vlan1, changed state to up<br \/>\n\tmdscisco01(config-if)#end<br \/>\n\tmdscisco01#<br \/>\n\t01:00:31: %SYS-5-CONFIG_I: Configured from console by console<br \/>\n\tmdscisco01#conf t<br \/>\n\tEnter configuration commands, one per line. &nbsp;End with CNTL\/Z.<br \/>\n\tmdscisco01(config)#int vlan 1<br \/>\n\tmdscisco01(config-if)#ip default-gateway 192.168.0.1<br \/>\n\tmdscisco01(config)#ip default-gateway 192.168.0.1<br \/>\n\tmdscisco01(config)#end<br \/>\n\tmdscisco01#<br \/>\n\t01:02:36: %SYS-5-CONFIG_I: Configured from console by console<br \/>\n\tmdscisco01#show int vlan 1<br \/>\n\tVlan1 is up, line protocol is down<br \/>\n\t&nbsp; Hardware is EtherSVI, address is 001c.57ae.f840 (bia 001c.57ae.f840)<br \/>\n\t&nbsp; Internet address is 192.168.0.3\/24<br \/>\n\t&nbsp; MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,<br \/>\n\t&nbsp; &nbsp; &nbsp;reliability 255\/255, txload 1\/255, rxload 1\/255<br \/>\n\t&nbsp; Encapsulation ARPA, loopback not set<br \/>\n\t&nbsp; Keepalive not supported<br \/>\n\t&nbsp; ARP type: ARPA, ARP Timeout 04:00:00<br \/>\n\t&nbsp; Last input never, output 00:02:24, output hang never<br \/>\n\t&nbsp; Last clearing of &quot;show interface&quot; counters never<br \/>\n\t&nbsp; Input queue: 0\/75\/0\/0 (size\/max\/drops\/flushes); Total output drops: 0<br \/>\n\t&nbsp; Queueing strategy: fifo<br \/>\n\t&nbsp; Output queue: 0\/40 (size\/max)<br \/>\n\t&nbsp; 5 minute input rate 0 bits\/sec, 0 packets\/sec<br \/>\n\t&nbsp; 5 minute output rate 0 bits\/sec, 0 packets\/sec<br \/>\n\t&nbsp; &nbsp; &nbsp;0 packets input, 0 bytes, 0 no buffer<br \/>\n\t&nbsp; &nbsp; &nbsp;Received 0 broadcasts (0 IP multicasts)<br \/>\n\t&nbsp; &nbsp; &nbsp;0 runts, 0 giants, 0 throttles<br \/>\n\t&nbsp; &nbsp; &nbsp;0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored<br \/>\n\t&nbsp; &nbsp; &nbsp;22 packets output, 1459 bytes, 0 underruns<br \/>\n\t&nbsp; &nbsp; &nbsp;0 output errors, 1 interface resets<br \/>\n\t&nbsp; &nbsp; &nbsp;0 output buffer failures, 0 output buffers swapped out<br \/>\n\tmdscisco01#<\/span>\n<\/p>\n<p>\n\tNext we will test the connectivity of our switch to the rest of the network. (Second comment UPDOWN is Amber light and third UPDOWN is Green light on the switch ports to which a cable is connected.&nbsp;)\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01#<br \/>\n\t01:06:42: %LINK-3-UPDOWN: Interface GigabitEthernet1\/0\/13, changed state to up<br \/>\n\t01:06:43: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1\/0\/13, changed state to up<br \/>\n\tmdscisco01#<br \/>\n\t01:07:11: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up<br \/>\n\tmdscisco01#<\/span>\n<\/p>\n<p>\n\tAnd validate the ping to some of the equipment you have:\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01#ping 192.168.0.152<br \/>\n\t<span style=\"line-height: 1.6em;\">Type escape sequence to abort.<\/span><br \/>\n\t<span style=\"line-height: 1.6em;\">Sending 5, 100-byte ICMP Echos to 192.168.0.152, timeout is 2 seconds:<\/span><br \/>\n\t<span style=\"line-height: 1.6em;\">!!!!!<\/span><br \/>\n\t<span style=\"line-height: 1.6em;\">Success rate is 100 percent (5\/5), round-trip min\/avg\/max = 1\/203\/1007 ms<\/span><br \/>\n\t<span style=\"line-height: 1.6em;\">mdscisco01#<\/span><\/span>\n<\/p>\n<p>\n\tNow let&#39;s set <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/switches\/lan\/catalyst2960x\/software\/15-0_2_EX\/security\/configuration_guide\/b_sec_152ex_2960-x_cg\/b_sec_152ex_2960-x_cg_chapter_01000.pdf\" rel=\"external nofollow\">the password<\/a> to enable SSH \/ Telnet Login:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\"><strong>mdscisco01(config)#enable secret &lt;halbhalb&gt;<br \/>\n\tmdscisco01(config)#enable password &lt;halbhalb&gt;<\/strong><br \/>\n\tThe enable password you have chosen is the same as your enable secret.<br \/>\n\tThis is not recommended. &nbsp;Re-enter the enable password.<\/span>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01(config)#<br \/>\n\tmdscisco01(config)#<br \/>\n\t<strong>mdscisco01(config)#enable password &lt;blahblah&gt;<br \/>\n\tmdscisco01(config)#end<\/strong><\/span>\n<\/p>\n<p>\n\tSometimes an interface misbehaves so we can shut it down until we investigate what&#39;s wrong:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-size:12px;\"><span style=\"font-family:courier new,courier,monospace;\"><strong>mdscisco01#conf t<\/strong><br \/>\n\tEnter configuration commands, one per line. &nbsp;End with CNTL\/Z.<br \/>\n\t<strong>mdscisco01(config)#int gigabitethernet1\/0\/3<\/strong><br \/>\n\tmdscisco01(config-if)#<br \/>\n\t<strong>mdscisco01(config-if)#shut<\/strong><br \/>\n\tmdscisco01(config-if)#<br \/>\n\t02:45:45: %LINK-5-CHANGED: Interface GigabitEthernet1\/0\/3, changed state to administratively down<br \/>\n\t02:45:46: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1\/0\/3, changed state to down<br \/>\n\tmdscisco01(config-if)#<br \/>\n\tmdscisco01(config-if)#<br \/>\n\t<strong>mdscisco01#show interface gigabitethernet1\/0\/3<\/strong><br \/>\n\tGigabitEthernet1\/0\/3 is administratively down, line protocol is down (<span style=\"color:#FF0000;\">disabled<\/span>)<br \/>\n\t&nbsp; Hardware is Gigabit Ethernet, address is 001c.57ae.f803 (bia 001c.57ae.f803)<br \/>\n\t&nbsp; MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,<br \/>\n\t&nbsp; &nbsp; &nbsp;reliability 255\/255, txload 1\/255, rxload 1\/255<br \/>\n\t&nbsp; Encapsulation ARPA, loopback not set<br \/>\n\t&nbsp; Keepalive set (10 sec)<br \/>\n\t&nbsp; Auto-duplex, Auto-speed, media type is 10\/100\/1000BaseTX<br \/>\n\t&nbsp; input flow-control is off, output flow-control is unsupported<br \/>\n\t&nbsp; ARP type: ARPA, ARP Timeout 04:00:00<br \/>\n\t&nbsp; Last input never, output 00:05:26, output hang never<br \/>\n\t&nbsp; Last clearing of &quot;show interface&quot; counters never<br \/>\n\t&nbsp; Input queue: 0\/75\/0\/0 (size\/max\/drops\/flushes); Total output drops: 0<br \/>\n\t&nbsp; Queueing strategy: fifo<br \/>\n\t&nbsp; Output queue: 0\/40 (size\/max)<br \/>\n\t&nbsp; 5 minute input rate 0 bits\/sec, 0 packets\/sec<br \/>\n\t&nbsp; 5 minute output rate 0 bits\/sec, 0 packets\/sec<br \/>\n\t&nbsp; &nbsp; &nbsp;0 packets input, 0 bytes, 0 no buffer<br \/>\n\t&nbsp; &nbsp; &nbsp;Received 0 broadcasts (0 multicasts)<br \/>\n\t&nbsp; &nbsp; &nbsp;0 runts, 0 giants, 0 throttles<br \/>\n\t&nbsp; &nbsp; &nbsp;0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored<br \/>\n\t&nbsp; &nbsp; &nbsp;0 watchdog, 0 multicast, 0 pause input<br \/>\n\t&nbsp; &nbsp; &nbsp;0 input packets with dribble condition detected<br \/>\n\t&nbsp; &nbsp; &nbsp;26815 packets output, 3035941 bytes, 0 underruns<br \/>\n\t&nbsp; &nbsp; &nbsp;0 output errors, 0 collisions, 2 interface resets<br \/>\n\t&nbsp; &nbsp; &nbsp;0 babbles, 0 late collision, 0 deferred<br \/>\n\t&nbsp; &nbsp; &nbsp;0 lost carrier, 0 no carrier, 0 PAUSE output<br \/>\n\t&nbsp; &nbsp; &nbsp;0 output buffer failures, 0 output buffers swapped out<br \/>\n\tmdscisco01#<\/span><\/span>\n<\/p>\n<p>\n\tIf your configuration is working, don&#39;t forget to save it:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01#copy running-config startup-config<br \/>\n\tDestination filename [startup-config]?<br \/>\n\tBuilding configuration&#8230;<br \/>\n\t[OK]<br \/>\n\tmdscisco01#<\/span>\n<\/p>\n<p>\n\tIf you get:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">Password required, but none set<\/span>\n<\/p>\n<p>\n\tIt&#39;s time to set a password for your Cisco switch:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01#conf t<br \/>\n\tEnter configuration commands, one per line. &nbsp;End with CNTL\/Z.<br \/>\n\tmdscisco01(config)#aaa<br \/>\n\t% Incomplete command.<\/span>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01(config)#aaa new-model<br \/>\n\tmdscisco01(config)#aaa authentication login default local<\/span><br \/>\n\t<span style=\"font-family: 'courier new', courier, monospace; font-size: 13px; line-height: 20.8px;\">mdscisco01(config)#<\/span><span style=\"font-family: 'courier new', courier, monospace; line-height: 1.6em;\">aaa authentication enable default enable<\/span><br \/>\n\t<span style=\"font-family: 'courier new', courier, monospace; line-height: 1.6em;\">mdscisco01(config)#username &lt;USER&gt;&nbsp;password &lt;SECRET&gt;<\/span><br \/>\n\t<span style=\"font-family: 'courier new', courier, monospace; line-height: 1.6em;\">mdscisco01(config)#enable secret &lt;USER&gt;<\/span><br \/>\n\t<span style=\"font-family: 'courier new', courier, monospace; line-height: 1.6em;\">mdscisco01(config)#end<\/span><br \/>\n\t<span style=\"font-family: 'courier new', courier, monospace; line-height: 1.6em;\">mdscisco01#<\/span><br \/>\n\t<span style=\"font-family: 'courier new', courier, monospace; line-height: 1.6em;\">03:51:16: %SYS-5-CONFIG_I: Configured from console by console<\/span><br \/>\n\t<span style=\"font-family: 'courier new', courier, monospace; line-height: 1.6em;\">mdscisco01#<\/span>\n<\/p>\n<p>\n\tAnd then you need to go back above and <strong>enable secret &lt;SECRET&gt;<\/strong> followed by <strong>enable password &lt;PASSWORD&gt;<\/strong>&nbsp;\n<\/p>\n<p>\n\tTo discover IP&#39;s mapped to their MAC addresses, use these commands:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-family:courier new,courier,monospace;\">mdscisco01# show mac-address-table<br \/>\n\tmdscisco01# show arp<br \/>\n\tmdscisco01# sh ip arp<br \/>\n\tmdscisco01#sh&nbsp;int gig 1\/0\/2 &nbsp; # Short Form<\/span>\n<\/p>\n<p>\n\tOn initial login through SSH, use the default password:\n<\/p>\n<p>\n\tN: cisco<br \/>\n\tP: cisco or <strong>pass you&#39;ve set<\/strong>\n<\/p>\n<p>\n\tGood stuff! &nbsp;\n<\/p>\n<p>\n\tCheers,<br \/>\n\tTK\n<\/p>\n<p>\n\tREF:&nbsp;<a href=\"https:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/switches\/lan\/catalyst4500\/12-2\/31sg\/configuration\/guide\/conf\/connect.pdf\">https:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/switches\/lan\/catalyst4500\/12-2\/31sg\/configuration\/guide\/conf\/connect.pdf<\/a>\n<\/p>\n<p>\n\t&nbsp;<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>This is a set of running notes on configuring a Cisco 3750G POE Switch. &nbsp;It&#39;s very very messy and is meant for me to remember the ins and outs of doing this. &nbsp;Along the way, it could help someone else too. First use a console connection to your switch. &nbsp;The console is unaffected by what [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2625","post","type-post","status-publish","format-standard","hentry","category-unix-linux-admin-stuff"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts\/2625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/comments?post=2625"}],"version-history":[{"count":5,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts\/2625\/revisions"}],"predecessor-version":[{"id":5061,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts\/2625\/revisions\/5061"}],"wp:attachment":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/media?parent=2625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/categories?post=2625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/tags?post=2625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}