(DevCourseWeb - Com) CISCO CCNA COMMAND GUIDE Advanced Methods and Strategies To Learn CISCO CCNA
(DevCourseWeb - Com) CISCO CCNA COMMAND GUIDE Advanced Methods and Strategies To Learn CISCO CCNA
GUIDE
Advanced Methods and Strategies to Learn CISCO
CCNA
Table of Contents
Introduction
Chapter One: Cisco Devices
Cable Types
LAN Connections
The Difference Between 568A and 568B Cables
Command Line Interface
Keyboard Usages
Chapter Two: Commands for the Configuration of the Router
Router Modes Commands
Configuration of the Name of the Router
Global Configuration Mode
Commands for the Configuration of Passwords
Password Encryption Commands
The show Commands
Interface Names
Navigation Through Interfaces
Configuring Interfaces
Some Miscellaneous Commands
Basic Router Configuration
Chapter Three: Networking and Routing Concepts
Change the Default Settings of the Administrative Distance
IPv6 Address Assignment to Interface
Chapter Four: Deciphering RIP, IGRP & EIGRP
RIP Routing
RIP Version 2 Commands
Troubleshooting Problems
Mandatory Commands for RIP Version 2
Optional Commands for RIP Version 2
IGRP
EIGRP
RIP Next Generation
Chapter Five: Open Shortest Path Protocol (OSPF)
Mandatory Commands for OSPF
Optional Commands for OSPF
Authentication
MD5 Authentication
Timers
Default Route
OSPF Configuration Verification
Troubleshooting Process
Chapter Six: Open Shortest Path Protocol (OSPF) Single Area and
Multiarea Configuration
Single Area OSPF Configuration
Multi-area OSPF
OSPF Configuration
Multiarea OSPF Configuration
Loopback Interfaces
Router ID
Configuration: OSPF Single Area
OSPF Single Area Configuration
Chapter Seven: Open Shortest Path Protocol (OSPF) Area and Network
Types
OSPF Special Area Types
OSPF Network Types
OSPF and NBMA Topology
OSPF and Point-to-Multipoint Networks
OSPF and Point-to-Point Networks By Using Subinterfaces
OSPF for IPv6 on Interface
Verifying OSPF Configuration
Troubleshooting OSPF
Chapter Eight: Configuration of Switch
Command Modes
Command Verification
Resetting Configuration
Setting Hostnames
Setting IP Addresses
Interface Descriptions
Duplex Settings
Web-based Interface for Configuration Setting
MAC Address Management
Configuring Static MAC Addresses
For 2900/2950 series
Port Security
Port Security Violation
2900 Switch Configuration
Spanning Tree Protocol
Changing Spanning-tree Priority of the Switch
Changing the Spanning Tree Cost
Changing Spanning Tree
Configuration of EtherChannel
Chapter Nine: VLAN
Displaying VLANs
Static VLANs
Port Assigning to VLANS
Saving VLAN Configurations
Erasing VLAN Configurations
Troubleshooting Process
VLAN Configuration Process
VTP Configuration
Conclusion
References
© Copyright 2020 - All rights reserved.
This document is geared towards providing exact and reliable information in regards to the topic and
issue covered. The publication is sold with the idea that the publisher is not required to render
accounting, officially permitted, or otherwise, qualified services. If advice is necessary, legal or
professional, a practiced individual in the profession should be ordered.
- From a Declaration of Principles which was accepted and approved equally by a Committee of the
American Bar Association and a Committee of Publishers and Associations.
In no way is it legal to reproduce, duplicate, or transmit any part of this document in either electronic
means or in printed format. Recording of this publication is strictly prohibited and any storage of this
document is not allowed unless with written permission from the publisher. All rights reserved.
The information provided herein is stated to be truthful and consistent, in that any liability, in terms of
inattention or otherwise, by any usage or abuse of any policies, processes, or directions contained
within is the solitary and utter responsibility of the recipient reader. Under no circumstances will any
legal responsibility or blame be held against the publisher for any reparation, damages, or monetary
loss due to the information herein, either directly or indirectly.
Respective authors own all copyrights not held by the publisher.
The information herein is offered for informational purposes solely, and is universal as so. The
presentation of the information is without contract or any type of guarantee assurance.
The trademarks that are used are without any consent, and the publication of the trademark is without
permission or backing by the trademark owner. All trademarks and brands within this book are for
clarifying purposes only and are the owned by the owners themselves, not affiliated with this
document.
Introduction
This book on CISCO CCNA is a command guide to assist you in your studies
regarding CCNA certification. This book contains proven steps and strategies
on how to prepare for the exam. You can use this guide for self-study and on-
the-job training. You can use the commands, the hints to make your
networking easier for you. The book is small and smart enough to be your
pocket guide. Whenever you encounter a problem, you can use this book as a
reference guide to tackle the problem and manage it effectively. Unlike some
big heavy textbooks, this book is packed up with to-the-point commands to
help you learn and prepare in a short time.
Your strategy to prepare for the CCNA exam might be different from that of
the other students. You might work through your preparation in a different
style. You might have been equipped with the basic skills unlike your peers.
Your knowledge, skills, experience, and learning potential will affect how
you study for the exam. I have kept all the possible variations in my view
when I wrote this book. All the commands are explained in the text format,
unlike tables that are hard to read and understand. The simple text format
makes this book different from the other books, and it also helps the reader
better understand the concepts behind the commands. It does not matter what
your background is; the book will help you effectively learn Cisco CCNA.
Students like to make sure they learn a topic by heart. To make it possible,
they scan many books and notes and research on the internet. However, as the
information is scattered over different mediums and platforms, they get
extremely confused. This lands them in trouble while they are close to their
exams. In this book, you will find all the relevant information neatly ordered.
The topics are written coherently. I have added all the commands in a concise
manner to help readers grasp the concept. These features will boost your
confidence. Once you have a proper knowledge base, you can practice the
commands to take the exam. A solid knowledge base will allow you to make
out what topics you need to research in an in-depth manner.
The book is organized into chapters, explaining separate topics to make the
reading process easy and fun. I have tried to keep the book as less jumbled up
as I can. To achieve that purpose, I have used bullet points to explain each
command so you can better understand each of them. The chapters also
contain troubleshooting commands to help you manage the errors that come
along the way. I encourage you to move on to the first chapter and start the
learning process.
Chapter One: Cisco Devices
The chapter walks you through the requisite information and commands
needed to connect rollover cables to the switch or router. The chapter also
spans around the determination of the terminal settings and setup of LAN
connections. I have explained different categories in bullets to give you a
clear understanding.
Cable Types
You must ensure that the cabling is properly done or you might trigger
problems before you even start. See the following pattern.
568B Standard
Pin 1 of white or orange color will pair with 2. Its description is
TxData +.
Pin 2 of orange color will pair with 2. Its description is TxData +.
Pin 3 of white or green color will pair with 3. Its description is
RecvData +.
Pin 4 of blue color will pair with 1. Its description is Unused.
Pin 5 of white or blue color will pair with 1. Its description is
Unused.
Pin 6 of green color will pair with 3. Its description is RecvData -.
Pin 7 of white or brown color will pair with 4. Its description is
Unused.
Pin 8 of brown color will pair with 4. Its description is Unused.
The odd pin numbers always belong to the striped wires.
Command Line Interface
To enhance efficiency, Cisco IOS software has provided the users with some
shortcuts to enter the most used commands.
The command
Router#c1?
clear clock
will list all the available choices that will start with cl.
The command
Router#clock ?
set
will list all the available choices that reveal all the subcommands that
are linked to this command. It also sets the date and time of the system.
Miscellaneous Commands
There is an enable command you can use to move the user. The
command Router>enable Router# will move the user to the
privileged mode.
The command Router#exit or Router>exit allows the user to log
off on the system.
The command Router(config-if)#exit Router(config)# will move
the user back to level one.
The command Router(config)#exit Router# will also move the
user back to level one.
The command Router#disable Router> will move a user from the
privileged mode to the user mode. It is known as the disable
command.
The command Router#logout has the same function to perform as
exit. It is known as the logout command.
The command Router#setup will take the user to the startup mode
right at the command line. It is labeled as the setup mode and you
will see an answer in the square brackets. If this is what you want,
you should go on and press the Enter key. If you want to end the
setup process at any point, you can enter Ctrl + C to shut down the
interfaces and return to the user-mode Router>. The setup mode
can never be used for the router's configuration as it only performs
the basics. You can turn on the IGRP or RIPv1 but not the EIGRP
or OSPF and you cannot make ACLs or enable the NAT.
Keyboard Usages
You can use different keyboard commands during the editing process. There
will be many tasks that you will repeatedly be using. To make it possible, the
Cisco IOS Software allows you to use different keyboard combinations to
make the process highly efficient.
You can use the carrot symbol ^ over the 6 key on the keyboard to
locate the mistake you might have made while entering the
command.
You can enter ctrl + a on the keyboard to move the cursor from
where it is to the start of the line.
You can enter ctrl + b on the keyboard to move the cursor from
where it is to the back by one word.
You can enter ctrl + b or the left arrow on the keyboard to move
the cursor from where it is to back by one character.
You can enter ctrl + e on the keyboard to move the cursor from
where it is to the end of the line.
You can enter Esc + f on the keyboard to move the cursor from
where it is to a forward point by one word.
You can enter Ctrl + f or the right arrow on the keyboard to move
the cursor from where it is to a forward point by one character.
You can enter $ that is above the 4 key on the keyboard to indicate
that you have scrolled the line toward the left side.
You can enter Router#terminal no editing to turn off the ability to
use the keyboard shortcuts of the previous session.
You can enter Router#terminal editing to re-enable the enhanced
editing mode.
You can scroll through the history by the following commands.
This chapter will walk you through the commands and information about the
configuration of a router. You will learn how to set up the names, interfaces,
passwords, host tables, and save the configurations. The router mode
commands are as under.
Router Modes Commands
There are different router modes that you may experience while you are
navigating through the command line. All the commands do not work in all
modes. If you type something in a command and you know it is correct but
you get an error instead, you should recheck if the mode you are working in
is right.
Interface Names
Remembering the names of the interfaces is one of the biggest problems that
administrators might face. Each router has a different interface name. The
market is replete with many Cisco devices that are being used in the
production networks in the present day. Some administrators get confused
due to these interface names. You can use the command router#show ip
interface brief to see which type of interface is on your computer.
Router mode: 2501. The slot number or port location is on board. The port or
slot type is Ethernet. The slot numbering range is labeled as an interface-type
number. An example of this interface is ethernet0(e0).
Router mode: 2501. The slot number or port location is on board. The port or
slot type can be Serial. The slot numbering range is labeled as an interface-
type number. An example of this interface is serial0 (sO) & s1.
Router mode: 2514. The slot number or port location is on board. The port or
slot type is Ethernet. The slot numbering range is labeled as an interface-type
number. An example of this interface is e0 & e1.
Router mode: 1721. The slot number or port location is on board. The port or
slot type is FastEthernet. The slot numbering range is labeled as an interface-
type number. An example of this interface is fastethernet0()(fa0).
Router mode: 2514. The slot number or port location is slot 0. The port or
slot type is WAC (WIN Interface Card) (Serial). The slot numbering range is
labeled as an interface-type number. An example of this interface is s0 & s1.
Router mode: 1760. The slot number or port location is on board. The port or
slot type is Fast Ethernet. The slot numbering range is labeled as interface-
type 0/port. An example of this interface is fa0/0.
Router mode: 1760. The slot number or port location is slot 0. The port or
slot type is WIC/VIC (Voice Interface Card). The slot numbering range is
labeled as interface-type 0/port. An example of this interface is s0/0 & s0/1
and v0/0 & v0/1.
Router mode: 1760. The slot number or port location is slot 1. The port or
slot type is WIC/VIC. The slot numbering range is labeled as interface-type
1/port. An example of this interface is s1/0 & s1/1 and v1/0 & v1/1.
Router mode: 1760. The slot number or port location is slot 2. The port or
slot type is VIC. The slot numbering range is labeled as interface-type 2/port.
An example of this interface is v2/0 & v2/1.
Router mode: 1760. The slot number or port location is slot 3. The port or
slot type is VIC. The slot numbering range is labeled as interface-type 3/port.
An example of this interface is v3/0 & v3/1.
Router mode: 2610. The slot number or port location is on board. The port or
slot type is Ethernet. The slot numbering range is labeled as interface-type
0/port. An example of this interface is e0/0.
Router mode: 2610. The slot number or port location is slot 0. The port or
slot type is WIC (Serial). The slot numbering range is labeled as interface-
type 0/port. An example of this interface is s0/0 & s0/1.
Router mode: 2611. The slot number or port location is on board. The port or
slot type is Ethernet. The slot numbering range is labeled as interface-type
0/port. An example of this interface is e0/0 & e0/1.
Router mode: 2611. The slot number or port location is slot 0. The port or
slot type is WIC (Serial). The slot numbering range is labeled as interface-
type 0/port. An example of this interface is s0/0 & s0/1.
Router mode: 2620. The slot number or port location is on board. The port or
slot type is FastEthernet. The slot numbering range is labeled as interface-
type 0/port. An example of this interface is fa0/0.
Router mode: 2620. The slot number or port location is slot 0. The port or
slot type is WIC (Serial). The slot numbering range is labeled as interface-
type 0/port. An example of this interface is s0/0 & s0/1.
Router mode: 2621. The slot number or port location is on board. The port or
slot type is FastEthernet. The slot numbering range is labeled as interface-
type 0/port. An example of this interface is fa0/0 & fa0/1.
Router mode: 2621. The slot number or port location is slot 0. The port or
slot type is WIC (Serial). The slot numbering range is labeled as interface-
type 0/port. An example of this interface is s0/0 & s0/1.
Router mode: 1841. The slot number or port location is on board. The port or
slot type is FastEthernet. The slot numbering range is labeled as interface-
type 0/port. An example of this interface is fa0/0 & fa0/1.
Router mode: 1841. The slot number or port location is slot 0. The port or
slot type is HWIC/WIC/VWIC. The slot numbering range is labeled as
interface-type 0/port. An example of this interface is s0/0/0& s0/0/1.
Router mode: 1841. The slot number or port location is slot 1. The port or
slot type is HWIC/WIC/VWIC. The slot numbering range is labeled as
interface-type 0/port. An example of this interface is s0/1/0& s0/1/1.
Router mode: 2801. The slot number or port location is on board. The port or
slot type is FastEthernet. The slot numbering range is labeled as interface-
type 0/port. An example of this interface is fa0/0& fa0/1.
Router mode: 2801. The slot number or port location is slot 0. The port or
slot type is VIC/VWIC(voice only). The slot numbering range is labeled as
interface-type 0/slot/port. An example of this interface is voice0/0/0&
voice0/0/3.
Router mode: 2801. The slot number or port location is slot 1. The port or
slot type is HWIC/WIC/VWIC. The slot numbering range is labeled as
interface-type 0/slot/port. The examples of this interface are 0/1/0-0/1/3(this
is single-wide HWIC) and 0/1/1-0/1/7 (this is double-wide HWIC).
Router mode: 2801. The slot number or port location is slot 2. The port or
slot type is WIC/VIC/VWIC. The slot numbering range is labeled as
interface-type 0/slot/port. An example of this interface is 0/2/0- 0/2/3.
Router mode: 2801. The slot number or port location is slot 3. The port or
slot type is HWIC/WIC/VWIC. The slot numbering range is labeled as
interface-type 0/slot/port. An example of this interface is 0/3/0- 0/3/3 for
single-wide HWIC and o/3/0- 0/3/7 for double-wide HWIC.
Router mode: 2811. The slot number or port location is built into the front of
the chassis. The port or slot type is USB. The slot numbering range is labeled
as an interface-type port. An example of this interface is usb0& usb1.
Router mode: 2811. The slot number or port location is built into the back of
the chassis. The port or slot type is FastEthernet Gigabit Ethernet. The slot
numbering range is labeled as interface-type 0/port. An example of this
interface is fa0/0& fa0/1 gi0/0& gi0/1.
Router mode: 2811. The slot number or port location is built into slot 0. The
port or slot type is HWIC/HWIC-D/WIC/VWIC/VIC. The slot numbering
range is labeled as interface-type 0/slot/port. An example of this interface is
s0/0/0& s0/0/1 fa0/0/0& 0/0/1.
Router mode: 2811. The slot number or port location is built into slot 1. The
port or slot type is HWIC/HWIC-D/WIC/VWIC/VIC. The slot numbering
range is labeled as interface-type 0/slot/port. An example of this interface is
s0/1/0& s0/1/1 fa0/1/0& 0/1/1.
Router mode: 2811. The slot number or port location is at NME slot. The port
or slot type is NM/NME. The slot numbering range is labeled as interface-
type 1/port. An example of this interface is gi1/0& gi1/1 s1/0& s1/1.
Navigation Through Interfaces
With the help of a few commands, you can easily navigate through the
interfaces. Some commands are as under:
Configuring Interfaces
You can configure any kind of interface with the help of the following
commands.
This chapter will walk you through the basic concepts of networking and
routing in cisco. The administrative distance is an important aspect in
networking and routing. There are some default administrative distances
(AD) in the world of cisco, which are as under:
Permanent Keywords
The command Georgia(config)#ip route 192.168.50.0 255.255.255.0
serial0/0/0/0 permanent will let you create a static route that you cannot
remove from the table even if you have shut down the interface. In the
absence of a permanent keyword in the static route statement, the static route
will stand removed, if your interface that is specified in the command moves
down. An interface that is down will trigger the directly connected network
and the associated static routes to get deleted from the table. When the
interface is back up, the routes will definitely be returned. When you have
added a permanent keyword to a static route statement, you will keep the
static routes in the table even if the interface goes down. The interface
remains down but the routes remain in the table. Its benefit is that when the
interface gets back up, little need is usually left for the reprocessing of the
static routes. This saves time and also the power that is usually consumed on
processing.
IPv6 Address Assignment to Interface
You can use a bunch of commands for the assignment of different types of
Ipv6 addresses to your interface.
This chapter will walk you through the commands and information that are
concerned with the optional and mandatory commands for the configuration
of the Routing Information Protocol (RIP). I will also explain the commands
that are linked to the configuration of RIP Version 2 (RIP-2).
First of all, I will explain how you can turn and off the ip classless.
RIP Routing
The command Georgia(config)#router rip will help you to enable
RIP.
The command Georgia(config-router)#network w.x.y.z is usually
a network number of a directly connected network that you are
looking forward to advertise.
If you happen to advertise a subnet, there will be no error message, because
the router will convert that subnet into a classful address.
The above mentioned commands are mandatory. What you will see next will
be the optional commands.
Troubleshooting Problems
The commands that you can use to troubleshoot problems are as under:
The command Georgia#debug ip rip will let you see the entire
RIP activity. The results will be displayed in real time.
The command Georgia#show ip rip database will let you see the
contents of the database of RIP.
The command Georgia#debug ip igrp events will let you see the
IGRP events in the real time.
The command Georgia#debug ip igrp transactions will let you
see the IGRP updates that exist in between the routers.
EIGRP
This section will explain how to configure EIGRP, verify EIGRP,
autosummarize EIGRP, and troubleshoot EIGRP.
Configuring EIGRP
The command Georgia(config)#router eigrp 100 will turn on
process 100 of EIGRP, an autonomous system (AS) number. This
can be a number in between 1 and 65535. All the routers in AS
ought to use a similar AS number.
The command Georgia(config-router)#network 10.0.0.0 will
specify which network must advertise in EIGRP.
The command Georgia(config-router)#eigrp log-neighbor-
changes will log any kind of changes that happen to one of the
EGRIP neighbors.
The command Georgia(config-router)#no network 10.0.0.0 will
allow you to remove the same network from EIGRP process.
The command Georgia(config-router)#bandwidth a will allow
you to set up the bandwidth of your interface to a kilobit. This
allows the EIGRP to make an improved and beneficial routing
decision. You only can use the bandwidth command to perform
the metric calculations. This usually does not change the
performance of your interface.
Auto-summarization
The command Georgia(config-router)#no auto-summary will
allow you to switch off the feature of auto-summarization. You
will be able to summarize the networks, by default, at the
boundary of the classful. The command Georgia(config-
router)#int fa 0/0 is also a part of the auto-summarization process.
The command Georgia(config-if)#ip summary-address eigrp 100
10.10.0.0 255.255.0.0 will allow you to enable the manual
summarization process on your interface. This will be for the
given mask and address.
EIGRP offers the facility to summarize different networks automatically at
the boundary namely classful. If a network is poorly designed and is packed
up with discontinuous subnets, it could create connectivity problems,
especially if you leave the summarization feature open. There may be two
routers that advertise the same network. However, the original intention can
be the advertising of two different networks. In this situation, you should
switch off the feature of auto-summarization and use the ip summary-address
in its place. You can manually summarize what you have to do.
Verifying EIGRP
The command Georgia#show ip eigrp neighbors will allow you
to see the neighbor table.
The command Georgia#show ip eigrp neighbors detail will allow
you to see the contents of the same table.
The command Georgia#show ip eigrp topology will allow you to
see the table for topology.
The command Georgia#show ip eigrp int 100 will allow you to
see the data regarding running process 100 of interfaces.
The command Georgia#show ip eigrp s 0/0 will allow you to see
the information for a particular interface.
The command Georgia#show ip eigrp interfaces will allow you to
see the data that pertains to each interface.
The command Georgia#show ip eigrp traffic will allow you to
see the type of packets sent or received and the numbers.
Troubleshooting
You can use the following commands to troubleshoot a problem that pops up
along the way.
Troubleshooting RIPng
When you are using the debug command for RIPng, it is likely to affect the
router performance adversely. It may even trigger a reboot in the router.
Therefore, you should always stay cautious when you are using this
command. You must never leave the debugging process open. You may use it
long enough to collect the information and once you have harvested the
information, you must immediately disable it with the undebug command. I
will continue to use the router name Georgia in the following example as
well. Here is the rundown of the commands for troubleshooting in RIPng.
The command Georgia#clear ipv6 rip will help you to delete the
routes from the IPv6 RIP table. It will also delete the routes from
the IPv6 table as well.
The command Georgia#clear ipv6 route * will let you delete all
the routes that exist in the IPv6 routing table.
The command Georgia#clear ipv6 route 2001:db8:c18:3: :/64
will let you clear a specific route from the IPv6 table.
The command Georgia#clear ipv6 interface will let you see the
status of all the interfaces that have been configured for IPv6.
The command Georgia#clear ipv6 routing will let you see the
debug messages related to the updates of the IPv6 routing table
and the routing cache updates.
The command Georgia#clear ipv6 traffic will let you reset the
IPv6 traffic counters.
The command Georgia#clear ipv6 packet will let you see the
debug messages that are for the IPv6 packets.
The command Georgia#clear ipv6 rip will let you see the debug
messages for the transactions regarding IPv6 RIP routing.
The command Georgia#show ipv6 route rip will let you see the
present routes for RIPng in the IPv6 table.
The command Georgia#show ipv6 route will let you see the
present status of the IPv6 table.
The command Georgia#show ipv6 rip next-hops will let you see
the processes of RIPng. It also displays the next-hop processes
that are running under each major process.
The command Georgia#show ipv6 tip database will let you see
the database of the RIPng processes. Even if more than two
processes are running in the system, this command will show all
the databases.
The command Georgia#show ipv6 rip will let you see the
information about the present process.
The command Georgia#show ipv6 protocols will let you see the
protocols and the present state of all the IPv6 protocol processes.
The command Georgia#show ipv6 neighbors will let you see the
IPv6 neighbor discovery information.
The command Georgia#show ipv6 traffic will let you see the
statistics that are related to IPv6 traffic.
The command Georgia#show ipv6 route summary will let you
see the short form of the IPv6 table.
The command Georgia#show ipv6 routers will let you see the
advertisement data for the IPv6 router.
IPv6 Ping
If you are looking forward to diagnosing the basic connectivity in a network
with the help of IPv6, you may enter the Ping command that can be seen
below.
Georgia#ping ipv6 2001:db8: :3/64
In the next section, I will shed light on the characters that you will see and
their meaning and understand how to read the symbols.
This chapter will walk you through the commands related to the Open
Shortest Path First (OSPF). You will navigate through the commands
regarding the configuration of single-area OSPF, the use of wildcard masks
in OSPF areas, and the configuration of single-area OSPF such as cost
metrics and loopback interfaces, timers, authentication, and propagation of
default tone. You will also learn about the commands to verify OSPF and the
troubleshooting of issues that pop up along the way.
Mandatory Commands for OSPF
The command Georgia(config)#router ospf 123 will allow you to
turn on the OSPF process number 123. The process ID can be
anywhere between 1-65535. Its ID is not in any way linked to
OSPF area.
The command Georgia(Config)#network 172.16.10.0 0.0.0.255
area 0 will allow you to advertise the interfaces. OSPF does not
advertise networks however it does advertise interfaces. It will use
a wildcard mask that will determine which interface it has to
advertise. The interfaces that belong to the address 172.16.10.x
will be placed into Area 0. The process ID number of a router
need not match the process ID number of other routers. Unlike
Enhanced IGRP (EIGRP) and Interior Gateway Routing Protocol
(IGRP), matching the number across the existing routers does not
ensure adjacencies' formation.
When it is compared with the IP address of a computer, a wildcard mask will
identify how addresses will be matched for the placement into a particular
area.
A zero (0) inside a wildcard mask means checking the corresponding bit
inside the address to have an exact match. A one (1) inside a wildcard means
ignorance of the corresponding bit for the address. Here are some uses of
wildcard masks for OSPF.
MD5 Authentication
The command Georgia(config)#router ospf 456 will allow you to
kick off the process of authentication using MD5.
The command Georgia(config-router)#area 0 authentication
message-digest will allow you to enable the authentication process
with MD5 password encryption.
The command Georgia(config-router)#exit will allow you to exit
the process at any time.
The next command on the line is Georgia(config-router)#int fa
0/0 .
The command Georgia(config-if)#ip ospf message-digest-key 1
md5 jasmine will allow you to encrypt the password that you
have filled in the interface. In the command 1 is the key-id. This
value remains the same. The key and password must remain the
same for any neighboring router.
Timers
The command Georgia(config-if)#ip ospf hello-interval timer 30
will allow you to change the Hello interval to 30 seconds. You can
change the timing as per your custom requirements.
The command Georgia(config-if)#ip ospf dead-interval 90 will
allow you to change the dead interval to 90 seconds. You can fill
it in with any other amount of seconds.
Default Route
The command Georgia(config)#ip route 0.0.0.0 0.0.0.0 s0/0 will
allow you to create a default route in the system. After you have
entered the abovementioned command, you can fill in the system
with the following command Georgia(config)#router ospf 1 to
further the process of creating default routes.
The command Georgia(config-router)#default-information-
originate will allow you to set the default route so that it can be
propagated across the OSPF routers.
Troubleshooting Process
The command Georgia#clear ip route * will allow you to clear the
routing table. It forces the users to rebuild the table. In that way,
the problem is automatically killed.
The command Georgia#clear ip route x.x.x.x will allow you to
clear a specific route to the network x.x.x.x.
The command Georgia#clear ip ospf counters will allow you to
clear and reset the OSPF counters.
The command Georgia#clear ip ospf process will allow you to
reset the OSPF process. This forces the OSPF to recreate the
neighbors, routing tables and databases. This is how the problem
is tackled and erased completely from the system.
The command Georgia#debug ip ospf events will allow you to
see OSPF events in the system. This is how you can correct any
problem that pops up along the way.
The command Georgia#debug ip ospf packets will allow you to
see the OSPF packets.
The command Georgia#debug ip ospf adj will allow you to see
different states of OSPF.
Chapter Six: Open Shortest Path Protocol (OSPF)
Single Area and Multiarea Configuration
This chapter will walk you through the configuration processes of single area
OSPF and multiarea OSPF. I will explain each configuration process by
neatly stating the step-by-step commands.
Single Area OSPF Configuration
The configuration of a single area OSPF system comprises the following
steps.
Multi-area OSPF
OSPF uses different types of messages. A few of them are given as under.
Each OSPF packet is packed up inside an IP header.
LSA Types
In the next section, I will explain the different types of LSA that the OSPF
uses. LSAs are considered as the building blocks of the OSPF link-state
database (LSDB). LSAs act as database records. They describe the topology
of the OSPF network area.
The first type of LSA is Router LSA. It describes the router link
state to area. It remains flooded in a single area.
The second type of LSA is Network LSA. Designated routers
generate this type. It is also flooded in a single area.
The third type of LSA is Summary LSA. This type is used by area
Border Router (ABR). It is also used to harvest information that is
collected from one area. It also summarizes it for a different area.
The fourth type of LSA is ASBR summary LSA. It tends to
inform the OSPF domain on how to approach the ASBR.
The fifth type of LSA is Autonomous system LSA. Its description
is that ASBR generates it. These types of LSAs describe the routes
to the destinations that are generally external to the systems that
operate autonomously.
The sixth type of LSA is Group membership LSA. Its description
is that it is used in multicast OSPF apps. Multicast apps or
MOSPF apps have been deprecated.
The seventh type of LSA is NSSA external link entry LSA. Its
description is it is used in the special types of areas are known as
not-so-stubby-area (NSSA). It tends to advertise the external
routes in the NSSA.
The eighth type of LSA is Link-local LSA for OSPFv3. Its
description is that it yields information about the link-local
addresses in addition to displaying a list of IPv6 addresses on the
link. It is generally not supported by Cisco.
The ninth type of LSA is Opaque LSA. This LSA is reserved for
future usage.
The tenth type of LSA is Opaque LSA. This LSA is reserved for
future usage.
The eleventh type of LSA is Opaque LSA. This LSA is reserved
for future usage.
OSPF Configuration
There are a few steps involved in the configuration process of OSPF. The
steps are given below.
Loopback Interfaces
The command Georgia(config)#interface loopback0 will allow
you to create a type of virtual interface named Loopback 0. It then
shifts the router to the configuration mode of the interface.
The command Georgia(config-if)#ip address (Ip address) will
allow you to assign an IP address to your interface. The loopback
interfaces are all the time up. They do not go down unless you
shut them down manually. This is why loopback interfaces are
great for usage as OSPF router ID.
Router ID
The command Georgia(config)#router ospf 1 will allow you to
kick off process 1.
The command Georgia(config-router)#router-id 10.1.1.1 will
allow you to set up the router ID and fix it to 10.1.1.1. If you use
the command on the OSPF router process that is active already,
the new router ID will be used at the next reload. It will also be
used for the manual restart of the OSPF process.
The command Georgia(config-router)#no router-id 10.1.1.1 will
allow you to remove your static router ID from the process of
configuration. If you use the command on the ODPF router
process that is active already, the old router ID will be used at the
upcoming reload or at the manual restart of the OSPF process.
If you want to choose the router ID at the point of the initialization of the
OSPF process, the router will use the following criteria in a particular order.
DR/BDR Elections
The command Georgia(config)#interface fastethernet0/0 will
allow you to enter into the interface's configuration mode.
The command Georgia(config-if)#ip ospf priority 100 will allow
you to change the priority of the ospf interface to 100. You can set
the priority at any figure between 0 and 255. The priority of 0 will
make the router ineligible to create a designated router (DR). The
highest priority will win the election and become the DR. The one
that comes at the second slot will win the position of BDR. If all
the routers on a network have the same priority, there will be a tie.
You can break up a tie by the highest router ID. The default
setting for the priorities is set at 1.
Passive Interfaces
The command Georgia(config)#router ospf 1 will allow you to
kick off the OSPF process 1.
The command Georgia(config-router)#network 172.16.10.0
0.0.0.255 area 0 will allow you to put the interface with the
address 172.16.10.y into area 0.
The command Georgia(config-router)#passive-interface
fastethernet0/0 will disable the process of sending OSPF packets
on your interface.
The command Georgia(config-router)#passive-interface default
will disable the process of sending OSPF packets on all the
interfaces in the system.
The command Georgia(config-router)#no passive-interface serial
0/0/1 will enable the process of sending OSPF packets to interface
serial0/0/1. That’s how it allows the neighbor adjacencies to
formulate.
Cost Metrics
The command Georgia(config)#interface will land you in the
mode of configuration of your interface.
The command Georgia(config-if)#bandwidth 256 will let you
change the bandwidth of your network. If you change it, the OSPF
will allow you to recalculate the link cost.
Not-So-Stubby Areas
The command ABR (config)#router ospf 1 will kick off the
OSPF process 1.
The command ABR (config-router)#network 172.16.10.0
0.0.0.255 area 0 will allow you to confirm that any interface that
possesses the address 172.16.10.y will run OSPF and will also be
placed inside area 0.
The command ABR (config-router)#network 172.16.20.0
0.0.0.255 area 1 will allow you to confirm that any interface that
possesses the address 172.16.20.y will run OSPF and will also be
placed inside area 1.
The command ABR (config-router)#area 1 nssa will allow you to
label area 1 as the no-so-stubby-area.
The command Internal(config)#router ospf 1 will allow you to
initiate the OSPF process 1.
The command Internal(config-router)#network 172.16.20.0
0.0.0.255 area 1 will allow you to confirm that any interface that
possesses the address 172.16.20.y will run OSPF and will also be
placed inside area 1.
The command Internal(config-router)#area 1 nssa will label area
1 as the not-so-stubby-area.
Totally NSSA
The command ABR (config)#router ospf 1 will kick off the
OSPF process 1.
The command ABR (config-router)#network 172.16.10.0
0.0.0.255 area 0 will allow you to confirm that any interface that
possesses the address 172.16.10.y will run OSPF and will also be
placed inside area 0.
The command ABR (config-router)#network 172.16.20.0
0.0.0.255 area 11 will allow you to confirm that any interface that
possesses the address 172.16.20.y will run OSPF and will also be
placed inside area 11.
The command ABR (config-router)#area 11 nssa no-summary
will allow you to label area 11 as the totally nssa.
The command Internal(config)#router ospf 1 will allow you to
kick off the OSPF process 1.
The command Internal(config-router)#network 172.16.20.0
0.0.0.255 area 11 will allow you to confirm that any interface that
possesses the address 172.16.20.y will run OSPF and will also be
placed inside area 11.
The command Internal(config-router)#area 11 nssa will label
area 11 as NSSA. As all the internal routers in the particular area
are configured with area x nssa command, the ABR router is
configured with area x nssa no-summary command.
Point-to-Multipoint Networks
The command Georgia(config)#interface serial0/0/0 will let you
switch to the mode of interface configuration.
The command Georgia(config-if)#encapsulation frame-relay will
let you enable the frame relay on your interface.
The command Georgia(config-if)#ip address (ip address) will let
you assign a particular IP address as well as a netmask to your
interface.
The command Georgia(config-if)#ip ospf network point-to-
multipoint will let you change the type of the network to point-to-
multipoint network.
The command Georgia(config-if)#exit will take you back to the
mode of global configuration.
The command Georgia(config)#router ospf 1 will let you start
the OSPF process 1.
The command Georgia(config-if)#network 10.1.1.0 0.0.0.255
area 0 will let you confirm that any interface that possesses the
address 10.1.1.y will run OSPF and will also be placed inside area
0.
The command Georgia(config-if)#neighbor 10.1.1.2 will let you
detect the neighbor router.
The command Georgia(config-if)#exit will take you back to the
mode of global configuration.
The command Georgia(config)#interface serial0/0/0 will let you
switch to the mode of interface configuration.
The command Georgia(config-if)#ip ospf network point-to-
multipoint non-broadcast will let you create and enter a point-to-
multipoint network mode that is non-broadcast as well. The point-
to-multipoint non-broadcast mode is a kind of Cisco extension to
RFC-compliant mode. The neighbors in the network ought to be
manually defined in this specific mode. The BDRs/DR will not be
used in this specific mode. The point-to-multipoint non-broadcast
mode can be used in some special cases in which neighbors are
not supposed to be discovered automatically.
Point-to-Point Networks
The command Georgia(config)#interface serial0/0/0 will let you
switch to the mode of interface configuration.
The command Georgia(config-if)#encapsulation frame-relay will
let you enable the frame relay on your interface.
The command Georgia(config-if)#no shutdown will let you
enable your interface.
The command Georgia(config)#interface serial0/0/0.300 point-to-
point will let you create a subinterface 300 and make it onwards a
point-to-point network. This is a kind of default mode.
The command Georgia(config-subif)#ip address (ip address) will
let you assign a particular IP address as well as a netmask to your
interface.
The command Georgia(config-subif)#frame-relay interface-dlci
300 will let you map out and assign the DLCI 300 to your
subinterface.
The command Georgia(config-subif)#interface serial0/0/0.400
point-to-point will let you define and create subinterfaces 400 and
make them point-to-point networks.
The command Georgia(config-subif)#ip address (ip address) will
let you assign a particular IP address as well as a netmask to your
interface.
The command Georgia(config-subif)#frame-relay interface-dlci
400 will let you map out and assign DLCI 400 to your
subinterface.
The command Georgia(config-subif)#exit will take you back to
the mode of interface configuration.
The command Georgia(config-if)#exit will take you back to the
mode of global configuration.
Troubleshooting OSPF
The command Georgia#clear ip route * will clear away the
complete touting table. It will also force the user to rebuild the
same.
The command Georgia#clear ip route x.x.x.x will clear away the
specific route for the network namely x.x.x.x. It can have a
different name.
The command Georgia#clear ipv6 route * will clear away all the
routes for the IPv6 routing tables.
The command Georgia#clear ipv6 traffic will help you reset the
traffic counters for IPv6.
The command Georgia#clear ip ospf counters will help you reset
the OSPF counters.
The command Georgia#clear ip ospf process will help you reset
the entire process of OSPF. It also forces the OSPF to recreate the
neighbors, the routing table and the database.
The command Georgia#clear ip ospf 3 process will help you
reset the process 3 of OSPF. It also forces the OSPF to recreate
the neighbors, the routing table and the database.
The command Georgia#clear ipv6 ospf process will help you
reset the entire process of OSPF. It also forces the OSPF to
recreate the neighbors, the routing table and the database.
The command Georgia#clear ipv6 ospf 3 process will help you
reset the process 3 of OSPFv3. It also forces the OSPF to recreate
the neighbors, the routing table and the database.
The command Georgia#debug ipv6 ospf events will help you
see all the events of OSPF.
The command Georgia#debug ip ospf adj will help you see the
debug messages that are related to the OSPF adjacency processes.
The command Georgia#debug ipv6 ospf adj will help you see the
debug messages that are related to the OSPF adjacency processes.
The command Georgia#debug ipv6 packet will help you see the
debug messages that are related to the IPv6 packets.
The command Georgia#debug ip ospf packets will help you see
all the OSPF packets.
The command Georgia#debug ipv6 routing will let you see debug
messages that are related to the IPv6 route cache updates and
routing table updates.
The command Georgia#undebug all will let you switch off the
debugging commands.
Chapter Eight: Configuration of Switch
This chapter will walk you through the commands and information that are
related to the configuration of switch. I will shed light on the hostnames,
passwords, duplex and speed settings, interface descriptions and port security
and I will explain each command and its purpose. The first on the line is the
help command.
The command switch>? will allow you to get help about different
aspects of switches. The symbol ? works in the same manner as it
does in a router.
Command Modes
The command switch>enable lets you enter the user mode in the
same way you do in a router.
The command switch# will allow you to enter the privileged
mode in the same way as you do in a router.
The command switch>disable will allow you to leave the
privileged mode in the same way as you do in a router.
The command switch>exit will allow you to leave the user mode
in the same way as you do in a router.
Command Verification
The command switch#show version will allow you to see the
information about the hardware and the software.
The command switch#show interfaces will let you see the
information about the configuration of interfaces and the status of
the lines such as admin down, up/up and up/down.
The command switch#show flash: will allow you to see the
information about the flash memory. This feature is only available
for the 2900/2950 series only.
The command switch#show vlan will allow you to see the
information about the present configuration of VLAN.
The command switch#show mac-address-table will allow you to
see the information about the forwarding table of the present
MAC address.
The command switch#show post will allow you to see the
information about the POST that is switch passed.
The command switch#show controllers ethernet-controller will
allow you to see the information about the Ethernet controller.
The command switch#show start will allow you to see the
information about the present level of configuration in NVRAM.
The command switch#show running-config will allow you to see
the information about the present configuration style in NVRAM.
The command switch#show interface vlan1 will allow you to see
the information about the settings of the virtual interfaces such as
VLAN1 and the default interfaces such as VLAN on the system’s
switch.
Resetting Configuration
The following settings are for the 1900 series switches.
Setting Hostnames
For 1900 series switches:
Setting IP Addresses
The command AustinSwitch(config)#ip address (write ip address
here) will allow you to set up the system's IP address and the
mask to enable remote access to switch.
For 2900/2950 series:
Interface Descriptions
The command AustinSwitch(config-if)#description Finance
VLAN will allow you to set up and add the description for your
interfaces.
For 2900/2950 series switches:
Duplex Settings
The command AustinSwitch(config)#int e0/1 w ill allow you to
use e0/1 on the 2900/2950 series.
The command AustinSwitch(config-if)#duplex full will allow
you to force the full-duplex operation on your network.
The command AustinSwitch(config-if)#duplex half will allow
you to force the half-duplex operation on your network.
The command AustinSwitch(config-if)#duplex auto will allow
you to force the auto-duplex configuration on your network.
Duplex Settings for 2900/2950 series:
Port Security
The command AustinSwitch(config-if)#port secure will allow
you to set up security for the interface you are working in.
The command AustinSwitch(config-if)#port secure max-mac-
count 1 will allow you one MAC address in the table for the
given interface.
For 2900 series:
Configuration of EtherChannel
The command AustinSwitch#config t will allow you to start the
configuration mode.
The command AustinSwitch(config)#int fa 0/11 will allow you
to start the interface.
The command AustinSwitch(config-if)channel-group y mode on
will allow you to start the mode for channel groups. In the
command, y is the total number of channel groups. It must watch
the other interfaces.
The command AustinSwitch(config)#int fa 0/12 will allow you
to start the interface.
The command AustinSwitch(config-if)channel-group y mode on
will allow you to start the mode for channel groups. In the
command, y is the total number of channel groups. It must watch
the other interfaces.
Verification
The command AustinSwitch#show etherchannel y detail will
allow you to see comprehensive information about the ether
channel.
The command AustinSwitch#show etherchannel y port will
allow you to see comprehensive information about the
EtherChannel port.
The command AustinSwitch#show etherchannel y port-channel
will allow you to see comprehensive information about the port
channel.
The command AustinSwitch#show etherchannel y summary will
allow you to see the one-line summary information about per
channel-groups.
The EtherChannel may combine about two to eight parallel links of Ethernet.
The 1900 switches need 9.00.03 or the later Enterprise Edition software, the
2900 switches need the IOS 11.2(8)SA or later versions and the 2950
switches need the IOS 12.0(5.2)WC(1). You can set up the auto mode, the
desirable mode and the on mode.
The auto mode tells the switch to wait for the other switches to kick off the
EtherChannel negotiations. If the auto mode is set on both sides, the
EtherChannel will never be able to form. Both sides will keep waiting for the
other side to initiate negotiations. The desirable mode tells the switch that it is
willing to turn the EtherChannel on. The on mode tells the switch that it
wants to form the Ether Channel.
Chapter Nine: VLAN
This chapter will walk you through the commands and information about the
display of VLAN info, the creation of static VLANs, the assigning of the
ports to the VLANs, and the assigning of the ports by using the range
command.
Displaying VLANs
The command AustinSwitch#show vlan will allow you to see the
information about VLAN.
The command AustinSwitch#show vlan-membership will allow
you to see the information about VLAN ports.
The command AustinSwitch#show vlan 2 will allow you to see
the information about VLAN 2.
For 2900/2950 series:
Static VLANs
The command AustinSwitch#config t will allow you to start the
configuration mode.
The command AustinSwitch(config)#vlan 2 name John will
allow you to create the VLAN 2 named John.
The command AustinSwitch(config)#vlan 3 name John1 will
allow you to create the VLAN 3 named John1.
For 2900 Series Switch:
Troubleshooting Process
The command AustinSwitch#show vlan will allow you to see the
information about the full VLAN database.
The command AustinSwitch#show vlan brief will allow you to
see the information about the database in a summarized manner.
The command AustinSwitch#show vlan interfaces will allow you
to see the information about the interfaces. This includes the
information about the duplex settings and the speed as well.
The command AustinSwitch#debug sw-vlan packets will allow
you to see the information about the VLAN packets that a router
received but it cannot support it.
VTP Configuration
For 1900 series: