SLAAC and IPv6 default gateway
Hmmm. Replying to my own post here. This seemed to fix it:
sysctl net.ipv6.conf.wlan0.accept_ra_defrtr=1
I suppose this would work with DHCPv6, but not with SLAAC. What's the best way to change that setting? I'm a bit of a newbie with this stuff on android.
Rich
Actually Rich, DHCPv6 would _not_ help you since in IPv6, the default gateway still comes from the router advertisement. So you need to accept_ra to be on in either case.
I have recently found that on my Sony (v4.2.2) they turned on ipv6_forwarding (which disables SLAAC). I used sysctl to disable forwarding and now SLAAC works great.
I hope this helps,
Craig...
---------- Post added at 09:57 PM ---------- Previous post was at 09:49 PM ----------
Hi Folks-
Me again. Now I'm trying to get that sysctl setting to survive a reboot. I've created a /system/etc/sysctl.conf file with the proper setting. Running "sysctl -p" works and everything is fine there. Now I'm trying to add a script in /etc/init.d to run "sysctl -p" and that didn't work. Then I tried putting the script into /data/local/userinit.d and that didn't work. Can anyone tell me where to put the darn thing? The sysctl.conf setting works, I just need to run "sysctl -p" on bootup. Here's what it looks like:
root@android:/etc/init.d # cat 99sysctl
#!/system/bin/sh
sysctl -p
root@android:/etc/init.d # ls -al 99sysctl
-rwxr-xr-x root shell 27 2012-08-01 20:55 99sysctl
root@android:/etc/init.d #
root@android:/data/local/userinit.d # cat 99sysctl
#!/system/bin/sh
sysctl -p
root@android:/data/local/userinit.d # ls -al
-rwxr-xr-x root root 27 2012-08-01 21:02 99sysctl
root@android:/data/local/userinit.d #
Rich
Rich,
I think you can put the init.d script in /system/etc/init.d, but there is no $PATH set, so you have to give the full path to sysctl. You 99sysctl shoud look like:
Code:
/system/xbin/sysctl -p /system/etc/sysctl.conf
Kind of late in replying, but I only just figured this out myself (to turn off ipv6 forwarding, which was preventing SLAAC)
Craig...