can a helper ip address and a ip address of a vlan be the same?

knfitz
knfitz used Ask the Experts™
on
is it possible to use the same ip address for the helper ip and the ip address of a vlan?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Network and Security consultant
Commented:
Yes, but it makes no sense.

Lets say that your clients are on subnet 192.168.1.0/24 and your "vlan interface" is 192.168.1.1. What happens when a client wants an ip-address is that he sends a broadcast requesting contact with an dhcp-server. Since broadcasts are on the same subnet only, the dhcp-server needs to be on that subnet. Your router/switch can ofcours be the dhcp-server and since 192.168.1.1 is on the same subnet, all you have to do is to enable the dhcp-scope in the server.

On the other hand, if the dhcp server is elsewhere, what you do then is to put an ip helper in any device on the local subnet (for example you router/switch 192.168.1.1, and tell it to forward all dhcp-requests coming in as broadcasts, and forward them as plain unicasts to the dhcp-server defined. For example:

interface vlan 168
 ip address 192.168.1.1 255.255.255.0
 ip helper-address 192.168.2.10

If you have a config like this:

interface vlan 168
 ip address 192.168.1.1 255.255.255.0
 ip helper-address 192.168.1.1

All you do is to say "take all incoming dhcp broadcasts and forward them to myself" which is totally uneccecary, since the router/switch will catch the requests anyway.

Does this explain what you wanna know?

Best regards
Kvistofta

Author

Commented:
So you're saying it will work either way and all I really need is an ip address on the Vlan? My dhcp server is at another site. So I give the vlan a ip address and then create a dhcp scope on my dhcp server for that range and dhcp will know what to do?
Jimmy Larsson, CISSP, CEHNetwork and Security consultant

Commented:
Yes, that´s basically it.

/Kvistofta

Author

Commented:
I have this set on my core switch. Do I need to set an ip address on the vlan ids for my closet switches also?
Jimmy Larsson, CISSP, CEHNetwork and Security consultant

Commented:
Nope.

/Kvistofta

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial