Router as a multiple DHCP SERVER

Posted: March 28, 2015 in CCNA

Learn how to configure multiple dhcp server on single router.See the below lab diagram and learn how to configure more than one DHCP pool on a router.After reading this article you will be able to configure multiple dhcp server on a single router.

multiple dhcp server

 

Here in this lab we have configured two dhcp server on both routers.Hence this article will help you understand how to configure multiple dhcp server on single router.

 

Configuration on Router  R1:

— System Configuration Dialog —

Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#int fa0/0
R1(config-if)#ip address 172.24.0.1 255.255.0.0
R1(config-if)#no shut

R1(config-if)#exit
R1(config)#int fa0/1
R1(config-if)#ip address 172.25.0.1 255.255.0.0
R1(config-if)#no shut

R1(config-if)#exit
R1(config)#int eth0/0/0
R1(config-if)#ip address 172.26.0.1 255.255.0.0
R1(config-if)#no shut

R1(config-if)#exit
R1(config)#ip dhcp pool Sw1
R1(dhcp-config)#network 172.24.0.0 255.255.0.0
R1(dhcp-config)#default-router 172.24.0.1

R1(dhcp-config)#exit
R1(config)#ip dhcp pool Sw2
R1(dhcp-config)#network 172.25.0.0 255.255.0.0
R1(dhcp-config)#default-router 172.25.0.1
R1(config)#ip route 172.27.0.0 255.255.0.0 172.26.0.2
R1(config)#ip route 172.28.0.0 255.255.0.0 172.26.0.2

 

Configuration on Router R2:

— System Configuration Dialog —

Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#int fa0/0
R2(config-if)#ip address 172.27.0.1 255.255.0.0
R2(config-if)#no shut

R2(config-if)#exit
R2(config)#int fa0/1
R2(config-if)#ip address 172.28.0.1 255.255.0.0
R2(config-if)#no shut

R2(config-if)#exit
R2(config)#int eth0/0/0
R2(config-if)#ip address 172.26.0.2 255.255.0.0
R2(config-if)#no shut

R2(config-if)#exit
R2(config)#ip dhcp pool Sw3
R2(dhcp-config)#network 172.27.0.0 255.255.0.0
R2(dhcp-config)#default-router 172.27.0.1

R2(dhcp-config)#exit
R2(config)#ip dhcp pool Sw4
R2(dhcp-config)#network 172.28.0.0 255.255.0.0
R2(dhcp-config)#default-router 172.28.0.1
R2(config)#ip route 172.24.0.0 255.255.0.0 172.26.0.1
R2(config)#ip route 172.25.0.0 255.255.0.0 172.26.0.1

 

TROUBLESHOOTING DHCP:

Testing DHCP Troubleshooting commands on Router R!
R1>show ip dhcp binding
IP address Client-ID/ Lease expiration Type
Hardware address
172.24.0.2 0040.0B90.14D3 — Automatic
172.24.0.3 0040.0BD5.E9E9 — Automatic
172.25.0.2 0001.9717.C424 — Automatic
172.25.0.3 000C.8507.E24A — Automatic

 

Comments

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s