Router Config
Router Config
Lab Objective:
Learn how to install a branch office and HQ router.
Lab Purpose:
Routers can take several hours to install and configure. This lab will cover
just a few of the basic steps you need to follow to connect your router in a
branch office (R1) and your HQ (R0). I’ve scaled everything down for
simplicity.
Lab Tool:
Packet Tracer
Lab Topology:
Please use the following topology to complete this lab exercise:
Lab Walkthrough:
Task 1:
Build the network shown in the topology above (I used 1941 models for this
lab). Power down the routers and add (drag) a WAN card to each router,
connect the routers with a serial cable, and then power up the routers.
Task 2:
Change the hostname on the router and then check the interfaces for the
correct name/number/slot so you configure the correct one. You will use a
serial cable to connect the two routers.
Router#conf t
Router(config)#hostname R0
Router(config)#exit
R0#show ip int brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 unassigned YES unset administratively down down
GigabitEthernet0/1 unassigned YES unset administratively down down
Serial0/1/0 unassigned YES unset administratively down down
Serial0/1/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
R0#
Task 2:
One of the routers will have a DCE cable end. This provides the clocking for
the connection, so you need to add a speed command. The ‘show controllers
interface X’ command will tell you which cable type you have. Packet Tracer
appears to automatically add a clock rate, so we need not worry about that
step, but bear it in mind for live routers or remote racks.
R0#show controllers s0/1/0
Interface Serial0/1/0
Hardware is PowerQUICC MPC860
DCE V.35, clock rate 2000000
Task 3:
Configure the IP address on either router and then ping across the link.
R0#config t
R0(config)#int s0/1/0
R0(config-if)#ip add 10.0.0.1 255.0.0.0
R0(config-if)#no shut
For Router1:
Router#config t
Router(config)#hostname R1
R1(config)#
R1(config)#int s0/1/0
R1(config-if)#ip add 10.0.0.2 255.0.0.0
R1(config-if)#no shut
R1(config-if)#end
R1#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
Task 4:
Configure the Ethernet interfaces on the routers and add the IP addresses and
default gateways on the hosts. Here is the config for R0. On R1 remember
that it’s using the 192.168.1.0 network on the LAN side.
R0(config-if)#int g0/1
R0(config-if)#ip add 172.16.0.1 255.255.0.0
R0(config-if)#no shut
R0#ping 172.16.0.2
Task 5:
Configure RIP version 2 on the network so that each router has a map of the
entire topology.
R0(config)#router rip
R0(config-router)#version 2
R0(config-router)#network 10.0.0.0
R0(config-router)#network 172.16.0.0
R1(config)#router rip
R1(config-router)#ver 2
R1(config-router)#network 10.0.0.0
R1(config-router)#net 192.168.1.0
R1(config-router)#end
Task 6:
Check your routing tables.
R0#show ip route
Codes: L—local, C—connected, S—static, R—RIP, M—mobile, B—BGP
D—EIGRP, EX—EIGRP external, O—OSPF, IA—OSPF inter area
N1—OSPF NSSA external type 1, N2—OSPF NSSA external type 2
E1—OSPF external type 1, E2—OSPF external type 2, E—EGP
i—IS-IS, L1—IS-IS level-1, L2—IS-IS level-2, ia—IS-IS inter area
*—candidate default, U—per-user static route, o—ODR
P—periodic downloaded static route
R1#show ip route
Codes: L—local, C—connected, S—static, R—RIP, M—mobile, B—BGP
D—EIGRP, EX—EIGRP external, O—OSPF, IA—OSPF inter area
N1—OSPF NSSA external type 1, N2—OSPF NSSA external type 2
E1—OSPF external type 1, E2—OSPF external type 2, E—EGP
i—IS-IS, L1—IS-IS level-1, L2—IS-IS level-2, ia—IS-IS inter area
*—candidate default, U—per-user static route, o—ODR
P—periodic downloaded static route
Task 7:
Ping the remote PC from one end to the other: PC0’s to PC1’s IP address.
Task 8:
Configure R0 to allow remote access via Telnet. Add a username and
password so the administrator can telnet to the router. Add an enable
password so that the admin can get into enable mode to do any
configurations. The command ‘login local’ tells the router to check the user
against the local database of usernames and passwords. Then test your
connection from the PC.
R0#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R0(config)#enable secret hello
R0(config)#username 101labs password cisco
R0(config)#line vty 0 15
R0(config-line)#transport input telnet
R0(config-line)#login local
Notes:
This is a very basic setup. There is far more detail if you plan to take Cisco
CCNA and other advanced exams. Feel free to redo this lab but skip the
‘enable secret’ password. Now you can still telnet but can’t configure the
router.