4 option title 'Network configuration'
7 option name 'interface'
8 option title 'Network interface'
9 option package 'network'
10 list depends 'proto=static, ipaddr, netmask'
11 list depends 'proto=static, ip6addr'
12 list depends 'proto=pppoe, username, password'
13 list depends 'proto=pppoa, username, password, encaps, vpi, vci'
14 list depends 'proto=ppp, device'
15 list depends 'proto=3g, device'
16 list depends 'proto=pptp, username, password, server'
17 list depends 'proto=dhcp'
18 list depends 'proto=none'
20 option required 'true'
24 option title 'Physical interface'
25 option section 'network.interface'
29 option title 'Interface MAC address'
30 option section 'network.interface'
31 option datatype 'macaddr'
36 option section 'network.interface'
37 option datatype 'uint'
41 option title 'IPv4 host address'
42 option section 'network.interface'
43 option datatype 'ip4addr'
47 option title 'IPv4 network mask'
48 option section 'network.interface'
49 option datatype 'ip4addr'
53 option title 'IPv4 gateway'
54 option section 'network.interface'
55 option datatype 'ip4addr'
59 option title 'IPv4 broadcast address'
60 option section 'network.interface'
61 option datatype 'ip4addr'
65 option title 'IPv6 address (CIDR)'
66 option section 'network.interface'
67 option datatype 'ip6addr'
71 option title 'IPv6 gateway'
72 option section 'network.interface'
73 option datatype 'ip6addr'
77 option title 'DNS server (IPv4 or IPv6)'
78 option section 'network.interface'
79 option datatype 'ipaddr'
80 option multival 'true'
83 option name 'keepalive'
84 option title 'keep-alive'
85 option description 'Number of connection failures before reconnect'
86 option section 'network.interface'
87 option datatype 'string'
88 list depends 'proto=pppoe'
89 list depends 'proto=pptp'
90 list depends 'proto=ppp'
91 list depends 'proto=3g'
92 list depends 'proto=pppoa'
96 option title 'Dial on-demand'
97 option description 'Number of seconds to wait before closing the connection due to inactivity'
98 option section 'network.interface'
99 option datatype 'uint'
100 list depends 'proto=pppoe'
101 list depends 'proto=pppoa'
102 list depends 'proto=pptp'
103 list depends 'proto=ppp'
104 list depends 'proto=3g'
107 option name 'username'
108 option title 'Username'
109 option section 'network.interface'
110 option datatype 'string'
111 list depends 'proto=pppoa'
112 list depends 'proto=pppoe'
113 list depends 'proto=pptp'
114 list depends 'proto=ppp'
115 list depends 'proto=3g'
118 option name 'password'
119 option title 'Password'
120 option section 'network.interface'
121 option datatype 'string'
122 list depends 'proto=pppoe'
123 list depends 'proto=pppoa'
124 list depends 'proto=pptp'
125 list depends 'proto=ppp'
126 list depends 'proto=3g'
130 option title 'PPPoA encapsulation mode'
131 option section 'network.interface'
133 list depends 'proto=pppoa'
136 option variable 'network.interface.encaps'
141 option variable 'network.interface.encaps'
147 option title 'PPPoA VPI'
148 option section 'network.interface'
149 option datatype 'uint'
150 list depends 'proto=pppoa'
154 option title 'PPPoA VCI'
155 option section 'network.interface'
156 option datatype 'uint'
157 list depends 'proto=pppoa'
161 option title 'PPTP server'
162 option section 'network.interface'
163 option datatype 'host'
164 list depends 'proto=pptp'
168 option title 'Modem device'
169 option section 'network.interface'
170 option datatype 'device'
171 list depends 'proto=ppp'
172 list depends 'proto=3g'
175 option name 'defaultroute'
176 option title 'Replace default route'
177 option section 'network.interface'
178 option datatype 'boolean'
179 list depends 'proto=ppp'
180 list depends 'proto=pppoa'
181 list depends 'proto=pppoe'
182 list depends 'proto=pptp'
183 list depends 'proto=3g'
186 option name 'peerdns'
187 option title 'Use peer DNS'
188 option section 'network.interface'
189 option datatype 'boolean'
190 list depends 'proto=ppp'
191 list depends 'proto=pppoe'
192 list depends 'proto=pppoa'
193 list depends 'proto=pptp'
194 list depends 'proto=3g'
198 option title 'Enable IPv6 on PPP link'
199 option section 'network.interface'
200 option datatype 'boolean'
201 list depends 'proto=ppp'
202 list depends 'proto=pppoe'
203 list depends 'proto=pppoa'
204 list depends 'proto=pptp'
205 list depends 'proto=3g'
208 option name 'connect'
209 option title 'PPP connect script'
210 option section 'network.interface'
211 option datatype 'file'
212 list depends 'proto=ppp'
213 list depends 'proto=pppoe'
214 list depends 'proto=pppoa'
215 list depends 'proto=pptp'
216 list depends 'proto=3g'
219 option name 'disconnect'
220 option title 'PPP disconnect script'
221 option section 'network.interface'
222 option datatype 'file'
223 list depends 'proto=ppp'
224 list depends 'proto=pppoe'
225 list depends 'proto=pppoa'
226 list depends 'proto=pptp'
227 list depends 'proto=3g'
230 option name 'pppd_options'
231 option title 'Additional PPP daemon options'
232 option section 'network.interface'
233 option datatype 'string'
234 list depends 'proto=ppp'
235 list depends 'proto=pppoe'
236 list depends 'proto=pppoa'
237 list depends 'proto=pptp'
238 list depends 'proto=3g'
241 option name 'maxwait'
242 option title 'Setup wait time'
243 option description 'Number of seconds to wait for the device to become ready'
244 option section 'network.interface'
245 option datatype 'uint'
246 list depends 'proto=3g'
250 option title 'Access point (APN)'
251 option section 'network.interface'
252 option datatype 'string'
253 list depends 'proto=3g'
256 option name 'pincode'
257 option title 'PIN code'
258 option section 'network.interface'
259 option datatype 'uint'
260 list depends 'proto=3g'
263 option name 'service'
264 option title 'Service type'
265 option section 'network.interface'
267 list depends 'proto=3g'
270 option variable 'network.interface.service'
272 option title 'UMTS/GPRS'
275 option variable 'network.interface.service'
280 option variable 'network.interface.service'
286 option title 'Protocol'
287 option section 'network.interface'
289 option required 'true'
292 option variable 'network.interface.proto'
294 option title 'Disabled'
297 option variable 'network.interface.proto'
299 option title 'Retrieve IP address via DHCP'
300 option default 'true'
303 option variable 'network.interface.proto'
305 option title 'Interface is a PPTP tunnel endpoint'
308 option variable 'network.interface.proto'
309 option value 'static'
310 option title 'Interface has static network configuration'
313 option variable 'network.interface.proto'
315 option title 'Interface is a PPPoE connection'
318 option variable 'network.interface.proto'
320 option title 'Interface is a PPPoA connection'
323 option variable 'network.interface.proto'
325 option title 'Interface is a PPP connection'
328 option variable 'network.interface.proto'
330 option title '3G UMTS/GPRS connection'
334 option title 'Option type'
335 option section 'network.interface'
339 option variable 'network.interface.type'
340 option value 'bridge'
341 option title 'This is a bridge interface'
345 option title 'Enable STP'
346 option section 'network.interface'
347 option datatype 'boolean'
348 option depends 'type=bridge'
354 option title 'Alias interface definition'
355 option package 'network'
356 list depends 'proto=static, ipaddr, netmask'
357 list depends 'proto=static, ip6addr'
361 option name 'interface'
362 option title 'Parent interface'
363 option section 'network.alias'
364 option valueof 'network.interface'
365 option required 'true'
369 option title 'IPv4 host address'
370 option section 'network.alias'
371 option datatype 'ip4addr'
374 option name 'netmask'
375 option title 'IPv4 network mask'
376 option section 'network.alias'
377 option datatype 'ip4addr'
380 option name 'gateway'
381 option title 'IPv4 gateway'
382 option section 'network.alias'
383 option datatype 'ip4addr'
387 option title 'IPv4 broadcast address'
388 option section 'network.alias'
389 option datatype 'ip4addr'
392 option name 'ip6addr'
393 option title 'IPv6 address (CIDR)'
394 option section 'network.alias'
395 option datatype 'ip6addr'
399 option title 'IPv6 gateway'
400 option section 'network.alias'
401 option datatype 'ip6addr'
405 option title 'DNS server (IPv4 or IPv6)'
406 option section 'network.alias'
407 option datatype 'ipaddr'
411 option title 'Protocol'
412 option section 'network.alias'
414 option required 'true'
417 option variable 'network.alias.proto'
418 option value 'static'
419 option title 'Interface has static network configuration'
425 option title 'Static route definition'
426 option package 'network'
429 option name 'interface'
430 option title 'Interface'
431 option section 'network.route'
432 option valueof 'network.interface'
433 option required 'true'
437 option title 'Target IPv4 host or network'
438 option section 'network.route'
439 option datatype 'ip4addr'
440 option required 'true'
443 option name 'netmask'
444 option title 'Target IPv4 netmask'
445 option section 'network.route'
446 option datatype 'ip4addr'
449 option name 'gateway'
450 option title 'IPv4 gateway'
451 option section 'network.route'
452 option datatype 'ip4addr'
456 option title 'Metric'
457 option section 'network.route6'
458 option datatype 'uint'
464 option title 'Static IPv6 route definition'
465 option package 'network'
468 option name 'interface'
469 option title 'Interface'
470 option section 'network.route6'
471 option valueof 'network.interface'
472 option required 'true'
476 option title 'Target IPv6 host or network (CIDR)'
477 option section 'network.route6'
478 option datatype 'ip6addr'
479 option required 'true'
482 option name 'gateway'
483 option title 'IPv6 gateway'
484 option section 'network.route6'
485 option datatype 'ip6addr'
486 option required 'false'
490 option title 'Metric'
491 option section 'network.route6'
492 option datatype 'uint'
498 option title 'Section switch'
499 option package 'network'
501 option dynamic 'true'
502 option required 'true'