passive-interface command

Consider the following example network with RIP turned on:

RIP example network

The RIP configuration on R2 looks like this:

router rip
 version 2
 network 10.0.0.0
 network 192.168.0.0

As we’ve already mentioned, the network command does two things:

  • advertises the defined network in RIP.
  • activates RIP on the interfaces whose addresses fall within the specified classful networks.

 

So in the example network above, RIP will also be activated on the interface connected to the workstation on the right. This means that the workstation will also receive RIP updates, which is pointless. To prevent this from happening, the passive interface command is used:

R2(config)#router rip
R2(config-router)#passive-interface Gi0/1

Now, the RIP process will no longer send RIP updates out the Gi0/1 interface. However, all received RIP updates will be processed and the subnet 10.0.0.0/24 will still be advertised.

upravnik