From 69c54f302c5c5164e2fb21bd07e27b368560203a Mon Sep 17 00:00:00 2001 From: Toastman Date: Fri, 1 Apr 2016 00:08:00 +0700 Subject: [PATCH] no dhcp if router reboots with corrupted nvram If a router's nvram becomes corrupted, we don't want it to come online issuing the wrong IP's via DHCP! TIP - Use 192.168.1.2 for the router address - then if the router is corrupted we know we will find it has rebooted as 192.168.1.1 and isn't issuing the wrong IP's. --- release/src/router/nvram/defaults.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/src/router/nvram/defaults.c b/release/src/router/nvram/defaults.c index 7f15fc20cb..c0fc9fd9e2 100644 --- a/release/src/router/nvram/defaults.c +++ b/release/src/router/nvram/defaults.c @@ -49,7 +49,7 @@ const defaults_t defaults[] = { // LAN TCP/IP parameters { "lan_dhcp", "0" }, // DHCP client [static|dhcp] - { "lan_proto", "dhcp" }, // DHCP server [static|dhcp] //Barry add 2004 09 16 + { "lan_proto", "static" }, // DHCP server [static|dhcp] //Barry add 2004 09 16 { "lan_ipaddr", "192.168.1.1" }, // LAN IP address { "lan_netmask", "255.255.255.0" }, // LAN netmask { "lan_wins", "" }, // x.x.x.x x.x.x.x ... @@ -122,7 +122,7 @@ const defaults_t defaults[] = { { "autofw_port0", "" }, // out_proto:out_port,in_proto:in_port0-in_port1>to_port0-to_port1,enable,desc */ // DHCP server parameters - { "dhcp_start", "2" }, // + { "dhcp_start", "100" }, // { "dhcp_num", "50" }, // { "dhcpd_startip", "" }, // if empty, tomato will use dhcp_start/dchp_num for better compatibility { "dhcpd_endip", "" }, // " -- 2.11.4.GIT