<%+header%> <%local uci = luci.model.uci.cursor()%> <%local laninfo = luci.model.uci.cursor():get_all("network", "lan")%> <% if uci:get("functionlist","functionlist","SUPPORT_IPV6_SETTING_INDEPENDENT") == "1" then laninfo["dns"] = laninfo["prev_dns"] or "" laninfo["ip6addr"] = laninfo["prev_ip6addr"] or "" laninfo["ip6gw"] = laninfo["prev_ip6gw"] or "" end local lan_ip = luci.util.trim(luci.util.exec("ifconfig br-lan | grep \"inet addr\" | awk -F \" \" '{print $2}' | awk -F \":\" '{print $2}'")) local lan_mask = luci.util.trim(luci.util.exec("ifconfig br-lan | grep \"inet addr\" | awk -F \" \" '{print $4}' | awk -F \":\" '{print $2}'")) local lan_gw = luci.util.trim(luci.util.exec("route -n| grep 'UG[ \t]'|awk '{ printf $2 }'")) if lan_gw == "" then lan_gw = laninfo['gateway'] end %> <% if uci:get('functionlist','functionlist','SUPPORT_ETHERNET_VLAN') == '1' then -----#### SUPPORT_ETHERNET_VLAN START ### %> <% end-----#### SUPPORT_ETHERNET_VLAN END #### %>
IPv4 <%:Settings%>
<%:IP Network Setting%>  <%:DHCP%>    <%:Static IP%>
<%:IP Address%>
<%:Subnet Mask%>
<%:Gateway%>
<%:Primary DNS%>
<%:Secondary DNS%>

<% if (uci:get("functionlist","functionlist","SUPPORT_IPV6_DISABLED") or "0") == "0" then %> <% if uci:get("functionlist","functionlist","SUPPORT_IPV6_SETTING_INDEPENDENT") == "1" then %> <%else%> <%end%>
IPv6 <%:Settings%>  <%:Link-local Address%>
<%:IP Address%>
<%:Subnet Prefix Length%>
<%:Gateway%>
<%:Primary DNS%>
<%:Secondary DNS%>

<% end %>
<%:Spanning Tree Protocol (STP) Settings%>
<%:Status%>  <%:Enable%>    <%:Disable%>
<%:Hello Time%>  <%:seconds%> (1-10)
<%:Max Age%>  <%:seconds%> (6-40)
<%:Forward Delay%>  <%:seconds%> (4-30)
<%:Priority%>  (0-65535)
<% if uci:get('functionlist','functionlist','SUPPORT_ETHERNET_BONDING') == '1' then -----#### SUPPORT_ETHERNET_BONDING START ### %>
<%:Link Aggregation Control Protocol (LACP) Settings%>
<%:Status%>  <%:Enable%>    <%:Disable%>
<%:Timeout%>  <%:Long%>    <%:Short%>
<%:System Priority%>  (1~65535)
<% end-----#### SUPPORT_ETHERNET_BONDING END #### %> <% if uci:get('functionlist','functionlist','SUPPORT_ETHERNET_VLAN') == '1' then -----#### SUPPORT_ETHERNET_VLAN START ### %>
<% end-----#### SUPPORT_ETHERNET_VLAN END #### %>
<%if luci.model.uci.cursor():get('functionlist','functionlist','HAS_ALL_APPLY') == '1' then%>  <%:Apply saved settings to take effect %> <%else%>  <%:Save current setting(s)%> <%end%>
<%+footer%>