RIP- Part 7 - NETWORK COMMAND ISSUE

Network Command Issue


Figure - 1 


In Figure - 1 I am going to use these two router R1 and R2. I have configured on both RIPv2, According to Figure-1 R1 is supposed to learn about 172.16.0.0/24 but look at the output there is no 172.16.0.0/24 .

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

     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, FastEthernet0/1
C    192.168.20.0/24 is directly connected, FastEthernet0/0

If you will notice in above output then you will find two directly connected route, 192.168.20.0 for R2 router and 10.1.1.0 for PC1, but there is no any RIP route with network 172.16.10.0 for PC2.

Note ;- You can also use Show ip route rip command to check this, Show ip route rip command only display the RIP route information. 

So now let's check what is problem

R1#Show ip protocol
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 4 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 2, receive 2
  Interface             Send  Recv  Triggered RIP  Key-chain
  FastEthernet0/1       2     2     
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
 10.0.0.0
 192.168.30.0   ........................................................         INCORRECT  NETWORK
Passive Interface(s):
Routing Information Sources:
 Gateway         Distance      Last Update
 192.168.20.2         120      00:00:55
Distance: (default is 120)

R2#Show ip protocol
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 22 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 2, receive 2
  Interface             Send  Recv  Triggered RIP  Key-chain
  FastEthernet0/0       2     2     
  FastEthernet0/1       2     2     
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
 172.16.0.0
 192.168.20.0
Passive Interface(s):
Routing Information Sources:
 Gateway         Distance      Last Update
 192.168.20.1         120      00:05:01
Distance: (default is 120)



RIPv2 has been enabled on both router, but take a close look at the "Show ip protocol" output of the R1. R1 has an incorrect network 192.168.30.0/24.

Let's fix it.

R1#config t
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no network 192.168.30.0
R1(config-router)#network 192.168.20.0   .........................CORRECT NETWORK COMMAND

Now check 

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

     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, FastEthernet0/1
R    172.16.0.0/16 [120/1] via 192.168.20.2, 00:00:25, FastEthernet0/0   ..........     SEE THIS         
C    192.168.20.0/24 is directly connected, FastEthernet0/0


Now problem has been solved, so make sure the correct network command has been used..


SHARE

Anubhav Upadhyay

Hello and welcome to networktopic Blog. My name is Anubhav. I am a Senior Network Egineer. I have created this blog specially to serve interview questions and answer on Network Routing and Switching, I will try my best to serve correct and updated networking knowledge for you as per my corporate experience.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

If you like my posts then please comment and if you don’t like then please suggest me to improve, and if you have any query related to post then please text me through the comment box or mail me on upadhyayambition@gmail.com , I will try my best to solve your queries as soon as possible.