Saturday, October 14, 2017

Cisco: Beginner Level

Main Page | CCNA Exercises | CCNP Labs | Contact


Lesson Labs:
Lesson 2 - Lab.

CCNA Lessons:
01 - Connecting to Cisco Console Port with MINICOM
02 - Navigating in Cisco IOS
03 - Initial Configuration of Cisco Switch and Router
04 - Introduction to TCP/IP Layers
05 - Encapsulation and De-enapsulation Process
06 - Example of TCP/IP Traffic Flow
07 - Building a Home Network
08 - Ethernet and Hub Operations
09 - Bridging/Switching Learning Process
10 - Cisco Discovery Protocol
11 - Layer 2 Connectivity Troubleshooting Part 1
12 - Layer 2 Connectivity Troubleshooting Part 2
13 - Layer 2 Connectivity Troubleshooting Part 3
14 - NTP and Syslog Services
15 - VLANs Overview
16 - VLANs In Practice
17 - Inter VLAN Traffic Flow Analysis
18 - VTP and VLAN Quiz
19 - Spanning-Tree Protocol Overview
20 - Spanning-Tree Protocol Operation
21 - Spanning-Tree Protocol in Practice
22 - Spanning-Tree Cisco Enhancements
23 - Introduction to Rapid STP (802.1w)
24 - Layer 2 Etherchannel
25 - Switch Port Security
26 - Binary World
27 - IPv4 Address Dissected - Part 1
28 - IPv4 Address Dissected - Part 2
29 - IPv4 Subnetting - The Rules
30 - IPv4 Subnetting - Practice
31 - What is a Router?
32 - Route Selection Process Demistified
33 - Static Routing
34 - Dynamic Routing Protocols Introduction
35 - Routing Information Protocol Part 1
36 - Routing Information Protocol Part 2
37 - Routing Information Protocol Part 3
38 - OSPF Fundamentals Part 1 - Terminology
39 - OSPF Fundamentals Part 2 - Hello Packets
40 - OSPF Fundamentals Part 3 - RouterID and DR/BDR
41 - OSPF Fundamentals Part 4 - Implementation
42 - OSPF Fundamentals Part 5 - The Lab
43 - EIGRP Fundamentals Part 1 - Overview
44 - EIGRP Fundamentals Part 2 - Implementation
45 - EIGRP Fundamentals Part 3 - The Lab
46 - EIGRP Fundamentals Part 4 - Troubleshooting
47 - Packet Filtering with Standard ACL
48 - Standard ACL Examples
49 - Packet Filtering with Extended ACLs
50 - Extended ACL Examples
51 - Network Address Translation Part 1 - Terminology
52 - Network Address Translation Part 2 - Principles of Operation
53 - Network Address Translation Part 3 - Overloading Addresses
54 - Network Address Translation Part 4 - Configuration Examples
55 - Introduction to IPv6 Part 1 - Addresses
56 - Introduction to IPv6 Part 2 - Address Structure
57 - Introduction to IPv6 Part 3 - Address Configuration
58 - Introduction to IPv6 Part 4 - Migration 


How to install and Use IOS on Linux.


Disclaimer!
This is a personal weblog. The opinions expressed here represent my own and not those of my employer. Also the stupidity is mine and mine alone. Some post content might be rude, offensive or borderline obnoxious (anything marked with label 'Ranting' is not suitable for people under 18 years old). Since, I try to have an open mind you can expect that my opinions may and probably will change in time. You may leave some comments but I reserve the right to ignore them completely. 


The technical content of this blog is a product of weekend/sleepless-and-or-hotel night/after-work technical struggle. Despite all efforts, it may be inaccurate and reflects the author's knowledge as of the time of writing the posts. The author of the posts will not assume any liability or responsibility to any person or entity with respect to loss or damages incurred from information contained in this blog. Any resemblance to some other training materials and/or CCNA/CCNP/CCIE exams is completely coincidental.

Lesson 2 - Lab


In order to benefit from this lab, please get familiar with the lesson first. In order to do it click the link Back to Lesson.

First connect your terminal software to a switch or router, power up the bad boy and hit enter. I am going to connect to my switch and let's fool around a bit with it. After the boot (a lot of messages flying out on your screen) you should have terminal access to your device.

If your device (like mine) has no startup configuration (more on that later) you will see something similar to this:



If that is the case please type no and hit enter to ignore this proposition.
You should see the prompt indicating that you are in 'user exec mode'.


Switch>


Use User Exec Mode Context Sensitive Help.
Type in question mark to see the available commands (keywords) in user exec mode. Your output might be different from mine. Commands in the first column on the left hand side of the screen will vary based on the type of your device (switch or router) platform (series) and version of IOS.

Here's my output (click the picture to enlarge it, ESC to exit the picture):




Commands (keywords) are always listed on the left. Next to each keyword you will see a brief explanation what a particular command does. At this stage don't try to learn them all. You will get familiar with the commands as soon as you start configuring various technologies. Now, just take a quick look at the layout.

Notice the -- More -- at the bottom of the page. This aptly indicates that there are more commands to be displayed but they did not fit on the screen.

Press Enter, to scroll down line by line. Press space bar to scroll down page by page. If output is long, you can stop and get your prompt back using 'q' letter.

REMEMBER
  • Display has paging enabled by default
  • Enter key scrolls down line by line
  • Space bar key  scrolls down page by page
  • Letter q stops terminates display and gives the prompt back
Check Your Privilege Level

Type in show privilege level and execute it by pressing Enter key. Example below should help you:


Switch>show privilege
Current privilege level is 1
Switch>

REMEMBER

  • Each command is a one line command followed by enter key
  • Privilege level 1 is user exec mode. This mode is used for monitoring and is restricted (many commands are not accessible).

Enter Privileged Exec Mode


Switch>enable
Switch#

Pay a close attention to the prompt. It changed from > to #.

Check Your Privilege Level


Switch#show privilege
Current privilege level is 15
Switch#

REMEMBER

Privilege level 15 is called 'privileged mode' or 'enabled mode'. This mode allows user to access ALL show and debug commands (more on these in later lessons). This means that the user has unrestricted access to the device. It also allows the user to enter 'global config mode'. This privilege level is a synonym to administrator in Windows or root in Linux operating systems.

Enter Global Configuration Mode

Follow the example below. Type show privilege and accept the command by pressing Enter key.

Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#

REMEMBER

Global Configuration Mode has typically larger number of commands. In this mode we configure features that will have a global scope (will apply to the device as a whole).

Configure Hostname

It is time to configure something useful. Let's start with naming our device. My switch is going to be called SW4. You can name yours whatever you like. Here's how we do it. Use hostname command followed by your name choice and enter:

Switch(config)#hostname SW4
SW4(config)#

Notice, that the hostname shows up immediately in the prompt.

REMEMBER

As soon as you accept the command with enter key the command is being executed in RAM memory immediately. Of course, as long as syntax is correct. System does not check the logic of what you do, only syntax (there are few exceptions but that is a general rule).


Check What Interfaces Your Device Has

In order to do that let's use show ip interface brief command. Now, if you remember from Lesson 2, show commands cannot be used in any configuration mode unless preceded with do command. Follow the example below (don't forget to hit enter key to execute the command):

Hint: If you use switch you can also try do show interface status command followed by enter

SW4(config)#do show ip interface brief

I will use the first interface on my device that is Ethernet0/0. You should the interface that is on your lab equipment.

Enter a Configuration of an Interface

SW4(config)#interface ethernet0/0
SW4(config-if)#

Notice the prompt! It shows that you are in the configuration mode of the interface you have entered. In my case it is ethernet0/0 (type: ethernet, module 0, port 0 respectively).

Configure Interface Description

SW4(config-if)#description *** UNUSED ***
SW4(config-if)#

Exit Configuration Interface (Back to Config Mode)

SW4(config-if)#exit
SW4(config)#

Exit Global Config Mode (Back to Privileged Exec Mode)

SW4(config)#exit
SW4#


REMEMBER

The exit keyword takes you one step down in the hierarchy of IOS modes of operation.

Check Terminal History Size

Your device will remember a number of recently used commands (that includes your typos). This buffer size can be changed.

SW4#show terminal

Look at my output below. Locate the line that reads:

History is enabled, history size is 20.

Your output might say size is 10 instead of 20


Change History Buffer to 256 Commands


SW4#terminal history size 256
SW4#

Check History Buffer After Change

SW4#show terminal | include history
History is enabled, history size is 256.
SW4#

Notice that this time, I used a pipe sign | followed by include history.

Let's see what options my device has when used with pipe character:


You don't have to learn them all now, but remember at least four of them (if you don't see section that is fine, not all devices have it).

REMEMBER

Useful pipe options (matching words is case sensitive):
  • begin
  • include
  • exclude
  • section
If you still don't know how to use them, don't worry. You will be using them with me very soon and you will learn how useful they are very soon.

IOS has many features in relation to navigation like shortcuts (CTRL-a, CTRL-e, etc.). You can read about them in lesson 2. Now I would like you to practice at least four of them that I find extremely useful. Follow this step. Notice exclamation mark at the beginning of the sentence. It is like comment. If you precede something with an ! mark, hitting enter will not produce an error. It will not be executed at all.

Write A Long Sentence Using Prompt (DO NOT HIT ENTER THIS TIME)

If you type in a long sentence it will not fit into the screen. Thenat the beginning of the line a dollar sign shows indicating that there is more stuff that is being truncated (invisible).


Now, use the following sequence and each time observer what happened to your cursor:

CTRL-a (cursor jumps to the left hand side; beginning of the line)
CTRL-e (cursor jumps to far right; end of the line

Now using left arrow move the cursor to the middle of your sentence and press another two shortcuts in turn:

CTRL-k (everything to the right of the cursor is erased)
CTRL-u (everything to the left of the cursor is erased)


Great stuff. Give yourself a break before commencing to your homework.

REMEMBER

You do not have to use full words to use the commands. You do not even have to use tab to auto complete them. For instance, instead of:

configure terminal

I can use

conf t


See what I did below. Try to repeat it, but check what happened each step of the way.


Two more things before we call it a day. Your configuration (hostname, interface description) is kept in the RAM memory. This means that after reboot, it will be gone. In order to save your work, you must use copy running-configuration or older command write memory.  You can abbreviate them to copy run start, or wr, respectively.

In order to display running configuration use show running-config or show run. In order to see the configuration you saved in NVRAM/FLASH, use show startup-configuration or show startup.

I hope you enjoyed the lab and feel excited to see another one. See you soon.


Friday, January 6, 2017

Contact


If you wish to contact me please send your email to

linuxed.jr [at] gmail dot com

Thanks for stopping by.

Cisco: Beginner Level

Main Page |  CCNA Exercises   |   CCNP Labs | Contact Lesson Labs: Lesson 2 - Lab . CCNA Lessons: 01 - Connecting to Ci...