CCNA Workbook by NETWORKERS HOME
CCNA Workbook by NETWORKERS HOME
IP ADDRESSING RULES
. . .
USEFUL STATISTICS
1st Total
1st Maximum
octet Number Address Default
Clas octet Number of
structur of Structu Subnet
s range hosts/net
e network re Mask
decimal work
binary s
0xxxxxx 27-2 224-2
A 1 – 127 N.H.H.H 255.0.0.0
x 126 16,777,214
128 – 10xxxxx 214 216-2 255.255.
B N.N.H.H
191 x 16,384 65,534 0.0
2 21
192 – 110xxxx 28-2 255.255.
C 2,097,1 N.N.N.H
223 x 254 255.0
52
224 – 1110xxx
D Reserved for multicasting
239 x
240 - 1111xxx
E Reserved for experimental and future use
255 x
128 64 32 16 8 4 2 1
254 126 62 30 14 6 2 0
A. 172.16.32.255
B. 172.16.47.255
C. 172.16.79.255
D. 172.16.159.255
A.
A.
A. 192.165.4.37
B. 195.5.2.63
C. 172.6.5.32
D. 11.5.1.94
A.
Layer 7 Application
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 2 Data Link
Layer 1 Physical
Switches
ROUTER MODES
User EXEC mode (look, but don’t change)
Automatically enter this mode when router is turned on
You can perform basic tasks, such as connect to remote devices,
perform basic tests
Prompt : Router>
Interface mode
Configure interface, such as Ethernet, serial
Enter from global configuration mode with command :
Router(config)#int e 0/0
Or Router(config)#int s 0/0
Prompt : Router(config-if)#
Setup mode
Helps new user to create a configuration for the first time, via a
series of questions
Prompted at bootup or enter setup at router# prompt
Rommon mode
Provides router with a small subset of IOS and helps router boot if
IOS not found in Flash
Prompt : Rommon 1>
disable
User EXEC
Ctrl-Z
Privilege
EXEC
Enable Ctrl-Z
Global
configura
config t tion
Interface
int e 0/0
int s 0/0
Editing commands
Ctrl-A beginning of line
Ctrl-E end of line
Ctrl-F forward one character
Ctrl-B back one character
Esc-F forward one word
Esc-B back one word
Command History
Enabled by default
10 commands recorded in history buffer by default
Use history size command to change to a maximum of 256
Ctrl-P or Up arrow shows most recent
Show history command at privileged EXEC mode shows if
enabled and history size
Tab keys completes entries of known keywords
Router(config)#hostname (desired_name)
WELCOME BANNER
Router(config)#show run
Connect the Rollover cable from the back of the Console Adapter to
the Console Port on the Router.
Make sure the PC is up and running before turning the Router on.
Specify that you are using either Com1 or Com2 (based on what port
you connected the console adapter to)
On the Router > Type enable and Press Enter. Your prompt should
look like Router#.
Type Disable. It will take you from Privileged Mode to User Mode.
Your prompt should look like Router>.
You can also type in En to go into Privileged Mode from User Mode.
The reason being, there is no other command in User Exec that starts
with the letters En.
Similarly, you can type Disa instead of Disable at the Privilege Mode
to go into User Exec Mode.
If you want to exit out completely, type logout. Logout will log you
out of the router. You should see the prompt asking you press Enter
to get started. Press Enter.
You can also type Exit to logout of the Router from either User or
Privilege Mode.
Type ?. It displays all the commands that can be type in the current
Mode (User Exec). It will give a short description about each
command and stop after each page.
Type ?. If you want to exit out of help without seeing all the
commands press Ctrl-C or Esc.
Copyrights Networkers Home 2007-2015
Website: http://www.networkershome.com
Page 22 of 144
Type enable. Type ? followed by the spacebar key until you return
back to the prompt.
Did you see more commands when Typed ? in Privileged Mode than in
User Mode?
If you wanted to find out about all the commands that start with a
specific letter, you can type that letter followed by ?. It will only
display commands that start with that letter. Type S?. What does it
show you?
Type Disable. This should take you to User Exec Mode. Can we get to
configuration mode from here?
Type Int Ethernet 0/0. You could also have typed Int E 0/0. This
allows you to configure the Ethernet interface 0/0. The prompt
should look like Router(config-if)#.
To go back directly back into Privileged Mode, you can either type
Ctrl-Z or end.
Type Config t
Ctrl-Z
What is response?
Type Clock set 17:25:00 1 ?. What should you type next? (Day of the
Month Month)
Type Clock set 17:25:00 1 may ? What should you type next (Year)
Terminal History
Type Terminal history size 100 to change the history size to 100.
Type Show Terminal to see the change. (Towards the bottom of the
output)
Editing Keys
Press CTRL-P. It will show you the command you typed before the
Previous command.
Where is the cursor at? Let us say that you want to change
something at the beginning of the line. Rather than using the arrow
keys to scroll to the beginning of the line, you can accomplish the
same by pressing CTRL – A
Press CTRL – E. CTRL-E takes the cursor to the end of the line.
Show Commands
What is the name of the file that was used to boot the Router?
This command prevents the router from doing a Name lookup if you
mistype a command?
Exit
Type End.
Type Logout.
Router#config t
Try the different aliases you have created by typing them one at a
time.
Router>en
Router#config t
Router(config)#line console 0
Router(config-line)#login
Router(config-line)#password newyork
Router(config-line)#end
Type Logout to exit out of the router’s console. You should see a
message that says “Press Return to get started”.
Press Enter.
Do you get a prompt for password to get into User Exec mode?
Type en to get into Privilege Exec mode. Did it prompt you for a
password?
Router>en
Router#config t
Router(config)#enable password LA
Router(config)#end
Type Logout to exit out of the router’s console. You should see a
message that says “Press Return to get started”.
Press Enter.
Do you get a prompt for password to get into User Exec mode?
Type Sh run.
Router>en
Router#config t
Router(config)#enable secret trinet
Router(config)#end
Type Logout to exit out of the router’s console. You should see a
message that says “Press Return to get started”. Press Enter.
Do you get a prompt for password to get into User Exec mode?
Type en to get into Privilege Exec mode. Did it prompt you for a
password?
Did it work?
Type netmet
Did it work?
Type Sh run.
S 0/0 S 0/0
R1 R2
Look for the word DCE or DTE in the top three lines.
If it says DCE, you will provide the Clock (Speed for the link). It is
normally specified by the Telephone Company based on your contract.
Enter into the Interface configuration mode for the Serial Interface by
typing Int S 0/0.
If you were the clock source, you have to set the speed of the link.
Type Clock rate 128000 to set the speed of the line to 128 kbps.
(Builds on Lab 9)
Router>en
Router#config t
Router(config)#int S 0/0
Router(config-line)#encapsulation ppp
Router(config-line)#end
What are the advantages of using PPP over the Cisco Proprietary
HDLC?
Router>en
Router#config t
Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password remote
Type remote.
Type en
If you want to switch back to your partner’s router, press enter twice
Copyrights Networkers Home 2007-2015
Website: http://www.networkershome.com
Page 37 of 144
Do you see your partner’s Router prompt?
Static Routes
Default Routes
Default Routes define a router as the default router for your router.
When there is no entry for the destination network in a routing table, the
router will forward the packet to its default router. Default routes help in
reducing the size of your routing table.
The Routing updates include only new changes to the routing table
which saves bandwidth.
Handles larger networks and is more scalable than Distance Vector
Routing Protocols.
Example OSPF, IS-IS
Administrative Distance
The higher the value, the lower the trust. For example, 255
signifies no trust and therefore is ignored.
Lowest administrative distance is always chosen as the routing
protocol to use to transport data.
Default administrative distances for common protocols are as
follows :
Periodic Updates: The interval that the routers wait for before they
advertise their routing table to neighboring routers.
Broadcast Update: are used by routers to find other routers when they
come online. They send their routing table to Broadcast address of
255.255.255.255, if the neighboring router talks the same routing
protocol, it will respond and routers now know of each other.
Route Invalidation Timers: is the time that must pass before a Router
considers a route to be invalid. If network 5.0 is connected to Router A
and it goes down, Router A will notify its neighboring router, Router B of
that fact. But what if Router A goes down.
This problem is handled by Route Invalidation Timer for each entry in
the routing table. When Router B first hears about network 5.0 from
Router A, it will set a route invalidation timer for that route. Since Router
A was the one that gave him the news it expects Router A to keep
updating that information on regular periodic updates, however if Router
A fail to do so and misses x number of periodic updates, Router B will set
that route in the routing table to unreachable.
Routing Loops
Spilt Horizon: Spilt Horizon has two flavors, Simple Split Horizon and
Spilt Horizon with Poison Reverse.
The logic behind Simple Spilt Horizon is that it is never useful to send
information about a route back in the direction from which the
information originally came. So if Router A learns about a Route through
Router B, it will never send the same route back to Router A. This is
known as suppressing routes.
Split Horizon With Poison Reverse does not work based on
suppression, and it will include every route in its updates but it will tag
them as unreachable. Lets say Router B receives a corrupted update
believing that it can reach network 1.0 through Router C, Simple Split
Horizon will not be able to avoid the loop, whereas Poison Reverse will
definitely fix the problem. Router B will say 1.0 can be reached via
Router C, but this time Router C will poison that route eliminating the
routing loop.
Distance Vector
Operating from Udp port 520
Metric used by Rip is hop count
Maximum hop count is 15, 16th hop is unreachable
Periodic Update = 30sec
Random Jitter (RIP_JITTER) = 15% (4.5 sec) so the Periodic Update
can vary from 25.5 sec to 30 seconds.
Invalidation timer = 180 sec (6 times the update timer)
Holddown timer = 180 sec (6 times the update timer)
Split horizon with Poisoned reverse with triggered update is used
for stability of the operation.
RIP Version 2
Interface Configuration
Example :
Interface serial 0/0
Ip address 110.0.0.1 255.0.0.0
Clock rate 1000000
No shutdown
Global Configuration
Router Rip
Network 10.0.0.0
Network 11.0.0.0
Ci
scoCe
rti
f
iedNe
two
rkAs
soc
iat
e(CCNA)
WORKBOOK
Mod
ule
:5–Ad
vanc
edRout
ingP
rot
ocol
sLa
bs
Copyr
ightsNetworker
sHome2007-
2015
Websi
te:htt
p:/
/www.net
wor
ker
shome.
com
Page47of144
Lab 1 – Basic Static Routes
Loopback 0 Loopback 0
S 0/0 S 0/0
10.0.0.0/24 12.0.0.0/24
R1 R2
11.0.0.0/24
Router 1
Router 2
On Both Routers
11.0.0.0/24
Loopback 0 R1 R2
S 0/0 S 0/0 Loopback 0
10.0.0.0/24 12.0.0.0/24
Router 1
On R1
On R2
(Builds on Lab2)
On R1
On R2
On R1
On R2
On Both R1 and R2
Rx(config)#int F 0/0
Rx(config-if)#shut
Do you see the route through the 11.0.0.0 network appear in the
routing table?
(Builds on Lab 3)
R1(config)#int loopback 1
R1(config-if)#ip address 1.0.0.1 255.0.0.0
R1(config-if)#int loopback 2
R1(config-if)#ip address 2.0.0.1 255.0.0.0
R1(config-if)#int loopback 3
R1(config-if)#ip address 3.0.0.1 255.0.0.0
R1(config-if)#int loopback 4
R1(config-if)#ip address 4.0.0.1 255.0.0.0
On R2
Do you see routes for the new Loopback networks that were
created on R1.
Loopback 0 Loopback 0
S 0/0 S 0/0
10.0.0.0/24 12.0.0.0/24
R1 R2
11.0.0.0/24
Router 1
Router>en
Router#Config t
Router(config)#Hostname R1
R1(config)#interface Loopback 0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#interface S 0/0
R1(config-if)#ip address 11.0.0.1 255.0.0.0
R1(config-if)#clock rate 128000 (if required)
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#router rip
R2(config-router)#network 10.0.0.0
R2(config-router)#network 11.0.0.0
Router 2
Router>en
Router#Config t
Router(config)#Hostname R2
R2(config)#interface Loopback 0
R2(config-if)#ip address 12.0.0.1 255.0.0.0
R2(config-if)#interface S 0/0
R2(config-if)#ip address 11.0.0.2 255.0.0.0
On Both Routers
On Both Routers
Interesting Facts
On Router1
R1(config)#int loopback 0
R1(config-if)#shut
When a route goes down, the router does not wait for Periodic
Update. It sends a Triggered update with a Poisoned route with a
metric of 16
Notice R2 also sends an immediate Triggered Update back,
indicating that you can’t reach 10.0.0.0 cannot be reached through
it.
On Router1
R1(config)#int loopback 0
R1(config-if)#no shut
Passive Interfaces
On Both Routers
Rx(config)#router rip
Rx(config-router)#passive interface Loopback 0
Interesting Facts
( Builds on Lab 6)
11.0.0.0/24
Loopback 0 R1 R2
S 0/0 S 0/0 Loopback 0
10.0.0.0/24 12.0.0.0/24
Router 1
Router>en
Router#Config t
R1(config)#interface F 0/0
R1(config-if)#ip address 21.0.0.1 255.0.0.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#Router rip
R1(config-router)#network 21.0.0.0
Router 2
Router>en
Router#Config t
R2(config)#interface F 0/0
R2(config-if)#ip address 21.0.0.2 255.0.0.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#Router Rip
R2(config-router)#network 21.0.0.0
On R2
Loopback 0 Loopback 0
S 0/0 S 0/0
10.1.0.0/16 10.3.0.0/16
R1 R2
10.2.0.0/16
Router 1 Configuration
Router>en
Router#Config t
Router(config)#Hostname R1
R1(config)#interface Loopback 0
R1(config-if)#ip address 10.1.0.1 255.255.0.0
R1(config-if)#interface s 0/0
R1(config-if)#ip address 10.2.0.1 255.255.0.0
R1(config-if)#clock rate 128000 (if required)
R1(config-if)#no shut
R1(config-if)#router rip
R1(config-router)#version 2
R1(config-router)#network 10.0.0.0
Router 2 Configuration
Router>en
Router#Config t
Router(config)#Hostname R2
R2(config)#interface S 0/0
R2(config-if)#ip address 10.2.0.2 255.255.0.0
R2(config-if)#clock rate 128000 (if required)
R2(config-if)#no shut
On Both Routers
(Builds on Lab 9)
On Both Routers
Interesting Facts
Update is a V2 Update
Includes the Subnet Mask
The destination address.
Features
History
OSPF Version 1 was specified in RFC 1131 in 1988. This protocol
was finalized in 1989.
OSPF Version 2 (Current version). The most recent specifications
are specified in RFC 2328.
OSPF Features
Scales better than Distance Vector Routing protocols. It virtually
has no practical Hop Count Limit.
Provides Load Balancing (Equal and Unequal).
Introduces the concept of Area’s to ease management and control
traffic.
Provides Authentication.
Uses Multicast versus Broadcasts.
Convergence is Faster than in Distance Vector Routing protocols.
The reason for that is it floods the changes to all neighboring
routers simultaneously rather than in a chain.
Supports Variable Length Subnet Masking (VLSM), FLSM and
Supernetting.
Provides bit-based Route summarization.
There are no periodic updates. Updates are only sent when there
are changes.
Router only send changes in updates and not the entire full tables.
OSPF uses a Cost Value, instead of hop count. Cost is based on
the speed of the link. Cost = 108/Bandwidth.
Classless Routing Protocol.
It relies on IP to deliver the Packets. Use port 89.
Areas
Area is a logical grouping of OSPF routers.
Areas divide an OSPF domain into sub-domains.
Areas allow OSPF to be extremely scalable.
Areas reduce the Memory, CPU utilization and amount of traffic in
a network.
Most of the traffic can be restricted to within the area.
Routers within an area will have no detailed knowledge of the
topology outside of their area.
Ci
scoCe
rti
f
iedNe
two
rkAs
soc
iat
e(CCNA)
Mod
ule
:
W
6–Ad
O
va
R
nc
e
K B O
dRout
i
O
ngP
r
K
ot
ocol
sLa
bs
Copyr
ightsNetworker
sHome2007-
2015
Websi
te:htt
p:/
/www.net
wor
ker
shome.
com
Page69of144
Lab 1 - Basic EIGRP Operation
Loopback 0 Loopback 0
S 0/0 S 0/0
1.0.0.0/8 2.0.0.0/8
R1 R2
192.1.1.0/24
R1 Configuration
R2 Configuration
On R1
router#conf t
router(config)#hostname R1
R1(config)#Router eigrp 1
R1 (config-router)#net 1.0.0.0
R1 (config-router)#net 192.1.1.0
On R2
Router#conf t
router(config)#hostname R2
R2(config)#Router eigrp 1
Type SH IP ROUTE
See how the Hello # are changing and updates are not.
Note the Values in the output. See how the queries number increased
On Both Routers
R1(config)#int S 0/0
R1(config-if)#ip hello-interval eigrp 1 20
R1(config-if)#ip hold-time eigrp 1 60
Loopback 0 Loopback 0
S 0/0 S 0/0
1.0.0.0/8 2.0.0.0/8
R1 R2
192.1.1.0/24
R1 Configuration
R2 Configuration
On R1
router#conf t
router(config)#hostname R1
R1(config)#Router ospf 1
R1 (config-router)#net 1.0.0.0 0.255.255.255 area 0
R1 (config-router)#net 192.1.1.0 0.0.0.255 area 0
On R2
Router#conf t
router(config)#hostname R2
R2(config)#Router ospf 1
Copyrights Networkers Home 2007-2015
Website: http://www.networkershome.com
Page 73 of 144
R2 (config-router)#net 2.0.0.0 0.255.255.255 area 0
Type SH IP ROUTE
OVERVIEW
0.0.0.0 indicates any IP address – check all bits in all four octets
Applying it to an interface
EXAMPLES
int e 0
ip access-group 1 out
OVERVIEW
CONFIGURATION
Applying it to an interface
172.16.3.0 RA RB 172.16.4.0
The aim here is to block all FTP traffic from 172.16.3.0 entering
172.16.4.0 by creating an extended access list at RB
Note the third line in the access list – it permits all other IP-based traffic
172.16.3.0 RA RB 172.16.4.0
172.16.3.5 172.16.4.5
The aim here is to block all networks from accessing the www service
on the 172.16.4.0 network.
172.16.3.0 RA RB 172.16.4.0
172.16.3.5 172.16.4.5
The aim here is to stop the host 172.16.3.5 from pinging other hosts
on the 172.16.4.0 network.
Access-list 101 deny icmp host 172.16.3.5 any echo
Access-list 101 permit ip any any
Int e 0/0
Ip access-group 101 out
Show Access-lists displays the definition of all access lists that are
created on the router.
Show IP interface displays the interface that are using a given access-
list.
Ci
scoCe
rti
f
iedNe
two
rkAs
soc
iat
e(CCNA)
WORKBOOK
Mod
ule
:7–Ac
ces
sCont
rol
Lis
ts(
ACL
)La
bs
Copyr
ightsNetworker
sHome2007-
2015
Websi
te:htt
p:/
/www.net
wor
ker
shome.
com
Page81of144
Lab 1 – Denying a Host Using Standard
Access Lists
Loopback 0 Loopback 0
S 0/0 S 0/0
10.0.0.0/24 12.0.0.0/24
R1 R2
11.0.0.0/24
Router 1
Router>en
Router#Config t
Router(config)#Hostname R1
R1(config)#interface Loopback 0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#interface S 0/0
R1(config-if)#ip address 11.0.0.1 255.0.0.0
R1(config-if)#clock rate 128000 (if required)
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#Router Rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 11.0.0.0
Router 2
Router>en
On R1
R1(config)#int S 0/0
R1(config-if)#ip access-group 10 in
On R2
Ping your Partner’s PC using Extended ping and using 12.0.0.1 as the
source address by doing the following:
R1(config)#no access-list 10
R1(config)#int S 0/0
R1(config-if)#no ip access-group 10 in
On R2
R2(config)#int S 0/0
R2(config-if)#ip access-group 10 in
On R1
Ping your Partner’s PC using Extended ping and using 10.0.0.1 as the
source address by doing the following:
R2(config)#no access-list 10
R2(config)#int S 0/0
R2(config-if)#no ip access-group 10 in
R1
Creating a Extended Access List that blocks anyone from Accessing the
router via telnet to the Router
R1(config)#int S 0/0
R1(config-if)#ip access-group 101 in
R2
R1
o R1#Config t
o R1(config-t)#int E 0/0
o R1(config-if)#IP address 20.0.0.1 255.0.0.0
o R1(config-if)#no shut
o R1(config-if)#Router rip
o R1(config-router)#network 20.0.0.0
R2
PC 1
R2
R2(config)#int S 0/0
R2(config-if)#ip access-group 150 in
R2
R2(config)#int S 0/0
R2(config-if)#ip access-group 101 in
R1
R2
R1
R1(config)#int S 0/0
R1(config-if)#ip access-group 101 in
R2
R1
R1(config)#int S 0/0
R1(config-if)#ip access-group DENY-12 in
On R2
R2(config)#int S 0/0
R2(config-if)#ip access-group DENY-10-TO-12 in
OVERVIEW
Router(config)#lmi-type [cisco|ansi|itu]
Oversubscription
When the sum of CIRs on all virtual circuits coming into a
device exceed the access line speed. Once oversubscription
occurs, packets are dropped.
Excess Burst
Maximum number of uncommitted bits that the Frame Relay
switch will attempt to transfer beyond the CIR
Dependent on the service provider
Point-to-point
Does not forward broadcasts or routing updates
PVC connection is established from one subinterface to
another
Interfaces are on the same subnet
Each subinterface has it’s own local, unique DLCI number
Multipoint
Forwards broadcasts and routing updates
A single interface establishes multiple PVCs to multiple
interfaces or subinterfaces on remote routers
All participating subinterfaces are on the same subnet, with
unique local DLCIs
Total number of subinterfaces = 1, …, 4294967293
Subinterfaces can be added at any time, even during normal
operation
35
16
17
B1
18
16
HO 131.107.1.2
18
131.107.1.1
B2
131.107.1.3
B3
131.107.1.4
Copyrights Networkers Home 2007-2015
Website: http://www.networkershome.com
Page 96 of 144
Once the DLCIs have been assigned by the service provider,
mappings are created as follows (by Inverse ARP):
Router HO
Destination
Local DLCI
Address
16 131.107.1.2
17 131.107.1.3
18 131.107.1.4
Router B1
Destination
Local DLCI
Address
35 131.107.1.1
Router B2
Destination
Local DLCI
Address
16 131.107.1.1
Router B3
Destination
Local DLCI
Address
18 131.107.1.1
Now B1, B2 and B3 can each ping HO and vice versa, as there is a
mapping of the path to get to the destination, butB1, B2 and B3
cannot ping each other.
At router B1…
Frame-relay map ip 131.107.1.3 35
At router B2…
Show ip route
Ci
scoCe
rti
f
iedNe
two
rkAs
soc
iat
e(CCNA)
WORKBOOKModule:8–FrameRelayLabs
Copyr
ightsNetworker
sHome2007-
2015
Websi
te:htt
p:/
/www.net
wor
ker
shome.
com
Page99of144
Lab 1 – Point to Point Connection
Using Frame-Relay
IP 1.0.0.2
DLCI 201
IP 1.0.0.1
DLCI 102 R2
R1
R1 Configuration
Router(config)#hostname R1
R1(config)#int S 0/0
R1(config-if)#encap frame-relay
R1(config-if)#IP address 1.0.0.1 255.0.0.0
R1(config-if)#no shut
R2 Configuration
Router(config)#hostname R1
R2(config)#int S 0/0
R2(config-if)#encap frame-relay
R2(config-if)#IP address 1.0.0.1 255.0.0.0
R2(config-if)#no shut
On Both Routers
Notice the Number Status Enq. Sent and Number Status Msgs
Rcvd numbers are the only ones that are changing.
Copyrights Networkers Home 2007-2015
Website: http://www.networkershome.com
Page 100 of 144
The Lmi’s are sent every 10 seconds. These are also known as
Keepalives.
Physical Layout
Frame Switch
0/2 0/1 0/0
R3 R2 R1
Logical Layout
201 R2
102 203
R1
302
103 R3
301
R1#conf t
R1(config)#int S 0/0
R1(config-if)#ip address 1.0.0.1 255.0.0.0
R1(config-if)#encapsulation frame-relay
R1(config-if)#no shut
On R2
R2#conf t
R2(config)#int S 0/0
R2(config-if)#ip address 1.0.0.2 255.0.0.0
R2(config-if)#encapsulation frame-relay
R2(config-if)#no shut
On R3
R3#conf t
R3(config)#int S 0/0
R3(config-if)#ip address 1.0.0.3 255.0.0.0
R3(config-if)#encapsulation frame-relay
R3(config-if)#no shut
On All Routers
Physical Layout
Frame Switch
0/3 0/2 0/1 0/0
S3 S2 S1 Hub
Logical Layout
IP 1.0.0.2
DLCI 201
DLCI 102 R2
R1
R3
DLCI 102
IP 1.0.0.3
DLCI 301
hub#conf t
hub(config)#int S 0/0
hub(config-if)#ip address 1.0.0.1 255.0.0.0
hub(config-if)#encapsulation frame-relay
hub(config-if)#no shut
On S1
S1#conf t
S1(config)#int S 0/0
S1(config-if)#ip address 1.0.0.2 255.0.0.0
S1(config-if)#encapsulation frame-relay
S1(config-if)#no shut
On S2
S2#conf t
S2(config)#int S 0/0
S2(config-if)#ip address 1.0.0.3 255.0.0.0
S2(config-if)#encapsulation frame-relay
S2(config-if)#no shut
On All Routers
On S1
S1(config)#int S 0/0
S1(config-if)#frame-relay map ip 1.0.0.3 201
S2(config)#int S 0/0
On Hub
hub#conf t
hub(config)#int S 0/0
hub(config-if)#encapsulation frame-relay
hub(config-if)#no shut
hub(config-if)#exit
hub(config)#int S 0/0.1 point-to-point
hub(config-subif)#ip address 1.0.0.1 255.0.0.0
hub(config-subif)#frame-relay interface-dlci 102
hub(config-fr-dlci)#exit
hub(config-Subif)#exit
hub(config)#int S 0/0.2 point-to-point
hub(config-subif)#ip address 2.0.0.1 255.0.0.0
hub(config-subif)#frame-relay interface-dlci 103
hub(config-fr-dlci)#exit
hub(config-Subif)#exit
hub(config)#router rip
hub(config-router)#net 1.0.0.0
hub(config-router)#net 2.0.0.0
On S1
S1#conf t
S1 (config)#int S 0/0
S1 (config-if)#encapsulation frame-relay
S1 (config-if)#no shut
S1 (config-if)#exit
S1 (config)#int S 0/0.1 point-to-point
S1 (config-subif)#ip address 1.0.0.2 255.0.0.0
S1 (config-subif)#frame-relay interface-dlci 201
S1 (config-fr-dlci)#exit
S1 (config-Subif)#exit
S1(config)#router rip
S1(config-router)#net 1.0.0.0
S2#conf t
S2(config)#int S 0/0
S2(config-if)#encapsulation frame-relay
S2(config-if)#no shut
S2(config-if)#exit
S2(config)#int S 0/0.1 point-to-point
S2(config-subif)#ip address 2.0.0.2 255.0.0.0
S2(config-subif)#frame-relay interface-dlci 301
S2(config-fr-dlci)#exit
S2(config-Subif)#exit
S2(config)#router rip
S2(config-router)#net 2.0.0.0
Type SH IP ROUTE
CDP PARAMETERS
CDP Timer
How often updates are sent
Default = 60 seconds
To change default time
Router(config)#cdp timer new_update_time
CDP Holdtime
The time the CDP packet sent should be kept by the receiving
router before being discarded
Default = 180 seconds
To change default time
Router(config)#cdp holdtime new_holdtime
To disable CDP
Router(config)#no cdp enable
To enable CDP
Router(config)#cdp run
Ci
scoCe
rti
f
iedNe
two
rkAs
soc
iat
e(CCNA)
WORKBOOK
Mod
ule
:9–C
isc
oDi
scove
ryP
rot
ocol
(CDP
)La
bs
Copyr
ightsNetworker
sHome2007-2015
Websi
te:htt
p:/
/www.net
wor
kershome.
com
Page112of144
Lab 1 –3 – CDP Labs
R1 R2
L0 10.0.0.1/8 S 0/0(.1) 192.1.12.0/24
S 0/0 (.2) L0 2.2.2.2/8
E 0/0 (.2)
192.1.23.0/24
E 0/0 (.3)
L0 192.168.1.0/24
R3
On R2
On R1
R1(config-if)#interface S0/0
R1(config-if)# ip nat outside
On R1
On R1
On R2
On R3
COLLISION DOMAINS
A group of network nodes on an Ethernet network that share the
network media that can experience collisions within a collision
domain.
Networks can be segmented into multiple collision domains for
optimization of network functionality.
SWITCH FUNCTIONS
Address learning
Initially MAC address table is empty – switch will flood networks
to forward data
Hosts are added to the table as soon they start communicating
Frame filtering
If the destination MAC address exists in the MAC address table,
frame is not flooded, it is sent out only on the appropriate port
Broadcasts and multicasts are flooded to all ports, except the
originating port
Loop avoidance
Duplicate frames must be prevented from traveling over
redundant paths that may exist for backup or transmission
redundancy.
Broadcasts will continually flood around a loop structure –
broadcast storm
Multiple copies of non-broadcast frames may be delivered to the
same destination, causing errors
The same frame will be received on different ports of the same
switch, causing instability in the MAC address table
using the trunk port (fast Ethernet) and ISL (Inter Switch Link)
encapsulation.
ISL is Cisco proprietary for interconnecting multiple switches over the
fast Ethernet (fa) ports.
ISL operates at layer 2, it adds a new header section and a new FCS
Fast Ethernet ports on routers have ISL capability.
IEEE 802.1q is another encapsulation that can also be used to
connect multiple switches with multiple VLAN’s
By default, all ports have membership of VLAN 1
VLAN membership can be statically configured or dynamically,
through a server or VMPS (VLAN Membership Policy Server)
Up to 64 VLANs supported on 1900 switches
Frame Tagging
Frame tagging assigns a unique user-assigned ID to each frame.
A unique identifier is placed in the header of each frame as it is
forwarded between switches.
Ci
scoCe
rti
f
iedNe
two
rkAs
soc
iat
e(CCNA)
WORKBOOKModule:11–SwitchingLabs
Copyr
ightsNetworker
sHome2007-2015
Websi
te:htt
p:/
/www.net
wor
kershome.
com
Page122of144
Lab 1-Creating and Routing with VLAN’s
R1
F 0/0 (.1)
192.1.10.0/24 VLAN 10
F 0/0.1 (.2)
R2
F 0/0.2 (.2)
192.1.20.0/24 VLAN 20
F0/0 (.3)
R3
F0/1 (.3)
192.1.30.0/24 VLAN 30
VLAN 30 (.15)
SW1
VLAN 40 (.15)
192.1.40.0/24 VLAN 40
F 0/0 (.4)
R4
SW1
SW2
On Both Switches
SW1
VLAN 10
VLAN 20
VLAN 30
VLAN40
SW1
Interface F 0/1
Switchport mode access
Switchport access vlan 10
!
Interface F 0/2
Switchport trunk encapsulation dot1q
Switchport mode trunk
!
Interface F 0/3
Switchport mode access
Switchport access vlan 20
!
SW2
Interface F 0/3
Switchport mode access
Switchport access vlan 30
R1
Interface F 0/0
Ip address 192.1.10.1 255.255.255.0
No shut
!
Interface Loopback 0
Ip address 1.1.1.1 255.0.0.0
R2
Interface F 0/0
No shut
!
Interface F 0/0.1
Encapsulation dot1q 10
Ip address 192.1.10.2 255.255.255.0
!
Interface F 0/0.2
Encapsulation dot1q 20
Ip address 192.1.20.2 255.255.255.0
!
Interface Loopback 0
Ip address 2.2.2.2 255.0.0.0
R3
Interface F 0/0
Ip address 192.1.20.3 255.255.255.0
No shut
!
Interface F 0/1
Ip address 192.1.30.3 255.255.255.0
No shut
!
Interface Loopback 0
Ip address 3.3.3.3 255.0.0.0
Interface F 0/0
Ip address 192.1.40.4 255.255.255.0
No shut
!
Interface Loopback 0
Ip address 4.4.4.4 255.0.0.0
SW1
Interface Loopback 0
Ip address 15.15.15.15 255.0.0.0
R1
Router Rip
Version 2
No auto-summary
Network 1.0.0.0
Network 192.1.10.0
R2
Router Rip
Version 2
No auto-summary
Network 2.0.0.0
Network 192.1.10.0
Network 192.1.20.0
R3
Router Rip
Version 2
No auto-summary
Network 3.0.0.0
Network 192.1.20.0
Network 192.1.30.0
Router Rip
Version 2
No auto-summary
Network 4.0.0.0
Network 192.1.40.0
SW1
Router Rip
Version 2
No auto-summary
Network 15.0.0.0
Network 192.1.30.0
Network 192.1.40.0
SW1
VLAN 50
SW2
Interface F 0/3
Switchport mode access
Switchport access vlan 50
Switchport port-security
Switchport port-security mac xxxx.xxxx.xxxx
!
Interface F 0/4
Switchport mode access
Switchport access vlan 50
Switchport port-security
Switchport port-security mac xxxx.xxxx.xxxx
Task 2
Configure F 0/5 – F 0/8 in VLAN 50 on SW2. Enable Port Security for
these ports such that only 1 MAC address can be connected to them. You
would like to learn the MAC address dynamically.
SW2
Task 3
Configure F 0/15 also in VLAN 50 on SW2. Enable Port security for these
ports such that 5 MAC addresses can be connected to this port. The first
2 MAC addresses that are allowed to connect are 0001.1010.AB12 and
0001.1010.AB13. The remaining 3 can be learned dynamically.
Int F 0/15
Switchport mode access
Switchport access vlan 50
Switchport port-security
Switchport port-security max 5
Switcport port-security mac-address 0001.1010.AB12
Switcport port-security mac-address 0001.1010.AB13
Switcport port-security mac-address sticky
Configure the port range from F0/1 – 6 on SW1 in a way that, the link
will come up as soon as someone plug in a network cable into some of
these ports bypassing STP learning/listening states.
SW1
Output of command:
SW1
VLAN10 enabled
After a port on the switch has linked and joined the bridge group, STP
runs on that port. A port that runs STP can be in one of five states:
• blocking
• listening
• learning
• forwarding
• disabled
STP dictates that the port starts out blocking, and then immediately
moves through the listening and learning phases.
During the listening state, the switch tries to determine where the port
fits in
the spanning tree topology. The switch especially wants to know whether
this port is part of a physical loop. If the port is part of a loop, the port
can be chosen to go into blocking mode.
The blocking state means that the port does not send or receive user
data in order to eliminate loops.
If the port is not part of a loop, the port proceeds to the learning state, in
which the port learns which MAC addresses live off this port. This entire
STP initialization process takes about 30 seconds.
At the global level, you enable BPDU guard on Port Fast-enabled NNIs by
using the spanning-tree portfast bpduguard default global
configuration command. Spanning tree shuts down NNIs that are in a
Port Fast-operational state if any BPDU is received on those NNIs.
At the interface level, you enable BPDU guard on any NNI by using the
spanning-tree bpduguard enable interface configuration command
without also enabling the Port Fast feature. When the NNI receives a
BPDU, it is put in the error-disabled state.
SW1
Output of command:
SW1
Command Description
Copy startup-config tftp Backs up the Startup-config file to a
TFTP server
IP_ADDRESS=XX.XX.XX.XX
IP_SUBNET_MASK=XXX.XXX.XXX.XXX
DEFAULT_GATEWAY=XX.XX.XX.XX
TFTP_SERVER=XX.XX.XX.XX
TFTP_FILENAME=IOS Filename
Ci
scoCe
rti
f
iedNe
two
rkAs
soc
iat
e(CCNA)
WORKBOOK
Mod
ule
:12–Rout
erMa
int
ena
nceL
abs
Copyr
ightsNetworker
sHome2007-2015
Websi
te:htt
p:/
/www.net
wor
kershome.
com
Page138of144
Lab 1 – Backing up Startup-config to a TFTP
Server
Loopback0
R1
1.0.0.1/8 10.0.0.0/8
Router 1
Router>en
Router#Config t
Router(config)#Hostname R1
R1(config)#interface Loopback 0
R1(config-if)#ip address 1.0.0.1 255.0.0.0
R1(config-if)#interface E 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shut
R1(config-if)#line console 0
R1(config-line)#login
R1(config-line)#logging synch
R1(config-line)#no ip domain-lookup
R1(config-line)#end
R1#wr
PC
IP Address : 10.0.0.2
Subnet Mask : 255.0.0.0
Default Gateway : 10.0.0.1
Open Windows Explorer and browse to the Default TFTP Server folder.
Type copy tftp startup-config and follow the prompts to restore the
file.
In Privilege Exec, type Copy flash tftp and follow the prompts using
the filename of your IOS.
Switch to the Cisco TFTP Server program and notice the file being
copied.
Once the copying is done, verify the creation of the file in the default
folder for the Cisco TFTP Server
Type copy tftp flash and follow the prompts to restore the file.
In Privilege Exec, type erase flash to delete the flash and simulate a
corruption of the IOS.
When the router reloads, what mode does it go into and why?
As the router did not load the Startup-config, it does not have any IP
configuration to connect to the TFTP Server.
o IP ADDRESS=10.0.0.1
o IP_SUBNET_MASK=255.0.0.0
o DEFAULT_GATEWAY=10.0.0.1
o TFTP_SERVER=10.0.0.2
o TFTP_FILE=(IOS Filename)
Type tftpdnld.