cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
356
Views
2
Helpful
8
Replies

Can the DHCP server assign the IP address to the Inter-VLAN?

mrsugabz
Level 1
Level 1

Hi everyone, I'm a newbie here, looking for instructions.

As far as i know, DHCP relay is used when we wants assign the DHCP address to subnet of internetwork. But what if the hosts is in the VLAN? Is it possible for DHCP assigning their address to VLAN through network? 

Here's the topology if you need it to understand what I'm talking about..(sorry for my bad english):
DHCP SERVER.jpg

 I wanna know what should I learn to solves this task. Please help me guys.

8 Replies 8

marce1000
VIP
VIP

 

  - You need to keep the concept simple : DHCP relay is defined  as a vlan property to let the hosts on that vlan find a dhcp server , 
if there is no local dhcp server on the vlan/subnet.

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Martin L
VIP
VIP

You can attach PT file here but it must be in a zip format;

Also check CLN community PT and CCNA forums at

https://learningnetwork.cisco.com/s/communities

https://learningnetwork.cisco.com/s/topic/0TO3i0000008jYHGAY/ccna-certification-community

https://learningnetwork.cisco.com/s/topic/0TO6e000000WEorGAG/packet-tracer

Regards, ML
**Please Rate All Helpful Responses **

M02@rt37
VIP
VIP

Hello @mrsugabz 

DHCP server on a different subnet/vlan than hosts ? So, DHCP relay is needed ! WHy ? because routers drop broadcast request by definition. So, the command DHCP RELAY or ip helper-address permit to "transform" the Broadcast DHCP request with a UNICAST DHCP IP packet.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

I'm sorry, but I'm not quite sure I understand what you mean (my English is a bit rusty). Could you please explain again in simpler terms for a beginner like me about what do you mean about the DHCP relay transforming a broadcast request with unicast IP?

liviu.gheorghe
Spotlight
Spotlight

Hello @mrsugabz ,

yes, a single DHCP server configured with multiple scopes - one for each vlan, can be used to assign IP addresses to hosts configured in different vlans.

What you will need in terms of configuration is the command ip helper-address <DHCP server IP address> configured on interface FastEthernet 0/1 of each 2911 router.

Hope this helps.

Regards, LG
*** Please Rate All Helpful Responses ***

So the DHCP pool configuration must be at least four right? For each vlan. 

When I get to the task, I'll be looking into how to configure the "DHCP relay" before. (https://www.computernetworkingnotes.com/ccna-study-guide/how-to-configure-dhcp-relay-agent-on-cisco-routers.html). 

But in that tutorial, they're not assigning the DHCP to hosts in the VLAN. Instead, it's just for the subnetwork (the switches)..
So here I'm wondering what additional commands I should use on the router so that the hosts on the VLAN can get their IP addresses from DHCP.

The tutorial you have doesn't seem to follow the network topology you have.

Regards, LG
*** Please Rate All Helpful Responses ***

Martin L
VIP
VIP

DHCP and relay explained on Wikipedia, see section Relaying https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol

The relay agent stores its own IP address, from the interface on which it has received the client's broadcast, in the GIADDR field of the DHCP packet. The DHCP server uses the GIADDR-value to determine the subnet, and subsequently the corresponding address pool, from which to allocate an IP address.

Regards, ML
**Please Rate All Helpful Responses **

Review Cisco Networking for a $25 gift card