Configure router to work as DHCP server for the networks which are not directly connected to that router.

We have already completed the task of assigning ip to the computer by the Dhcp server, to the networks which are directly connected to that router.Now we assign ip with the help of dhcp server to the networks which are not directly connected to that router. Generally on configuring dhcp pool for networks on a router does not help in providing ip dynamically to the network. we just have to apply few commands on the routers.

For demo i have made a network:-configure router as dhcp server

Firstly, we assign ip to the routers and configure static routing on routers.

  1. For command line click here .
  2. for graphical process click here .

now we create pool for the networks in command line:-

here i am creating router0 as dhcp server. so, apply these commands on router0 in configuration mode. here default-router is the ip of the port of the router which is connected to that network.

Router(config)#ip dhcp pool pool1

Router(dhcp-config)#network 1.0.0.0 255.0.0.0

Router(dhcp-config)#default-router 1.0.0.1

Router(dhcp-config)#exit

Router(config)#ip dhcp pool pool3

Router(dhcp-config)#network 3.0.0.0 255.0.0.0

Router(dhcp-config)#default-router 3.0.0.1

Router(dhcp-config)#exit

Router(config)#ip dhcp pool pool5

Router(dhcp-config)#network 5.0.0.0 255.0.0.0

Router(dhcp-config)#default-router 5.0.0.1

Router(dhcp-config)#exit

Here (pool1/pool3/pool5) are the name of pool according to their network. but you can put any name to the pool. And default-router is the ip of the port of the router which is connected to that network directly.

Now go to router1 ,router2 and apply commands on the interface which is connected to that network and helper-address is the address of the port of router which is created as dhcp server and connects all the networks of this side to the router.

On Router1

 

Router(config)#int fa0/0

Router(config-if)#ip helper-address 2.0.0.1

On router2

Router(config)#int fa0/0

Router(config-if)#ip helper-address 2.0.0.1

Now go to the computer and assign ip by dhcp. the system will automatically take ip as you have configured the pool.

For any queries related to this article comment in the comment box down below.

Leave a Reply

Fill in your details below or click an icon to log in:

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