Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure a Passive RIP Interface

Network Requirements

  • RIPv2 runs between Device1 and Device2 for route interaction.
  • On Device1, configure a passive interface which does not send update packets to Device2.

Network Topology

Networking for Configuring an RIP Passive Interface

Figure 5-8 Networking for Configuring an RIP Passive Interface

Configuration Steps

Step 1: Create VLANs, and add ports to the required VLANs. (Omitted)

Step 2: Configure IP addresses for the ports. (Omitted)

Step 3: Configure RIP.

#Configure Device1.

Device1#configure terminal
Device1(config)#router rip
Device1(config-rip)#version 2
Device1(config-rip)#network 1.0.0.0
Device1(config-rip)#network 100.0.0.0
Device1(config-rip)#exi

#Configure Device2.

Device2#configure terminal
Device2(config)#router rip
Device2(config-rip)#version 2
Device2(config-rip)#network 1.0.0.0
Device2(config-rip)#network 50.0.0.0
Device2(config-rip)#exit

#Query the routing table of Device1.

Device1#show ip route 
Codes: C - Connected, L - Local, S - static, R - RIP, B - BGP, i-ISIS 
       U - Per-user Static route 
       O - OSPF, OE-OSPF External, M - Management, E - IRMP, EX - IRMP external 
 
C 1.0.0.0/24 is directly connected, 00:23:06, vlan3 
R 50.0.0.0/24 [120/1] via 1.0.0.2, 00:13:26, vlan3 
C 100.0.0.0/24 is directly connected, 00:23:06, vlan2
C 127.0.0.0/8 is directly connected, 76:51:00, lo0

#Query the routing table of Device2.

Device2#show ip route 
Codes: C - Connected, L - Local, S - static, R - RIP, B BGP, i-ISIS 
       U - Per-user Static route 
       O - OSPF, OE-OSPF External, M - Management, E - IRMP, EX - IRMP external 
 
C 1.0.0.0/24 is directly connected, 00:23:06, vlan2 
C 50.0.0/24 is directly connected, 00:23:06, vlan3
R 100.0.0.0/24 [120/1] via 1.0.0.1, 00:13:26, vlan2
C 127.0.0.0/8 is directly connected, 76:51:00, lo0

Step 4: Configure a passive interface.

#Configure Device1.

Device1(config)#router rip
Device1(config-rip)#passive-interface vlan3
Device1(config-rip)#exit

VLAN3 of Device1 is configured as a passive interface which does not send update packets to Device2, but Device2 can still receive update packets.

Step 5: Check the result.

#Query the routing table of Device1.

Device1#show ip route 
Codes: C - Connected, L - Local, S - static, R - RIP, B - BGP, i-ISIS 
       U - Per-user Static route 
       O - OSPF, OE-OSPF External, M - Management, E - IRMP, EX - IRMP external 
 
C 1.0.0.0/24 is directly connected, 00:23:06, vlan3 
R 50.0.0.0/24 [120/1] via 1.0.0.2, 00:13:26, vlan3 
C 100.0.0.0/24 is directly connected, 00:23:06, vlan2
C 127.0.0.0/8 is directly connected, 76:51:00, lo0

Route 50.0.0.0/24 is still kept on Device1. On Device2, after the RIP route times out and is deleted, route 100.0.0.0/24 is deleted from the routing table.

#Query the routing table of Device2.

Device2#show ip route 
Codes: C - Connected, L - Local, S - static, R - RIP, B BGP, i-ISIS 
       U Per-user Static route 
       O - OSPF, OE-OSPF External, M - Management, E - IRMP, EX IRMP external 
 
C 1.0.0.0/24 is directly connected, 00:25:06, vlan2
C 50.0.0/24 is directly connected, 00:25:06, vlan3
C 127.0.0.0/8 is directly connected, 77:51:00, lo0