Router Rip Command on CISCO Router/Switch

Command

Router Rip

Use

The router rip command is necessary to enable RIP. RIP must be enabled before carrying out any of the RIP commands.

Syntax

R1(config)#router rip

Example

The following example demonstrates the router rip command. First, the show ip route command is issued to help determine the network layout.

R1#sh ip route
Codes: 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 routeGateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 2 subnets
C 10.1.1.0 is directly connected, FastEthernet0/0
R1#

Next, router rip is configured on R1.

R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto
R1(config-router)#network 10.1.1.0
R1(config-router)#exit
R1(config)#exit
R1#

After that, it is configued on R2.

R2(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto
R2(config-router)#network 10.1.1.0
R2(config-router)#exit
R2(config)#exit
R2#

Now, if we type show ip route we see that RIP is enabled and sending routes

R1#sh ip route
Codes: 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 routeGateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 2 subnets
R 10.2.2.0 [120/1] via 10.1.1.2, 00:00:06, FastEthernet0/0
C 10.1.1.0 is directly connected, FastEthernet0/0
R1#
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x