Cisco Switching Basics Use the link below, it will help today and in the future. https://app.box.com/s/8yczr4md4n0pj2jsz1jp
Our Lab Network 192.168.10.1/24 (DATA) 192.168.20.1/24 (WIRELESS) Everyone needs a console cable and a usb-to-console 192.168.10.1/24 (DATA) 192.168.20.1/24 (WIRELESS) 192.168.30.1/24 (DMZ / SERVERS) 192.168.50.1/24 (MANAGEMENT) Switch - 1 DHCP 192.168.10.2 Pools: 192.168.10.20-100 192.168.20.20-100 192.168.30.20-100 Switch - 2 3750 Router Switch - N Port 1 = DHCP If you don’t have it, you are not doomed. Let me know.
Command Line Interface The Cisco CLI has 3 basic modes of operation: User Exec Mode: Basic with show commands Privileged Exec: More advanced commands; Enter “enable” to get here Global Configuration Mode: This is where you configure the device; Enter “configure terminal” or “conf t” to get to here Type ? when you are looking for a command or its options!
Command Line Interface - Shortcuts Ctrl + A: Move cursor to beginning of the line Ctrl + E: Move cursor to end of the line Up Arrow: Display previous command Down Arrow: Display next command (if you’ve pressed UP) Tab: Complete the command
Cisco Startup and Running Configuration Cisco has a startup-config that is read at boot. The Running-Config is running in memory. When you make changes on the switch, those changes are made to the running-config. Once you save the changes, they get saved into the startup-config. Two ways to save: write mem copy running-config startup-config If you are in config t / Global config mode, type `do` in front. `do write mem`
Basic Setup - Lab 1 Boss comes in and throws at you a beautiful nice cisco switch and says to configure it. Unfortunately, it hit you in the head and you lost all knowledge of cisco networking. Luckily you remember you had a list of things you like to set up before making switches go live. ← hostname telnet or ssh (preferred) time (ntp) snmp logging default-gateway secret password saving
Telnet or SSH Telnet SSH config t line vty 0 4 password cisco http://www.thegeekstuff.com/2013/08/enable-ssh-cisco/
What is a VLAN? A VLAN is a group of devices on one or more LANs that are configured to communicate as if they were attached to the same wire, when in fact they are located on a number of different LAN segments. Because VLANs are based on logical instead of physical connections, they are extremely flexible. http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25ew/configuration/guide/conf/vlans.html
https://app.box.com/s/7xvzasvod6kcgydi06a70g7yjqbdxq7q What is a Trunk? https://app.box.com/s/7xvzasvod6kcgydi06a70g7yjqbdxq7q
Setting up an Interface
Interface Vlans?
Native Vlans? VLAN1 is on every switch by default. All the traffic is encapsulated passing over vlan 1 by default. By setting the native vlan to use a ‘management vlan’ of 50, it is more secure. Switch 1 Switch 2 Trunk (native vlan 50) You have to set it on both switches on the trunk interface, if you do not you get a native vlan mismatch error and nothing will work.
Connectivity - Lab 2 Your boss comes in with a grin on his face. You regret looking at him, luckily he isn’t carrying anything but a piece of paper. That won’t cause any harm. He talks about his boring fishing trip that seems to last until sunset. He then hands you this paper saying that the new switch you put in isn’t working yet and reminds you with this list of things to do. ← You already knew what to do but didn’t get around to it. Now he is saying its top priority. Setup each VLAN (2nd Slide) Setup the Trunk port Setup the Management IP Address Assign a vlan to at least one port Can you ping 192.168.50.1? Can you ping 192.168.20.1? Can you ping a neighbor's management ip?
Show Commands http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus1000/sw/4_ 2_1_s_v_1_5_1/command/reference/n1000v_cmd_ref/n1000v_cmds_show.htm l
Show Me - Lab 3 Find all the interfaces Find the stats on interfaces What trunks are on the switch? Show the vlans Practice show commands to get the hang of it.