gatorback
Regular Contributor
I would like command-line ability to configure the static leases found at the tail:
http://Router_IP/Advanced_DHCP_Content.asp
It would look something like:
https://www.dd-wrt.com/wiki/index.php/Static_DHCP#How_to_add_static_leases_into_dhcp_by_command
I set one static lease and tried:
router:/tmp/home/root# nvram show | grep static
vpn_crt_server2_static=
vpn_crt_client1_static=
size: 47431 bytes (18105 left)
vpn_crt_client2_static=
vpn_crt_client3_static=
lan_proto=static
dhcp1_staticlist=
vpn_crt_client4_static=
dhcp_staticlist=<99:52:99:22:9D:5B>192.168.8.110>MyHostname
dhcp_static_x=1
vpn_crt_client5_static=
dhcp1_static_x=0
vpn_crt_server1_static=
I set a second static host
outer:/tmp/home/root# nvram show | grep static
vpn_crt_server2_static=
vpn_crt_client1_static=
vpn_crt_client2_static=
vpn_crt_client3_static=
dhcp1_staticlist=
lan_proto=static
vpn_crt_client4_static=
dhcp_staticlist=<99:52:99:22:9D:5B>192.168.8.110>MyHostnameF<99:02:AF:72:CA:5B>192.168.8.111>NextHostname
dhcp_static_x=1
vpn_crt_client5_static=
dhcp1_static_x=0
vpn_crt_server1_static=
size: 47479 bytes (18057 left)
My Google search was not successful and I hope that others have already published this info. I look forward to seeing how this is done. Thanks
http://Router_IP/Advanced_DHCP_Content.asp
It would look something like:
https://www.dd-wrt.com/wiki/index.php/Static_DHCP#How_to_add_static_leases_into_dhcp_by_command
- Set the number of lease slots
- Fill in the data for each lease slot
I set one static lease and tried:
router:/tmp/home/root# nvram show | grep static
vpn_crt_server2_static=
vpn_crt_client1_static=
size: 47431 bytes (18105 left)
vpn_crt_client2_static=
vpn_crt_client3_static=
lan_proto=static
dhcp1_staticlist=
vpn_crt_client4_static=
dhcp_staticlist=<99:52:99:22:9D:5B>192.168.8.110>MyHostname
dhcp_static_x=1
vpn_crt_client5_static=
dhcp1_static_x=0
vpn_crt_server1_static=
I set a second static host
outer:/tmp/home/root# nvram show | grep static
vpn_crt_server2_static=
vpn_crt_client1_static=
vpn_crt_client2_static=
vpn_crt_client3_static=
dhcp1_staticlist=
lan_proto=static
vpn_crt_client4_static=
dhcp_staticlist=<99:52:99:22:9D:5B>192.168.8.110>MyHostnameF<99:02:AF:72:CA:5B>192.168.8.111>NextHostname
dhcp_static_x=1
vpn_crt_client5_static=
dhcp1_static_x=0
vpn_crt_server1_static=
size: 47479 bytes (18057 left)
My Google search was not successful and I hope that others have already published this info. I look forward to seeing how this is done. Thanks