[Day 7] 3. RIP Configuration
RIP Configuration Scenario
Network Setup
- Router A:
- ,
172.16.10.1/24202.208.220.1/24
- Router B:
- ,
172.16.20.2/24172.16.30.1/24
RIP Configuration
-
On Router A:
A(config)# router rip A(config-router)# network 172.16.0.0 A(config-router)# network 202.208.220.0 -
On Router B:
B(config)# router rip B(config-router)# network 172.16.0.0
Result
- Router A advertises and
172.16.10.0/24to Router B.202.208.220.0/24 - Router B advertises and
172.16.20.0/24to Router A.172.16.30.0/24 - Both routers now share routing information for traffic routing.
RIP Communication Overview
-
Configuration:
Both routers are configured to use RIP to advertise their respective networks. -
Advertisement:
- Router A advertises the network to Router B.
172.16.10.0/24 - Router B advertises the network to Router A.
172.16.30.0/24
- Router A advertises the
-
Data Packets:
The RIP control packet contains network information, including network IDs and hop counts. When Router B receives this packet from Router A, it updates its routing table and learns the next hop (Router A's IP address) to reach Router A’s networks. -
Routing Tables:
- Router A learns about through Router B.
172.16.30.0/24 - Router B learns about through Router A.
172.16.10.0/24
- Router A learns about
-
Periodic Updates:
RIP sends updates every 30 seconds to keep the routing tables current and up-to-date.
Passive-Interface Configuration
RIP can be configured to stop sending updates on certain interfaces using the
passive-interface-
Example Configuration:
Suppose Router A is connected to a networkand Router A doesn't want to send RIP updates on the interface connected to this network but still wants to receive updates.202.208.220.0A(config)# router rip A(config-router)# passive-interface g0/0 A(config-router)# network 202.208.220.0 A(config-router)# passive-interface g0/2This configuration tells Router A not to send RIP updates on interface
but still advertise theg0/0network. It will also stop sending RIP updates out of interface202.208.220.0.g0/2
Important Note
- The command is essential to enable RIP on an interface, even when
networkis used to stop sending updates on that interface.passive-interface - The command does not block data traffic. Data packets will still pass through the interface as usual, but RIP updates will not be sent out of the interface.
passive-interface - When is used, RIP updates will not be passed to another router, but the router will still accept updates from the other router.
passive-interface
Example Scenario: Passive-Interface
-
Network Setup:
Router A is connected to Router B, forming a simple two-router setup:.A <--> B -
Configuration on Router A:
- Apply to the interface that connects to Router B. This will prevent Router A from sending RIP updates to Router B.
passive-interface
A(config)# router rip A(config-router)# passive-interface g0/0 A(config-router)# network 172.16.10.0 - Apply
-
Explanation:
- Router A will not send RIP updates out of (interface connected to Router B) but will still receive RIP updates from Router B on that interface.
g0/0 - Router B will continue to send and receive RIP updates normally.
- Router A will not send RIP updates out of
Read Next
[Day 7] 4. Drawbacks Of RIP
### 1. **Pinhole Congestion** - **Issue**: RIP relies on hop count to route traffic, without considering factors like **bandwidth or path load**. T...
[Day 7] 5. RIP v1 and v2
| **RIP v1** | **RIP v2** | | ------------------------------------------ | -----...