Switches, Hubs, and Modems
Showing results for 
Search instead for 
Did you mean: 

dhcp & vlan

Occasional Contributor

dhcp & vlan


i have dhcp server & three vlan created

vlan 6 getting ip from dhcp is
vlan 7 getting ip from dhco is
vlan 8 getting ip from dhco is

In dhcp i have configured three scope associated with three vlan.

in core switch for inter vlan routring i have configured svi.

In svi i typed command ip helper-address which is my dhcp server

It works fine but my question is how different vlan getting different scope range from dhcp server.how dhcp know about that?

ip helper-address command is for allowing broadcast.

can someone can describe me about how thing is work?

Matt Hobbs
Honored Contributor

Re: dhcp & vlan

The ip helper-address changes the broadcast packet into a unicast packet towards to the DHCP server. It also inserts a GIADDR option into the packet which tells the DHCP server which subnet it needs to give an IP address for.
Occasional Contributor

Re: dhcp & vlan

can u explain more about that.one by one step.
like machine in vlan 6 is broadcast for ip address & it is broadcasting in vlan 6 & vlan 6 has ip address & then What happan?


Occasional Visitor

Re: dhcp & vlan

The broadcast is converted to a unicast by the switch, directed towards the address mentioned by the ip helper-address. This unicast packet contains the the GIADDR field which tells the DHCP server the scope from which to assign an IP address. This reply is then sent as an unicast to the device which sent the request broadcast initailly.

Hope this answers your question.