IP Mode Page to configure this page." className = "submit_dis submit2 bConnect" className1 = "submit_dis submit3 bDisconnect" disabled = "disabled" else className = "submit submit2 bConnect" className1 = "submit submit3 bDisconnect" end local where = "LogicalIfName='" .. logIfName .. "' and AddressFamily=" .. addressFamily if (ButtonType and ButtonType == "renew") then errorFlag, statusCode = nimfView.dhcpStatusChangeWrap("renew", logIfName, addressFamily) -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) addrFamily = addressFamily logicalIntName = logIfName web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "release") then errorFlag, statusCode = nimfView.dhcpStatusChangeWrap("release",logIfName,addressFamily) -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) addrFamily = addressFamily logicalIntName = logIfName web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "Connect") then errorFlag, statusCode = nimfView.wanStatusChangeWrap("Enable",logIfName,addressFamily) -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) addrFamily = addressFamily logicalIntName = logIfName web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "Disconnect") then errorFlag, statusCode = nimfView.wanStatusChangeWrap("Disable",logIfName,addressFamily) -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) addrFamily = addressFamily logicalIntName = logIfName web.goToPage(NextPage, true, true) else -- run program to NIMF Status and update DB local prog = db.getAttribute("environment", "name", "NIMFSTATUS_PROGRAM", "value") if (prog ~= nil) then util.appendDebugOut("Exec = " .. os.execute(prog .. " " .. DB_FILE_NAME .. " WAN1 10")) util.appendDebugOut("Exec = " .. os.execute(prog .. " " .. DB_FILE_NAME .. " WAN2 10")) end -- If IP Mode is IPv4/IPv6 then we need to call this binary. local ipMode = db.getAttribute ("networkInfo", "_ROWID_", "1", "netWorkMode") or '0' if (ipMode == "3") then prog = db.getAttribute("environment", "name", "IPV6_GW_UPDATE", "value") if (prog ~= nil) then util.appendDebugOut("Exec = " .. os.execute(prog .. " " .. DB_FILE_NAME)) end end ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - $| logIfName |$ ISP Connection Status
Connection Status
 
$| statusMessage|$
Connection Time: $| configRow["Wan.ConnectionTime"] or ''|$
Connection Type: $| configRow["Wan.ConnectionType"] or '' |$
Connection State: $| configRow["Wan.ConnectionState"] or '' |$
IPv6 Address: $| ipAddrStr or ''|$
Gateway: $| gwIps or ''|$
DNS Server(IPv6): $| priDNSIps or ''|$
Secondary DNS Server(IPv6): $| secDNSIps or ''|$
$| COPYRIGHTS |$