Network Devices Configuration Lab Manual
Network Devices Configuration Lab Manual
Network Devices Configuration Lab Manual
CHAPTER TWO
Look at the following network topology
Lab_A Configuration
To configure the Lab_A router, you just need to
add an IP address to interface FastEthernet 0/0
as well as the serial 0/0. Configuring the
hostnames of each router will make
identification easier.
Router>en
Router#config t
Router(config)#hostname Lab_A
Lab_A(config)#enable secret todd
Lab_A(config)#interface fa0/0
Lab_A(config-if)#ip address 192.168.10.1
255.255.255.0
Lab_A(config-if)#description Lab_A LAN
Connection
Lab_A(config-if)#no shut
Lab_A(config-if)#interface serial 0/0
Lab_A(config-if)#ip address 192.168.20.1
255.255.255.0
Lab_A(config-if)#description WAN
Connection to Lab_B
Lab_A(config-if)#no shut
Lab_A(config-if)#exit
Lab_A(config)#line console 0
Lab_A(config-line)#password todd
Lab_A(config-line)#login
Lab_A(config-line)#line aux 0
Lab_A(config-line)#password todd
Lab_A(config-line)#login
Lab_A(config-line)#line vty 0 4
Lab_A(config-line)#password todd
Lab_A(config-line)#login
Lab_A(config-line)#exit
Lab_A(config)#banner motd #
This is the Lab_A router#
Lab_A(config)#^z
Lab_A#copy running-config startup-config
Destination filename [startup-config]? [Enter]
Lab_A#
To view the IP routing tables created on a Cisco
router, use the command show ip route.
The command output is shown as follows:
Lab_A#sh ip route
Codes: C - connected, S - static, I - IGRP, R -
RIP,M - mobile, B – BGP D - EIGRP, EX -
Router(config)#hostname Lab_B
Lab_B(config)#enable secret todd
Lab_B(config)#interface fa0/0
Lab_B(config-if)#ip address 192.168.30.1
255.255.255.0
Lab_B(config-if)#description Lab_B LAN
Connection
Lab_B(config-if)#no shut
Lab_B(config-if)#interface serial 0/0
Lab_B(config-if)#ip address 192.168.20.2
255.255.255.0
Lab_B(config-if)#description WAN
Connection to Lab_A
Lab_B(config-if)#clock rate 64000
Lab_B(config-if)#no shut
Lab_B(config-if)#interface serial 0/1
Lab_B(config-if)#ip address 192.168.40.1
255.255.255.0
Lab_B(config-if)#description WAN
Connection to Lab_C
Lab_B(config-if)#clock rate 64000
Lab_B(config-if)#no shut
Lab_B(config-if)#exit
Lab_B(config)#line console 0
Lab_B(config-line)#password todd
Lab_B(config-line)#login
Lab_B(config-line)#line aux 0
Lab_B(config-line)#password todd
Lab_B(config-line)#login
Lab_B(config-line)#line vty 0 4
Lab_B(config-line)#password todd
Lab_B(config-line)#login
Lab_B(config-line)#exit
Lab_B(config)#banner motd #
This is the Lab_B router#
Lab_B(config)#^z
Lab_B#copy running-config startup-config
Destination filename [startup-config]? [Enter]
Lab_B#
These commands configured serial 0/0 into
network 192.168.20.0, serial 0/1 into network
192.168.40.0, and FastEthernet 0/0 into network
192.168.30.0. The show ip route command
displays the following:
Lab_B#sh ip route
[output cut]
Lab_C#
Lab_C now shows all the networks in the
internetwork and can communicate with all
routers and networks. All the routers have the
correct routing table, and all the routers and
hosts should be able to communicate without a
problem—for now. But if you add even one
more network or another router to the
internetwork, you’ll have to update all routers’
routing tables by hand
Lab_A#ping 192.168.50.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
192.168.50.1, timeout is 2 seconds:
!!!!!
Success rate is 80 percent (4/5), round-trip
min/avg/max = 64/66/68 ms
Lab_A#
From router Lab_C, a ping to 192.168.10.0 will
test for good IP connectivity. Here is the
Router output:
Default Routing…..
We use default routing to send packets with a
remote destination network not in the routing
table to the next-hop router.
Router Lab_C is directly connected to networks
192.168.40.0 and 192.168.50.0.
The routing table needs to know about networks
192.168.10.0, 192.168.20.0, and 192.168.30.0.
You must first delete the existing static routes
from the router and then add the default route.
Lab_C(config)#no ip route 192.168.10.0
255.255.255.0
192.168.40.1
Lab_C(config)#no ip route 192.168.20.0
255.255.255.0 192.168.40.1
Lab_C(config)#no ip route 192.168.30.0
255.255.255.0 192.168.40.1
Lab_C(config)#ip route 0.0.0.0 0.0.0.0
192.168.40.1
If you look at the routing table now, you’ll see
only the two directly connected networks plus