# Set WP as dhcp server

**URL:** <https://forum.legato.io/t/set-wp-as-dhcp-server/2423>\
**Category:** Uncategorized\
**Created:** [April 20, 2017, 2:00pm UTC](https://forum.legato.io/t/set-wp-as-dhcp-server/2423 "2017-04-20T14:00:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmp](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@nmp](https://forum.legato.io/u/nmp)\
**Post date:** [April 20, 2017, 2:00pm UTC](https://forum.legato.io/t/set-wp-as-dhcp-server/2423/1 "2017-04-20T14:00:05Z")

</div>

Hi,

I am trying to set my FX30 (WP8548) to act as a DHCP server on the ethernet interface.

FW is:  
root@fx30:~# legato version  
16.10.1\_f8947ec5fd286f5b9d2c25ebb9ad81a4\_modified  
root@fx30:~# fwupdate query  
Connecting to service …  
Firmware Version: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
Bootloader Version: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
Linux Version: 3.14.29ltsi-a00e464379\_3f15cd39ad #2 PREEMPT Mon Feb 20 11:11:17 PST 2017  
FX30 Version: R13.1.2.004

I have un-commented line 116 in dnsmasq.conf file to lease following IP addresses:  
dhcp-range=192.168.13.100,192.168.13.150,12h

/etc/network/interfaces file lists following:  
auto eth0  
iface eth0 inet static  
address 192.168.13.31  
netmask 255.255.255.0

my iptables rules do allow port 67 and 68:  
-I INPUT -i eth0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT

any idea welcome,

---

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [December 15, 2017, 11:19am UTC](https://forum.legato.io/t/set-wp-as-dhcp-server/2423/2 "2017-12-15T11:19:23Z")

</div>

Hi nmp,  
Please try with the below iptables rule and let me know whether it works or not.

iptables -I INPUT -i eth0 -p udp --dport 67:68 -j ACCEPT

Regards,  
Muralidhara N.
