D-Link Forums

D-Link VPN Router => DSR-250N => Topic started by: tolli on December 06, 2014, 04:23:55 AM

Title: Need help to configure DHCP relay
Post by: tolli on December 06, 2014, 04:23:55 AM
Hi

I am trying to configure DHCP relay on my DSR-250N. I want to relay clients that are connected wirelessly to DHCP servers on the wired network.

Let me explain my setup:

- I have configured VLANS, the wireless interface is on VLAN 5 and the DHCP servers are on the default VLAN
- VLAN 5 is 172.16.3.0/24 and VLAN 1 is 172.16.0.0/24
- The DHCP servers are running Windows Server 2012 R2 and are configured in DHCP failover mode (load balanced)
- I have configured scopes for the appropriate networks on the DHCP servers

My key questions are:

What is the "Relay gateway" field supposed to be? The documentation and help file does not contain very much information on this. Is this supposed to be the gateway for VLAN 5 or VLAN 1? Or is it supposed to be the IP address for the DHCP server(s)?

What mode should the ports be set to, trunk, general or access? And what VLAN memberships should be set on the ports involved?

I have tried a lot of different combinations, but the clients that are connected wirelessly are unable to obtain IP addresses.

Any help/replies is greatly appreciated.

Thank you.
Title: Re: Need help to configure DHCP relay
Post by: PacketTracer on December 06, 2014, 07:22:00 AM
Hi,

I'm not a user of a DSR-250N, but from my understanding when looking at the relevant parts of the manual (ftp://ftp2.dlink.com/PRODUCTS/DSR-250N/REVA/DSR-SERIES_REVA2_MANUAL_2.00_EN.PDF) (pages 25-29) I would configure the following:

Add a VLAN 5 for your wireless subnet 172.16.3.0/24 - according to the top image on page 26:

Inside "Network > VLAN Settings > Port VLAN" I would assign the corresponding Wireless WLAN the mode "Access" with PVID 5.

PT
Title: Re: Need help to configure DHCP relay
Post by: tolli on December 06, 2014, 08:53:43 AM
Hi and thanks for the reply.

I have configured VLAN 5 exactly like you describe, except for the default gateway, which is on 172.16.3.254. Options in the DHCP scope are also configured accordingly.

The relay gateway can only hold one IP address, which makes it hard to configure multiple DHCP servers. Currently I have disabled failover for this scope.

After I set the wireless interface to "Access" and the corresponding VLAN id, like you described, I actually see DHCP leases being assigned in the DHCP server console, but the devices are still not getting IP addresses.

I will try to install Wireshark and sniff the network traffic later, to see if I can understand whats going on. Are there any log files on the DSR that I can examine?

Btw, here is a link to the latest version of the manual: http://www.dlink.com/-/media/Business_Products/DSR/DSR%20250N/Manual/DSR-250N_Manual_EN_UK.pdf (http://www.dlink.com/-/media/Business_Products/DSR/DSR%20250N/Manual/DSR-250N_Manual_EN_UK.pdf)

Edit: Fixed a typo.
Title: Re: Need help to configure DHCP relay
Post by: PacketTracer on December 06, 2014, 09:13:07 AM
Hi,

so, to summarize for a common understanding:

172.16.3.254 is ...

Can your DHCP server reach this address (ping test)? The DHCP server either needs a default gateway = DSR-250N interface address on VLAN 1 (172.16.0.?) or a static route for 172.16.3.0/24 with next hop being the DSR-250N interface address on VLAN 1 (172.16.0.?).

My manual link refers to the latest firmware version 2.x, available in the US but not in the UK. The  main difference concerning the relevant configuration according to pages 23-28 of your UK version seems to be the need to explicitely enable "Inter VLAN Routing", leaving unanswered the question if this feature is implicitely enabled for default VLAN 1 (it should, to make your scenario work).

PT