Here we are going to see, how to configure DHCP for multiple netowrks .Can we get ip address from DHCP that is prensent in other network? yes we can.Lets see how to do with help of 'ip helper-address'.

Step 1:Create a topology like this,

step 2:Configure the router interface fastethernet0/0 and fastethernet 0/1 with ip address .

Router#config terminal
Router(config)#interface fastethernet0/0
Router(config-if)#ip address
Router(config-if)#no shutdown

Router(config)#interface fastethernet0/1
Router(config-if)#ip address
Router(config-if)#no shutdown

Step 3:Click on server->config->then just give the gateway ip address .Gateway for this network is

Step 4:Then click on fastethernet assign ip address.I am going to give and subnetmask we have configured the ip address for the server,DHCP server automatically assign 10 network for default pool.We don't have to create pool for 10 Network again.Just we need to give ip for DNS,Gateway and TFTP then we may configure starting ip address or leave it and Save.

Step 5:Now,Click on Pc in a LAN with Server and Check whether DHCP working fine in this network.Click on any PC->Desktop->Ip configuration->Choose DHCP,then you will get ip from dhcp server for this PC.

Step 6:Now,we see how to get ip address for PC that is in a network without Server.For that, first we have to add network pool in a dhcp server.
So,Click on Server->Config->DHCP.

Step 7:Just edit Pool Name with any other name.I am going to give 20Network.

Default Gateway->,
DNS Server->
Start Ip Address->
Subnet Mask->
Maximun Number Of Users->100
TFTP Server10.0.0.2

Then,Click on Add and Save.

Setp 8:Now go to router and give ip helper address under fastethernet0/1,that is server address here our server address is we can get ip for this network also

In Router,(Global configuration mode)

Router(config)#interface fastethernet0/1
Router(config-if)#ip helper-address

Step 9:Now,check whether PC from network without server getting ip from the DHCP server in another Network.Click on any PC->Desktop->Ip configuration->Choose DHCP.Now i got ip address from dhcp server.

I am getting ip address from dhcp server..thats it.

Post a Comment