apply device settings to simple devices with config specified from the interface...
[project/netifd.git] / config / network
index fa8ef38..9b16bba 100644 (file)
@@ -7,10 +7,11 @@ config interface loopback
        option netmask  255.0.0.0
 
 config device
-       option name             br-lan
-       option type     bridge
-       option ifname   "eth0.1 eth0.2"
-       option mtu              1500
+       option name     br-lan
+       option type     bridge
+       list ifname     eth0.1
+       list ifname     eth0.2
+       option mtu      1500
 
 config device
        option name             dummy
@@ -23,13 +24,26 @@ config interface lan
 
 config interface dummy
        option ifname   eth0.4
+       option mtu              1500
        option proto    none
 
 config interface lan2
-       option ifname   eth0.3
+       option ifname   "eth0.3 eth0.5"
        option type             bridge
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
        option gateway  192.168.1.2
+       option dns              '192.168.1.5 192.168.1.6'
+
+config interface wan
+       option proto    pppoe
+       option ifname   br-lan2
+       option username foo
+       option password bar
 
+config interface test
+       option ifname   @test
+       option proto    static
+       option ipaddr   192.168.5.1
+       option netmask  255.255.255.0