2 LuCI - Lua Configuration Interface
4 Copyright 2008 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
14 m = Map("network", "Schnittstellen", [[An dieser Stelle können die einzelnen Schnittstellen
15 des Netzwerkes konfiguriert werden. Es können mehrere Schnittstellen zu einer Brücke zusammengefasst werden,
16 indem diese durch Leerzeichen getrennt aufgezählt werden und ein entsprechender Haken im Feld Netzwerkbrücke
17 gesetzt wird. Es können VLANs in der Notation SCHNITTSTELLE.VLANNR (z.B.: eth0.1) verwendet werden.]])
19 s = m:section(TypedSection, "interface", "")
22 s:depends("proto", "static")
23 s:depends("proto", "dhcp")
25 p = s:option(ListValue, "proto", "Protokoll")
26 p:value("static", "statisch")
27 p:value("dhcp", "DHCP")
30 br = s:option(Flag, "type", "Netzwerkbrücke", "überbrückt angegebene Schnittstelle(n)")
34 s:option(Value, "ifname", "Schnittstelle")
36 s:option(Value, "ipaddr", "IP-Adresse")
38 s:option(Value, "netmask", "Netzmaske"):depends("proto", "static")
40 gw = s:option(Value, "gateway", "Gateway")
41 gw:depends("proto", "static")
44 dns = s:option(Value, "dns", "DNS-Server")
45 dns:depends("proto", "static")
48 mtu = s:option(Value, "mtu", "MTU")
52 mac = s:option(Value, "macaddr", "MAC-Adresse")