05-16-2019 04:52 AM - edited 05-16-2019 05:00 AM
I am trying to give IP addresses to my PCs through the DHCP server. The problem is that the PCs attached with in the network of the DHCP server have been successfully assigned IP but those that are in other network are unsuccessful. Please help me.
Password is ahmad and for configuring password is class.
Solved! Go to Solution.
05-16-2019 05:34 AM
05-16-2019 04:59 AM
Hi there,
You need to configure ip helper-address for the other layer interfaces:
! int vlan 100 ip helper-address <ip_of_dhcp_server> !
cheers,
Seb.
05-16-2019 05:03 AM
05-16-2019 05:13 AM
Hello,
you need to customize the command for your scenario.
The command enabled the DHCP relay function and it is needed on each L3 interface in interface mode that is not the one where the DHCP server is connected to.
When multiple routers are involved you need it on each user facing L3 interface that is not the one where the DHCP server connects.
The DHCP relay function makes the DHCP request routable by changing the destination address from broadcast 255.255.255.255 to unicast IP address of the DHCP server specified in the ip helper command.
Hope to help
Giuseppe
05-16-2019 05:17 AM
05-16-2019 05:38 AM - edited 05-16-2019 05:43 AM
Hello,
first of all, follow George's suggestions about creating multiple scopes on DHCP server.
When a PC client boots it tries to get an IP address by sending out a DHCP request packet with destination = broadcast = 255.255.255.255.
This packet is flooded to all devices in the same broadcast domain = IP subnet.
If the DHCP server is connected there it can answer directly.
IF the DHCP server is in a different IP subnet = different broadcast domain the client DHCP request cannot reach it.
If there is a router in the middle the router wil not route a packet with broadcast destination.
A router is a broadcast firewall is written in several books!
In order to avoid the need to setup a DHCP server for each Vlan/ IP subnet, the DHCP relay feature can be used.
When a router configured with an ip helper-address 10.1.1.1 (under an interface) command receive a DHCP request with broadcast destination it makes changes to make the packet routable to the DHCP server.
destination address 255.255.255.255 ---> 10.1.1.1 = DHCP server address
source IP address is changed to the router IP address of the interface in the path to the DHCP server
an internal field is set to the IP address of the router interface that received the original packet.
This allows the DHCP server to find the right scope ( right address pool) for picking up an available address that is in the correct IP subnet.
Hope to help
Giuseppe
05-16-2019 05:09 AM
Hello,
what are you trying to accomplish ? Your DHCP server has only one scope, but your PCs are on different networks. If you want to assign IP addresses, you need to define the scopes first, and then, as indicated, configure IP helper addresses...
05-16-2019 05:10 AM
05-16-2019 05:34 AM
Hello,
I'll send the revised lab over...
05-16-2019 06:15 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide