Post by stefanried on Mar 27, 2010 18:00:39 GMT 7
Hi,
especially when you are behind a Cable Modem, it makes sense to replace a slower router and DHCP server with the built-in functionality of the N3200Pro.
However if you use the N3200Pro as DHCP server and router for your home network, some key features are missing. One was the ability to define virtual server which is described here thecususergroup.proboards.com/index.cgi?board=n3200modifications&action=display&thread=3556.
The next standard feature of modern DHCP server is to give some MAC devices always the same IP number. I've got for example a dreambox, which should get the DNS information etc propagated via DHCP, but should get always the same IP number on the internal network. This is much more elegant as you have no manual config changes in case you ISP changes for example the DNS server.
Here's a simple hack to convince the built-in Thecus DHCP server to do this. Go to the rc.udhcpd_eth1.mod file located in /etc/cfg.
This is the rc script which generates dynamically the config file for the DHCP daemon udhcpd_eth1.conf.
You will find these lines in the file.
....
echo "start $startip" > /var/state/udhcpd_eth1.conf
echo "end $endip" >> /var/state/udhcpd_eth1.conf
echo "interface eth1" >> /var/state/udhcpd_eth1.conf
echo "option subnet 255.255.255.0" >> /var/state/udhcpd_eth1.conf
echo "opt router $eth1_ip" >> /var/state/udhcpd_eth1.conf
echo "opt dns $dns1 $dns2" >> /var/state/udhcpd_eth1.conf
echo "static_lease 00:09:34:1B:D7:CF 10.0.0.55" >> /var/state/udhcpd_eth1.conf
echo "pidfile /var/run/udhcpd_eth1.pid" >> /var/state/udhcpd_eth1.conf
echo "lease_file /var/lib/misc/udhcpd_eth1.leases" >> /var/state/udhcpd_eth1.conf
....
Simply add a line for a static lease in this config file add the location I did above.
echo "static_lease 00:09:34:1B:D7:CF 10.0.0.55" >> /var/state/udhcpd_eth1.conf
10.0.0.x is the ip range of my home network. The MAC is the dreambox device which now gets always the the 10.0.0.55 number.
I hope this helps to replace dedicated router devices and save energy in some home networks.
Stefan
especially when you are behind a Cable Modem, it makes sense to replace a slower router and DHCP server with the built-in functionality of the N3200Pro.
However if you use the N3200Pro as DHCP server and router for your home network, some key features are missing. One was the ability to define virtual server which is described here thecususergroup.proboards.com/index.cgi?board=n3200modifications&action=display&thread=3556.
The next standard feature of modern DHCP server is to give some MAC devices always the same IP number. I've got for example a dreambox, which should get the DNS information etc propagated via DHCP, but should get always the same IP number on the internal network. This is much more elegant as you have no manual config changes in case you ISP changes for example the DNS server.
Here's a simple hack to convince the built-in Thecus DHCP server to do this. Go to the rc.udhcpd_eth1.mod file located in /etc/cfg.
This is the rc script which generates dynamically the config file for the DHCP daemon udhcpd_eth1.conf.
You will find these lines in the file.
....
echo "start $startip" > /var/state/udhcpd_eth1.conf
echo "end $endip" >> /var/state/udhcpd_eth1.conf
echo "interface eth1" >> /var/state/udhcpd_eth1.conf
echo "option subnet 255.255.255.0" >> /var/state/udhcpd_eth1.conf
echo "opt router $eth1_ip" >> /var/state/udhcpd_eth1.conf
echo "opt dns $dns1 $dns2" >> /var/state/udhcpd_eth1.conf
echo "static_lease 00:09:34:1B:D7:CF 10.0.0.55" >> /var/state/udhcpd_eth1.conf
echo "pidfile /var/run/udhcpd_eth1.pid" >> /var/state/udhcpd_eth1.conf
echo "lease_file /var/lib/misc/udhcpd_eth1.leases" >> /var/state/udhcpd_eth1.conf
....
Simply add a line for a static lease in this config file add the location I did above.
echo "static_lease 00:09:34:1B:D7:CF 10.0.0.55" >> /var/state/udhcpd_eth1.conf
10.0.0.x is the ip range of my home network. The MAC is the dreambox device which now gets always the the 10.0.0.55 number.
I hope this helps to replace dedicated router devices and save energy in some home networks.
Stefan