aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-04-09 08:03:08 +0000
committerSteven Barth <steven@midlink.org>2013-04-09 08:03:08 +0000
commit4c9003ffc74ee9c70ca54240e5ec77fbab2ad9ce (patch)
treea166641971bf319b21ee3b34daec10094b49e94d /package/base-files/files/lib
parentd60417f6ef256793248e9bcf485da7d2c46cefdc (diff)
downloadupstream-4c9003ffc74ee9c70ca54240e5ec77fbab2ad9ce.tar.gz
upstream-4c9003ffc74ee9c70ca54240e5ec77fbab2ad9ce.tar.bz2
upstream-4c9003ffc74ee9c70ca54240e5ec77fbab2ad9ce.zip
Adapt default network configuration for IPv6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36278 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib')
-rw-r--r--package/base-files/files/lib/functions/uci-defaults.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index 477c00cfd4..959ae5eba6 100644
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -150,6 +150,8 @@ set network.loopback.ifname='lo'
set network.loopback.proto='static'
set network.loopback.ipaddr='127.0.0.1'
set network.loopback.netmask='255.0.0.0'
+set network.globals='globals'
+set network.globals.ula_prefix='auto'
EOF
}
@@ -174,6 +176,7 @@ set network.lan.type='bridge'
set network.lan.proto='static'
set network.lan.ipaddr='192.168.1.1'
set network.lan.netmask='255.255.255.0'
+set network.lan.ip6assign='64'
EOF
}
@@ -184,6 +187,9 @@ ucidef_set_interface_wan() {
set network.wan='interface'
set network.wan.ifname='$ifname'
set network.wan.proto='dhcp'
+set network.wan6='interface'
+set network.wan6.ifname='@wan'
+set network.wan6.proto='dhcpv6'
EOF
}