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 10.0.0.1 255.0.0.0
r1(config-if)#no shut
r1(config-if)#int f0/1
r1(config-if)#ip add 100.0.0.1 255.0.0.0
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 11.0.0.1 255.0.0.0
r1(config-if)#no shut
r1(config-if)#^Z ctrl+Z
r1#wr
r1 static routing
r1#conf t
r1(config)#ip route 172.16.0.0 255.255.0.0 11.0.0.2
r1(config)#ip route 20.0.0.0 255.0.0.0 11.0.0.2
r1(config)#ip route 192.168.1.0 255.255.255.0 11.0.0.2
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 10.0.0.0/8 is directly connected, FastEthernet0/0
C 11.0.0.0/8 is directly connected, Serial0/0
S 20.0.0.0/8 [1/0] via 11.0.0.2
C 100.0.0.0/8 is directly connected, FastEthernet0/1
S 172.16.0.0/16 [1/0] via 11.0.0.2
S 192.168.1.0/24 [1/0] via 11.0.0.2
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 172.16.1.1 255.255.0.0
r2(config-if)#no shut
r2(config-if)#int s0/0
r2(config-if)#ip add 11.0.0.2 255.0.0.0
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 20.0.0.1 255.0.0.0 // DTE end point
r2(config-if)#no shut
r2(config-if)#^Z
r2#wr
r2 static routing
r2#conf t
r2(config)#ip route 10.0.0.0 255.0.0.0 11.0.0.1
r2(config)#ip route 100.0.0.0 255.0.0.0 11.0.0.1
r2(config)#ip route 192.168.1.0 255.255.255.0 20.0.0.2
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 10.0.0.0/8 [1/0] via 11.0.0.1
C 11.0.0.0/8 is directly connected, Serial0/0
C 20.0.0.0/8 is directly connected, Serial0/1
S 100.0.0.0/8 [1/0] via 11.0.0.1
C 172.16.0.0/16 is directly connected, FastEthernet0/0
S 192.168.1.0/24 [1/0] via 20.0.0.2
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 192.168.1.1 255.255.255.0
r3(config-if)#no shut
r3(config-if)#int s0/0
r3(config-if)#ip add 20.0.0.2 255.0.0.0
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 10.0.0.0 255.0.0.0 20.0.0.1
r3(config)#ip route 100.0.0.0 255.0.0.0 20.0.0.1
r3(config)#ip route 11.0.0.0 255.0.0.0 20.0.0.1
r3(config)#ip route 172.16.0.0 255.255.0.0 20.0.0.1
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 10.0.0.0/8 [1/0] via 20.0.0.1
S 11.0.0.0/8 [1/0] via 20.0.0.1
C 20.0.0.0/8 is directly connected, Serial0/0
S 100.0.0.0/8 [1/0] via 20.0.0.1
S 172.16.0.0/16 [1/0] via 20.0.0.1
C 192.168.1.0/24 is directly connected, FastEthernet0/0
r3#debug ip icmp
R1 default routing
R1(config)# ip route 0.0.0.0 0.0.0.0 Serial0/0/0
Or
R1(config)# ip route 0.0.0.0 0.0.0.0 11.0.0.2
R3 default routing
R3(config)# ip route 0.0.0.0 0.0.0.0 Serial0/0
Or
R3(config)# ip route 0.0.0.0 0.0.0.0 20.0.0.1
Both router use only single exit link (gateway)
R2 use static routing
R1 RIP configuration
r1(config)#router rip
r1(config-router)#network 10.0.0.0
r1(config-router)#network 100.0.0.0
r1(config-router)#network 11.0.0.0
R2 RIP configuration
r2(config)#no ip route 10.0.0.0 255.0.0.0 11.0.0.1
r2(config)#no ip route 100.0.0.0 255.0.0.0 11.0.0.1
r2(config)#no ip route 192.168.1.0 255.255.255.0 20.0.0.2
r2(config)#router rip
r2(config-router)#network 11.0.0.0
r2(config-router)#network 20.0.0.0
r2(config-router)#network 172.16.0.0
r2(config-router)#
R3 RIP configuration
r3(config)#no ip route 0.0.0.0 0.0.0.0 Serial0/0
r3(config)#router rip
r3(config-router)#network 20.0.0.0
r3(config-router)#network 192.168.1.0
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:
10.0.0.0
11.0.0.0
100.0.0.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
11.0.0.2 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 192.168.1.9 255.255.255.248
r1(config-if)#no shutdown
r1(config-if)#int f0/1
r1(config-if)#ip add 192.168.1.17 255.255.255.240
r1(config-if)#no shutdown
r1(config-if)#int s0/0/0
r1(config-if)#ip add 20.20.20.5 255.255.255.252
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 192.168.1.33 255.255.255.224
r2(config-if)#no shutdown
r2(config-if)#int s0/0
r2(config-if)#ip add 20.20.20.6 255.255.255.252
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 192.168.1.65 255.255.255.192
r3(config-if)#no shutdown
r3(config-if)#int s0/0
r3(config-if)#ip add 20.20.20.10 255.255.255.252
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
20.0.0.0/30 is subnetted, 1 subnets
C 20.20.20.4 is directly connected, Serial0/0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.8/29 is directly connected, FastEthernet0/0
C 192.168.1.16/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 20.20.20.4
r1(config-router)#net 192.168.1.8
r1(config-router)#net 192.168.1.16
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
20.0.0.0/30 is subnetted, 2 subnets
C 20.20.20.4 is directly connected, Serial0/0
C 20.20.20.8 is directly connected, Serial0/1
192.168.1.0/27 is subnetted, 1 subnets
C 192.168.1.32 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 20.20.20.4
r2(config-router)#net 20.20.20.8
r2(config-router)#net 192.168.1.32
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
20.0.0.0/30 is subnetted, 1 subnets
C 20.20.20.8 is directly connected, Serial0/0
192.168.1.0/26 is subnetted, 1 subnets
C 192.168.1.64 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 192.168.1.64
r3(config-router)#net 20.20.20.8
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 10.0.0.0 0.255.255.255 area 0
r1(config-router)#network 100.0.0.0 0.255.255.255 area 0
r1(config-router)#network 11.0.0.0 0.255.255.255 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 11.0.0.0 0.255.255.255 area 0
r2(config-router)#net 20.0.0.0 0.255.255.255 area 0
r2(config-router)#net 172.16.0.0 0.0.255.255 area 0
r2(config-router)#router-id 2.2.2.2
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 20.0.0.0 0.255.255.255 area 0
r3(config-router)#net 192.168.1.8 0.0.0.7 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 10.0.0.0
r1(config-router)#net 11.0.0.0
r1(config-router)#net 100.0.0.0
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 11.0.0.0
r2(config-router)#net 20.0.0.0
r2(config-router)#net 172.16.0.0
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 20.0.0.0
r3(config-router)#net 192.168.1.8 //igrp no support classless use 192.168.1.0
r3(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console
r3#wr
Building configuration...
[OK]
r3#