On Mon, 26 Aug 2013 16:46:46 -0700 [email protected] (Eric W. Biederman) wrote:
> > By default generate the configuaration: > > config interface 'lan' > option ifname 'eth0.1' > option type 'bridge' > option proto 'static' > option ipaddr '192.168.1.1' > option netmask '255.255.255.0' > option ip6assign '64' > > config interface 'wan' > option ifname 'eth1' > option proto 'dhcp' > > config alias 'wan6' > option interface 'wan' > option proto 'dhcpv6' > option reqprefix 60 > > Critically this uses the config alias syntax when generating wan6 > allowing wan6 to actually work. > > As both a sample and because it is the proper location move the > request for a /60 from the lan to the wan interface, and use the > proper directive reqprefix. > > On the lan interface only assign a /64. Anything else is over kill or > breaks slack depending on how it is implemented. > > This configuration was tested and works for my native ipv6 at home > with comcast cable. > > Signed-off-by: Eric W. Biederman <[email protected]> > --- > .../base-files/files/lib/functions/uci-defaults.sh | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/package/base-files/files/lib/functions/uci-defaults.sh > b/package/base-files/files/lib/functions/uci-defaults.sh index > bf6fe1e..f284c24 100644 --- > a/package/base-files/files/lib/functions/uci-defaults.sh +++ > b/package/base-files/files/lib/functions/uci-defaults.sh @@ -176,7 > +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='60' > +set network.lan.ip6assign='64' > EOF > } > > @@ -187,9 +187,10 @@ 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='alias' > +set network.wan6.interface='wan' > set network.wan6.proto='dhcpv6' > +set network.wan6.reqprefix='60' > EOF > } > I can confirm this works nicely with Comcast cable (native IPV6 was just enabled recently). Thanks! -- Nathan _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
