0% found this document useful (0 votes)
15 views12 pages

Router Configuration and RIP Setup Guide

The document describes the configuration of three routers, R1, R2, and R3, to establish connectivity and routing between their networks. R1, R2, and R3 are configured with IP addresses on their interfaces and static routes are added to route between the connected networks. RIP version 2 is enabled to dynamically route between the routers, with auto-summarization disabled to advertise subnet masks. The routing tables are verified to show routes learned through direct connections and RIP.

Uploaded by

heeramarwal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views12 pages

Router Configuration and RIP Setup Guide

The document describes the configuration of three routers, R1, R2, and R3, to establish connectivity and routing between their networks. R1, R2, and R3 are configured with IP addresses on their interfaces and static routes are added to route between the connected networks. RIP version 2 is enabled to dynamically route between the routers, with auto-summarization disabled to advertise subnet masks. The routing tables are verified to show routes learned through direct connections and RIP.

Uploaded by

heeramarwal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

r1

=========================
Router>en
Router#conf t
Router(config)#host r1
r1(config)#enable password ccna
r1(config)#int f0/0
r1(config-if)#ip add [Link] [Link]
r1(config-if)#no shut
r1(config-if)#int f0/1
r1(config-if)#ip add [Link] [Link]
r1(config-if)#no shut
r1(config-if)#int s0/0 // if router is 1841 then use s0/0/0 – DTE no require clock rate command
r1(config-if)#ip add [Link] [Link]
r1(config-if)#no shut
r1(config-if)#^Z ctrl+Z
r1#wr

r1 static routing

r1#conf t
r1(config)#ip route [Link] [Link] [Link]
r1(config)#ip route [Link] [Link] [Link]
r1(config)#ip route [Link] [Link] [Link]
r1(config)#^Z
r1#wr

r1 routing table test

r1#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

Gateway of last resort is not set

C [Link]/8 is directly connected, FastEthernet0/0


C [Link]/8 is directly connected, Serial0/0
S [Link]/8 [1/0] via [Link]
C [Link]/8 is directly connected, FastEthernet0/1
S [Link]/16 [1/0] via [Link]
S [Link]/24 [1/0] via [Link]
r1#debug ip icmp

===================================================================
=======

r2

================================
Router>en
Router#conf t
Router(config)#host r2
r2(config)#enable password ccna
r2(config)#int f0/0
r2(config-if)#ip add [Link] [Link]
r2(config-if)#no shut
r2(config-if)#int s0/0
r2(config-if)#ip add [Link] [Link]
r2(config-if)#no shut
r2(config-if)#clock rate 64000 //this end is DCE of v.35 serial cable
r2(config-if)#int s0/1
r2(config-if)#ip add [Link] [Link] // DTE end point
r2(config-if)#no shut
r2(config-if)#^Z
r2#wr

r2 static routing

r2#conf t
r2(config)#ip route [Link] [Link] [Link]
r2(config)#ip route [Link] [Link] [Link]
r2(config)#ip route [Link] [Link] [Link]
r2(config)#^Z
r2#wr

r2 routing table test

r2#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

Gateway of last resort is not set

S [Link]/8 [1/0] via [Link]


C [Link]/8 is directly connected, Serial0/0
C [Link]/8 is directly connected, Serial0/1
S [Link]/8 [1/0] via [Link]
C [Link]/16 is directly connected, FastEthernet0/0
S [Link]/24 [1/0] via [Link]
r2#debug ip icmp

===================================================================
==========

r3

================================

Router>
Router>en
Router#conf t
Router(config)#host r3
r3(config)#enable password ccna
r3(config)#int f0/0
r3(config-if)#ip add [Link] [Link]
r3(config-if)#no shut
r3(config-if)#int s0/0
r3(config-if)#ip add [Link] [Link]
r3(config-if)#no shut
r3(config-if)#clock rate 64000 // DCE side of v.35 serial cable
r3(config-if)#^Z
r3#wr

r3 static routing

r3#conf t
r3(config)#ip route [Link] [Link] [Link]
r3(config)#ip route [Link] [Link] [Link]
r3(config)#ip route [Link] [Link] [Link]
r3(config)#ip route [Link] [Link] [Link]
r3(config)#^Z
r3#wr

r3 routing table test

r3#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

Gateway of last resort is not set

S [Link]/8 [1/0] via [Link]


S [Link]/8 [1/0] via [Link]
C [Link]/8 is directly connected, Serial0/0
S [Link]/8 [1/0] via [Link]
S [Link]/16 [1/0] via [Link]
C [Link]/24 is directly connected, FastEthernet0/0
r3#debug ip icmp
R1 default routing

R1(config)# ip route [Link] [Link] Serial0/0/0


Or
R1(config)# ip route [Link] [Link] [Link]

R3 default routing

R3(config)# ip route [Link] [Link] Serial0/0


Or
R3(config)# ip route [Link] [Link] [Link]

Both router use only single exit link (gateway)


R2 use static routing

R1 RIP configuration

r1(config)#router rip
r1(config-router)#network [Link]
r1(config-router)#network [Link]
r1(config-router)#network [Link]

R2 RIP configuration

r2(config)#no ip route [Link] [Link] [Link]


r2(config)#no ip route [Link] [Link] [Link]
r2(config)#no ip route [Link] [Link] [Link]
r2(config)#router rip
r2(config-router)#network [Link]
r2(config-router)#network [Link]
r2(config-router)#network [Link]
r2(config-router)#

R3 RIP configuration

r3(config)#no ip route [Link] [Link] Serial0/0


r3(config)#router rip
r3(config-router)#network [Link]
r3(config-router)#network [Link]
r3(config-router)#
testing rip routing r1,r2 and r3

r1#sh ip route
r2#sh ip route
r3#sh ip route

r1#sh ip protocols

Routing Protocol is "rip"


Sending updates every 30 seconds, next due in 18 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 1, receive any version
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 1 21
FastEthernet0/1 1 21
Serial0/0/0 1 21
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
[Link]
[Link]
[Link]
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
[Link] 120 00:00:10
Distance: (default is 120)

R2#sh ip protocols

R3#sh ip protocols

r1#debug ip rip
r2#debug ip rip
r3#debug ip rip

r1#no debug all /// cancel debug same all router


R1

Router>en
Router#conf t
Router(config)#host r1
r1(config)#enable password ccna
r1(config)#int f0/0
r1(config-if)#ip add [Link] [Link]
r1(config-if)#no shutdown
r1(config-if)#int f0/1
r1(config-if)#ip add [Link] [Link]
r1(config-if)#no shutdown
r1(config-if)#int s0/0/0
r1(config-if)#ip add [Link] [Link]
r1(config-if)#no shutdown
r1#wr

R2

Router>
Router>en
Router#conf t
Router(config)#host r2
r2(config)#enable password ccna
r2(config)#int f0/0
r2(config-if)#ip add [Link] [Link]
r2(config-if)#no shutdown
r2(config-if)#int s0/0
r2(config-if)#ip add [Link] [Link]
r2(config-if)#no shutdown
r2(config-if)#clock rate 64000
r2(config-if)#int s0/1
r2(config-if)#no shutdown
r2#wr
r2#

r3

Router>en
Router#conf t
Router(config)#host r3
r3(config)#enable password ccna
r3(config)#int f0/0
r3(config-if)#ip add [Link] [Link]
r3(config-if)#no shutdown
r3(config-if)#int s0/0
r3(config-if)#ip add [Link] [Link]
r3(config-if)#no shutdown
r3(config-if)#clock rate 64000
r3(config-if)#end
r3#wr
r3#

rip 2 routing

r1

r1#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

Gateway of last resort is not set

[Link]/30 is subnetted, 1 subnets


C [Link] is directly connected, Serial0/0/0
[Link]/24 is variably subnetted, 2 subnets, 2 masks
C [Link]/29 is directly connected, FastEthernet0/0
C [Link]/28 is directly connected, FastEthernet0/1
r1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
r1(config)#router rip
r1(config-router)#net [Link]
r1(config-router)#net [Link]
r1(config-router)#net [Link]
r1(config-router)#version 2
r1(config-router)#no auto-summary
r1(config-router)#end
r1#wr

r2
r2#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

Gateway of last resort is not set

[Link]/30 is subnetted, 2 subnets


C [Link] is directly connected, Serial0/0
C [Link] is directly connected, Serial0/1
[Link]/27 is subnetted, 1 subnets
C [Link] is directly connected, FastEthernet0/0
r2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
r2(config)#router rip
r2(config-router)#net [Link]
r2(config-router)#net [Link]
r2(config-router)#net [Link]
r2(config-router)#version 2
r2(config-router)#no auto-summary
r2(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
r2#wr
Building configuration...
[OK]
r2#

r3

r3#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

Gateway of last resort is not set


[Link]/30 is subnetted, 1 subnets
C [Link] is directly connected, Serial0/0
[Link]/26 is subnetted, 1 subnets
C [Link] is directly connected, FastEthernet0/0
r3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
r3(config)#router rip
r3(config-router)#net [Link]
r3(config-router)#net [Link]
r3(config-router)#version 2
r3(config-router)#no auto-summary
r3(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
r3#wr
Building configuration...
[OK]
r3#

OSPF routing configuration

R1
r1(config)#router ospf 777
r1(config-router)#network [Link] [Link] area 0
r1(config-router)#network [Link] [Link] area 0
r1(config-router)#network [Link] [Link] area 0
r1(config-router)#exit
r1(config)#int s0/0/0
r1(config-if)#ip ospf authentication
r1(config-if)#ip ospf authentication-key cisco
r1(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
r1#wr
Building configuration...
[OK]
r1#

R1
r2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
r2(config)#router ospf 777
r2(config-router)#net [Link] [Link] area 0
r2(config-router)#net [Link] [Link] area 0
r2(config-router)#net [Link] [Link] area 0
r2(config-router)#router-id [Link]
Reload or use "clear ip ospf process" command, for this to take effect
r2(config-router)#exit
r2(config)#int s0/0
r2(config-if)#ip ospf authentication
r2(config-if)#ip ospf authentication-key cisco
r2(config-if)#int s0/1
r2(config-if)#ip ospf authentication
r2(config-if)#ip ospf authentication-key cisco
r2(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
r2#wr
Building configuration...
[OK]
r2#

R3
r3(config)#router ospf 777
r3(config-router)#net [Link] [Link] area 0
r3(config-router)#net [Link] [Link] area 0
r3(config-router)#exit
r3(config)#int s0/0
r3(config-if)#ip ospf authentication
r3(config-if)#ip ospf authentication-key cisco
r3(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R3#wr
Building configuration...
[OK]
R3#

EIGRP AND IGRP

r1(config)#router eigrp 60 or r1(config)#router igrp 60


r1(config-router)#net [Link]
r1(config-router)#net [Link]
r1(config-router)#net [Link]
r1(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console
r1#wr
Building configuration...
[OK]
r1#
r2(config)#router eigrp 60 or r2(config)#router igrp 60
r2(config-router)#net [Link]
r2(config-router)#net [Link]
r2(config-router)#net [Link]
r2(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console
r2#wr
Building configuration...
[OK]
r2#
r3#conf t
r3(config)#router eigrp 60 or r3(config)#router igrp 60
r3(config-router)#net [Link]
r3(config-router)#net [Link] //igrp no support classless use [Link]
r3(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console
r3#wr
Building configuration...
[OK]
r3#

You might also like