IP Mode Page to configure this page." className = "submit_dis submit2 bConnect" className1 = "submit_dis submit3 bDisconnect" else className = "submit submit2 bConnect" className1 = "submit submit3 bDisconnect" end if (cgi["logIfName"] ~= nil) then logIfName = cgi["logIfName"] addressFamily = cgi["addressFamily"] --elseif (logicalIntName ~= "" and addrFamily ~= "") then --addressFamily = addrFamily --logIfName = logicalIntName end 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 2")) util.appendDebugOut("Exec = " .. os.execute(prog .. " " .. DB_FILE_NAME .. " WAN2 2")) end prog = db.getAttribute("environment", "name", "LINKSTATUS_PROGRAM", "value") if (prog ~= nil) then util.appendDebugOut("Exec = " .. os.execute(prog .. " " .. DB_FILE_NAME .. " WAN1")) util.appendDebugOut("Exec = " .. os.execute(prog .. " " .. DB_FILE_NAME .. " WAN2")) util.appendDebugOut("Exec = " .. os.execute(prog .. " " .. DB_FILE_NAME .. " DMZ")) 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 local nimfStatusRow = db.getRowWhere ("NimfStatus", "LogicalIfName='WAN1' and AddressFamily=10") ?>
Connection Time: | $| nimfStatusRow["NimfStatus.WanUpTime"] or ''|$ |
IPv6 Connection Type: | $| configRow["Wan.ConnectionType"] or '' |$ |
IPv6 Connection State: | $| configRow["Wan.ConnectionState"] or '' |$ |
IPv6 Address: | $| configRow["Wan.IpAddr"] or '' |$ |
Gateway: | $| configRow["Wan.Gateway"] or '' |$ |
DNS Server(IPv6): | $| configRow["Wan.DNS"] or '' |$ |