change 'ifnames' to 'ifname' in network config, fix #697
[openwrt-10.03/.git] / package / base-files / x86-2.6 / etc / config / network
index fd0f557c049f7194d6676a7a7a05a728857b5e98..f1ed977450735be2949ef71cba1dd041992eb098 100644 (file)
@@ -1,12 +1,13 @@
-# Network configuration file
+# Copyright (C) 2006 OpenWrt.org
 
-## LAN configuration
-lan_ifname="br0"
-lan_ifnames="eth1 eth2"
-lan_proto="static"
-lan_ipaddr="192.168.1.1"
-lan_netmask="255.255.255.0"
+config interface lan
+       option type     bridge
+       option ifname   "eth1 eth2"
+       option proto    static
+       option ipaddr   192.168.1.1
+       option netmask  255.255.255.0
+
+config interface wan
+       option ifname   eth0
+       option proto    dhcp
 
-## WAN configuration
-wan_ifname="eth0"
-wan_proto="dhcp"