ip-helper help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 01:04 PM
Hi All,
Hopefully this is in the right place, I'm working on a network redesign which would replace our current Router/Gateway (non-cisco) as the DHCP server and put the Windows AD server in charge of DHCP instead. I've configured ip-helper on the switches (2960X) which works fine IF I have an IP assigned to the SVI of each vlan, the problem is we have ~15 switches and I don't want to have each of them addressed in every vlan. Rather than assigning an IP to the SVI of the vlan can I somehow insert the gateway address into the dhcp request with a dhcp option or something? I've searched and experimented with this for a couple hours but can't find a good solution.
Thanks!
- Labels:
-
Other Networking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 01:19 PM - edited 04-23-2019 01:19 PM
@andrewhancock91 hello,
Well, ip helper is necessary apply it on any interfaces that you need request DHCP. What is the device that provide all networking routing in your design?
Because 2960x is limited to do it.
*** Rate All Helpful Responses ***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 02:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 04:40 PM
*** Rate All Helpful Responses ***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 07:22 AM
I do know that I can use pfSense as a DHCP relay and have done that in the past, the issue I ran in to is that when pfSense starts the DHCP Relay service and it can't reach the DHCP server, such as after a power outage because pfSense boots faster than Windows Server, it essentially shuts down the service and you have to manually restart it after the DHCP Server is available. My other option at this point is to just have pfSense handle DHCP for certain networks but I'd really like to keep DHCP managed from one place instead of multiple.
Thanks!
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 08:10 AM - edited 04-24-2019 08:10 AM
@andrewhancock91 Seb said that you will need configure each vlan with SVI and set ip-helper under it. If your PFSENSE that is routing of all of your VLAN, you will need create DHCP relay on PFSENSE.
" I ran in to is that when pfSense starts the DHCP Relay service and it can't reach the DHCP server, such as after a power outage because pfSense boots faster than Windows Server, it essentially shuts down the service and you have to manually restart it after the DHCP Server is available. "
you can solve it creating a crontab restarting service each 30 minutes as you need. I not suggest for you to configure each switch with each of them with diffrent svi and ip-helper. If and just if you have a L3 device to make routing of your whole network. If no, i suggest you to use PFSENSE as DHCP RELAY appoint to your DHCP SERVER and create a cron to restart this service a each random time.
*** Rate All Helpful Responses ***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 09:42 AM
It is an interesting situation that routing will be handled by pfSense but that you do not want pfSense to do the DHCP or DHCP relay. I believe that @Seb Rupik has given good advice. You need at least one SVI configured per vlan (but not an SVI on each switch) and with ip helper-address configured in the SVI. The client DHCP requests are sent as broadcasts so they should reach the switch with the SVI. And the switch would forward the request to the DHCP server using its configured IP address so the DHCP server would be able to identify the appropriate scope to use.
HTH
Rick
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 01:25 PM
Hi there,
Each VLAN should have at least one gateway configured as an SVI (but not one on each switch). For the DHCP relay to work an IP address is required which is used in the Option 82, this relay agent information informs the DHCP server of the source subnet of the DHCP request and allows it to issue a lease from the correct pool. Without an IP address on the SVI, not only have the packet not be routed but the DHCP relay this system cannot function.
cheers,
Seb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 02:49 PM
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 12:03 AM
Your assertion is correct, you do need an SVI and 'ip helper-address' for each VLAN. Your IP allocation must be pretty tight if you cannot spare a single IP for an SVI ! :)
Could you not configure the pfSense box as the DHCP server if it already has an interface in each VLAN?
Cheers,
Seb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 07:11 AM
Thanks!
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 02:04 PM
Hi @andrewhancock91 ,
I'm sorry if I extend, but I'll try to be very specific.
If you configure an SVI on each L3 switch, you are creating a broadcast domain for each vlan for each switch.
That is, if you have vlan 10 and 20 distributed on each switch, you will have 30 broadcast domains.
Each broadcast domain requires a different DHCP pool.
Now, if you leave only the SVI of VLAN 10 and 20 in a single L3 switch and the other switches communicate with it through trunk links, you will only have 2 broadcast domains and, therefore, you will only need 2 DHCP pools.
As mentioned before, if the DHCP server is part of a vlan, then the DHCP requests will reach the server through broadcast.
VLANs that do not have a DHCP server inside them, must have configured in their SVI the ip helper-address command, pointing to the DHCP server.
Regards
