Here is a simple step-by-step guide to configure two Cisco 1841 routers with dynamic IP addressing and routing using DHCP + RIP (dynamic routing).
🔧 Network Example
PC1 ---- R1 -------- R2 ---- PC2
(Fa0/0) (Fa0/1)
| Device | Interface | IP Type |
|---|---|---|
| R1 Fa0/0 | LAN | DHCP Server |
| R1 Fa0/1 | WAN | Static |
| R2 Fa0/0 | LAN | DHCP Server |
| R2 Fa0/1 | WAN | Static |
🧰 Step 1: Connect Devices
Connect PC → Router using Ethernet cable
Connect Router R1 → Router R2 using crossover cable
Connect console cable to configure routers
⚙️ Step 2: Configure Router R1
1. Enter configuration mode
enable
configure terminal
2. Configure LAN Interface (Fa0/0)
interface fastethernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
3. Configure WAN Interface (Fa0/1)
interface fastethernet0/1
ip address 10.0.0.1 255.255.255.252
no shutdown
exit
4. Configure DHCP on R1
ip dhcp pool LAN1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
exit
Exclude gateway IP:
ip dhcp excluded-address 192.168.1.1
⚙️ Step 3: Configure Router R2
1. Enter configuration mode
enable
configure terminal
2. Configure LAN Interface (Fa0/0)
interface fastethernet0/0
ip address 192.168.2.1 255.255.255.0
no shutdown
exit
3. Configure WAN Interface (Fa0/1)
interface fastethernet0/1
ip address 10.0.0.2 255.255.255.252
no shutdown
exit
4. Configure DHCP on R2
ip dhcp pool LAN2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 8.8.8.8
exit
Exclude gateway IP:
ip dhcp excluded-address 192.168.2.1
🔁 Step 4: Configure Dynamic Routing (RIP)
👉 Configure on both routers
On R1:
router rip
version 2
no auto-summary
network 192.168.1.0
network 10.0.0.0
exit
On R2:
router rip
version 2
no auto-summary
network 192.168.2.0
network 10.0.0.0
exit
💻 Step 5: Configure PCs
Set PC1 and PC2 to DHCP (Automatic IP)
They will receive IP addresses automatically
✅ Step 6: Verify Configuration
Check IP:
show ip interface brief
Check routing:
show ip route
Test connectivity:
ping 192.168.2.1
From PC1 → Ping PC2 ✅
🎯 Expected Result
PC1 gets IP:
192.168.1.xPC2 gets IP:
192.168.2.xBoth PCs can communicate using dynamic routing (RIP)
🚀 Bonus Tips
Use
debug ip ripto troubleshootUse
show ip dhcp bindingto check DHCP clientsSave config:
write memory
If you want, I can also give:
✅ Packet Tracer file
✅ OSPF configuration (better than RIP)
✅ Full lab diagram with IP table
Just tell me 👍
