PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:basic-rip-config:basic-rip-config

RIP Configuration Getting Started

GNS3 Virtual Lab.

Topology

Initial Config

  • R1
conf t
!
hostname R1
!
int gig0/0
ip addr 192.168.0.1 255.255.255.0
no shut
exit
int gig0/1
ip addr 192.168.1.1 255.255.255.0
no shut
exit
!
end
wr
  • R2
conf t
!
hostname R2
!
int gig0/0
ip addr 192.168.1.2 255.255.255.0
no shut
exit
int gig0/1
ip addr 172.16.1.2 255.255.255.0
no shut
exit
!
end
wr
  • R3
conf t
!
hostname R3
!
int gig0/0
ip addr 172.16.1.3 255.255.255.0
no shut
exit
int gig0/1
ip addr 172.16.2.3 255.255.255.0
no shut
exit
!
end
wr
  • PC-1
ip 192.168.0.254 255.255.255.0 192.168.0.1
save
  • PC-2
ip 172.16.2.254 255.255.255.0 172.16.2.3
save

RIPv1 Configuration

  • R1
conf t
!
router rip
network 192.168.0.0
network 192.168.1.0
exit
!
end
  • R2
conf t
!
router rip
network 192.168.1.0
network 172.16.0.0
exit
!
end
  • R3
conf t
!
router rip
network 172.16.0.0
exit
!
end

Verification

R1#sh ip ro
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

R     172.16.0.0/16 [120/1] via 192.168.1.2, 00:00:16, GigabitEthernet0/1
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/24 is directly connected, GigabitEthernet0/0
L        192.168.0.1/32 is directly connected, GigabitEthernet0/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, GigabitEthernet0/1
L        192.168.1.1/32 is directly connected, GigabitEthernet0/1
R2#sh ip ro
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
C        172.16.1.0/24 is directly connected, GigabitEthernet0/1
L        172.16.1.2/32 is directly connected, GigabitEthernet0/1
R        172.16.2.0/24 [120/1] via 172.16.1.3, 00:00:11, GigabitEthernet0/1
R     192.168.0.0/24 [120/1] via 192.168.1.1, 00:00:07, GigabitEthernet0/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, GigabitEthernet0/0
L        192.168.1.2/32 is directly connected, GigabitEthernet0/0
R3#sh ip ro
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.1.0/24 is directly connected, GigabitEthernet0/0
L        172.16.1.3/32 is directly connected, GigabitEthernet0/0
C        172.16.2.0/24 is directly connected, GigabitEthernet0/1
L        172.16.2.3/32 is directly connected, GigabitEthernet0/1
R     192.168.0.0/24 [120/2] via 172.16.1.2, 00:00:16, GigabitEthernet0/0
R     192.168.1.0/24 [120/1] via 172.16.1.2, 00:00:16, GigabitEthernet0/0
PC-1> ping 172.16.2.254
84 bytes from 172.16.2.254 icmp_seq=1 ttl=61 time=3.712 ms
84 bytes from 172.16.2.254 icmp_seq=2 ttl=61 time=5.158 ms
84 bytes from 172.16.2.254 icmp_seq=3 ttl=61 time=3.441 ms
84 bytes from 172.16.2.254 icmp_seq=4 ttl=61 time=7.612 ms
84 bytes from 172.16.2.254 icmp_seq=5 ttl=61 time=6.033 ms
PC-2> ping 192.168.0.254
192.168.0.254 icmp_seq=1 timeout
192.168.0.254 icmp_seq=2 timeout
84 bytes from 192.168.0.254 icmp_seq=3 ttl=61 time=7.922 ms
84 bytes from 192.168.0.254 icmp_seq=4 ttl=61 time=4.799 ms
84 bytes from 192.168.0.254 icmp_seq=5 ttl=61 time=7.669 ms
R1#sh run | s rip
router rip
 network 192.168.0.0
 network 192.168.1.0
R2#sh run | s rip
router rip
 network 172.16.0.0
 network 192.168.1.0
R3#sh run | s rip
router rip
 network 172.16.0.0

RIPv2 Configuration

  • R1
conf t
!
router rip
version 2
network 192.168.0.0
network 192.168.1.0
exit
!
end
  • R2
conf t
!
router rip
version 2
network 192.168.1.0
network 172.16.0.0
exit
!
end
  • R3
conf t
!
router rip
version 2
network 172.16.0.0
exit
!
end

Verification

R1#sh ip ro
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

R     172.16.0.0/16 [120/1] via 192.168.1.2, 00:00:12, GigabitEthernet0/1
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/24 is directly connected, GigabitEthernet0/0
L        192.168.0.1/32 is directly connected, GigabitEthernet0/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, GigabitEthernet0/1
L        192.168.1.1/32 is directly connected, GigabitEthernet0/1
R2#sh ip ro
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
C        172.16.1.0/24 is directly connected, GigabitEthernet0/1
L        172.16.1.2/32 is directly connected, GigabitEthernet0/1
R        172.16.2.0/24 [120/1] via 172.16.1.3, 00:00:07, GigabitEthernet0/1
R     192.168.0.0/24 [120/1] via 192.168.1.1, 00:00:22, GigabitEthernet0/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, GigabitEthernet0/0
L        192.168.1.2/32 is directly connected, GigabitEthernet0/0
R3#sh ip ro
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C        172.16.1.0/24 is directly connected, GigabitEthernet0/0
L        172.16.1.3/32 is directly connected, GigabitEthernet0/0
C        172.16.2.0/24 is directly connected, GigabitEthernet0/1
L        172.16.2.3/32 is directly connected, GigabitEthernet0/1
R     192.168.0.0/24 [120/2] via 172.16.1.2, 00:00:14, GigabitEthernet0/0
R     192.168.1.0/24 [120/1] via 172.16.1.2, 00:00:14, GigabitEthernet0/0
PC-1> ping 172.16.2.254
84 bytes from 172.16.2.254 icmp_seq=1 ttl=61 time=13.750 ms
84 bytes from 172.16.2.254 icmp_seq=2 ttl=61 time=5.878 ms
84 bytes from 172.16.2.254 icmp_seq=3 ttl=61 time=4.697 ms
84 bytes from 172.16.2.254 icmp_seq=4 ttl=61 time=6.166 ms
84 bytes from 172.16.2.254 icmp_seq=5 ttl=61 time=3.162 ms
R1#sh run | s rip
router rip
 version 2
 network 192.168.0.0
 network 192.168.1.0
R2#sh run | s rip
router rip
 version 2
 network 172.16.0.0
 network 192.168.1.0
R3#sh run | s rip
router rip
 version 2
 network 172.16.0.0

RIPv1, RIPv2 Mixed Configuration

  • R1
conf t
!
router rip
network 192.168.0.0
network 192.168.1.0
exit
!
end
  • R2
conf t
!
router rip
version 2
network 192.168.1.0
network 172.16.0.0
exit
!
int gig0/0
ip rip send version 1
ip rip receive version 1
!
end
  • R3
conf t
!
router rip
version 2
network 172.16.0.0
exit
!
end

Verification

R     172.16.0.0/16 [120/1] via 192.168.1.2, 00:00:16, GigabitEthernet0/1
R1#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

R     172.16.0.0/16 [120/1] via 192.168.1.2, 00:00:11, GigabitEthernet0/1
R2#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
R        172.16.2.0/24 [120/1] via 172.16.1.3, 00:00:17, GigabitEthernet0/1
R3#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

R     192.168.1.0/24 [120/1] via 172.16.1.2, 00:00:24, GigabitEthernet0/0
PC-1> ping 172.16.2.254
172.16.2.254 icmp_seq=1 timeout
172.16.2.254 icmp_seq=2 timeout
172.16.2.254 icmp_seq=3 timeout
172.16.2.254 icmp_seq=4 timeout
172.16.2.254 icmp_seq=5 timeout
  • R2
conf t
!
int gig0/0
ip rip send version 1
ip rip receive version 1
!
end
R1#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

R     172.16.0.0/16 [120/1] via 192.168.1.2, 00:00:18, GigabitEthernet0/1
R2#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
R        172.16.2.0/24 [120/1] via 172.16.1.3, 00:00:07, GigabitEthernet0/1
R     192.168.0.0/24 [120/1] via 192.168.1.1, 00:00:13, GigabitEthernet0/0
R3#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

R     192.168.0.0/24 [120/2] via 172.16.1.2, 00:00:14, GigabitEthernet0/0
R     192.168.1.0/24 [120/1] via 172.16.1.2, 00:00:18, GigabitEthernet0/0
PC-1> ping 172.16.2.254
84 bytes from 172.16.2.254 icmp_seq=1 ttl=61 time=4.175 ms
84 bytes from 172.16.2.254 icmp_seq=2 ttl=61 time=6.074 ms
84 bytes from 172.16.2.254 icmp_seq=3 ttl=61 time=6.265 ms
84 bytes from 172.16.2.254 icmp_seq=4 ttl=61 time=5.837 ms
84 bytes from 172.16.2.254 icmp_seq=5 ttl=61 time=8.169 ms
  • R1
conf t
!
router rip
version 1
exit
!
end
  • R2
conf t
!
int gig0/0
no ip rip send version 1
no ip rip receive version 1
!
end
R1#sh run | sec rip
router rip
 version 1
 network 192.168.0.0
 network 192.168.1.0
R2#sh run | sec rip
router rip
 version 2
 network 172.16.0.0
 network 192.168.1.0
R3#sh run | sec rip
router rip
 version 2
 network 172.16.0.0
R1#clear ip ro *
R1#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set
R2#clear ip ro *
R2#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
R        172.16.2.0/24 [120/1] via 172.16.1.3, 00:00:10, GigabitEthernet0/1
R3#clear ip ro *
R3#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

R     192.168.1.0/24 [120/1] via 172.16.1.2, 00:00:12, GigabitEthernet0/0
  • R1
conf t
!
router rip
no version 1
exit
!
end
R1#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

R     172.16.0.0/16 [120/1] via 192.168.1.2, 00:00:05, GigabitEthernet0/1
R2#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
R        172.16.2.0/24 [120/1] via 172.16.1.3, 00:00:27, GigabitEthernet0/1
R3#sh ip ro rip
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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

R     192.168.1.0/24 [120/1] via 172.16.1.2, 00:00:10, GigabitEthernet0/0

References

tech/network/cisco/basic-rip-config/basic-rip-config.txt · Last modified: 2018/04/28 13:30 by wnoguchi