how to configured two routers cisco 1841 DHCP configuration
To configure two Cisco 1841 Integrated Services Router routers with DHCP, you can use one router as the DHCP Server and the second router as a normal routed device.
Network Example
Topology
PC1 ----- Router1 ----- Router2 ----- PC2
IP Address Plan
| Device | Interface | IP Address |
|---|---|---|
| Router1 | FastEthernet0/0 | 192.168.1.1/24 |
| Router1 | Serial0/0/0 | 10.0.0.1/30 |
| Router2 | Serial0/0/0 | 10.0.0.2/30 |
| Router2 | FastEthernet0/0 | 192.168.2.1/24 |
Router1 will provide DHCP addresses for LAN1.
Step 1: Connect the Routers
Use:
Console cable for configuration
Serial DCE/DTE cable between routers
Straight-through cable from PCs to routers
Step 2: Configure Router1
Enter privileged mode:
enable
configure terminal
Configure Interfaces
interface fastethernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
interface serial0/0/0
ip address 10.0.0.1 255.255.255.252
clock rate 64000
no shutdown
exit
Step 3: Configure DHCP on Router1
Exclude gateway address:
ip dhcp excluded-address 192.168.1.1
Create DHCP pool:
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
Step 4: Configure Router2
enable
configure terminal
Configure Interfaces
interface fastethernet0/0
ip address 192.168.2.1 255.255.255.0
no shutdown
exit
interface serial0/0/0
ip address 10.0.0.2 255.255.255.252
no shutdown
exit
Step 5: Configure Static Routing
On Router1
ip route 192.168.2.0 255.255.255.0 10.0.0.2
On Router2
ip route 192.168.1.0 255.255.255.0 10.0.0.1
Step 6: Configure PC1 for DHCP
On PC1:
Open Network Settings
Select TCP/IP
Choose:
Obtain an IP address automatically
PC1 should receive:
IP Address: 192.168.1.x
Gateway: 192.168.1.1
Step 7: Verify DHCP
On Router1:
show ip dhcp binding
To verify DHCP pool:
show ip dhcp pool
To verify interfaces:
show ip interface brief
Step 8: Test Connectivity
From PC1:
ping 192.168.1.1
ping 10.0.0.2
ping 192.168.2.1
If replies are received, the configuration is successful.
Save Configuration
On both routers:
copy running-config startup-config
Complete Router1 Configuration
enable
configure terminal
interface fastethernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
interface serial0/0/0
ip address 10.0.0.1 255.255.255.252
clock rate 64000
no shutdown
ip dhcp excluded-address 192.168.1.1
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
ip route 192.168.2.0 255.255.255.0 10.0.0.2
end
Complete Router2 Configuration
enable
configure terminal
interface fastethernet0/0
ip address 192.168.2.1 255.255.255.0
no shutdown
interface serial0/0/0
ip address 10.0.0.2 255.255.255.252
no shutdown
ip route 192.168.1.0 255.255.255.0 10.0.0.1
end