how to configured two routers cisco 1841 DHCP configuration

 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

DeviceInterfaceIP Address
Router1FastEthernet0/0192.168.1.1/24
Router1Serial0/0/010.0.0.1/30
Router2Serial0/0/010.0.0.2/30
Router2FastEthernet0/0192.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:

  1. Open Network Settings

  2. Select TCP/IP

  3. 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
Popup Iframe Example
Email This BlogThis! Share to X Share to Facebook Share to Pinterest

Post a Comment

Previous Post Next Post