Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

IPv6 via ppp (OSx not able to autoconfigure own ppp0 interface by SLAAC)

Hi

I try a new Osx (10.8.1) especially IPv6 connectivity but finding problems in getting a GUA address via PPPoE. With the
the previous system (10.7.4) ,I was able connecting to IPv6 and obtain an address (via SLAAC) from my ISP only after giving the following commands (http://ipv6int.net/systems/mac_os_x-ipv6.html):

sysctl -w net.inet6.ip6.accept_rtadv=1
route add -inet6 default -interface ppp0


On 10.8.1

net.inet6.ip6.accept_rtadv=1 --> it's enable by default (on Lion value is set to 0 so you cannot use RA from ISP) but it cannot autoconfigure itself on ppp0 

I have only LL address like fe80::1%ppp0 prefixlen 64 scopeid 0x8

Only if i configure manually ppp0 interface I have IPv6 connectivity (adding prefix obtained by RA + Intreface ID /64 ) and i ping6 some host p.e ipv6.google.com


what else you need to enable?

Any ideas?

Thanks

G.

Mac mini, OS X Mountain Lion (10.8.1)

Posted on Sep 14, 2012 2:48 AM

Reply
4 replies

Oct 23, 2013 5:21 AM in response to Pippolonesuccamelo

The following ip-up-script will do the trick. It listens for router advertisements on the PPP link using tcpdump and adds a IPv6 address based on the announced prefix. It also adds a default IPv6 route to the PPP link.


#!/bin/sh

PREFIXINFO=`/usr/sbin/tcpdump -nvi $IFNAME -c 2 icmp6 | grep prefix`

PREFIX=`echo $PREFIXINFO|cut -f2- -d:|cut -f1 -d/|cut -c2-`

PREFIXLEN=`echo $PREFIXINFO|cut -f2 -d/|cut -f1 -d,`

ADDR="cafe"


/sbin/ifconfig $IFNAME inet6 ${PREFIX}${ADDR}/$PREFIXLEN

/sbin/route add -inet6 default -interface $IFNAME


Place it in /etc/ppp and make it executable by executing this command:

$ sudo chmod 755 /etc/ppp/ip-up


You can change the ADDR variable to whatever suffix you want in your address.


This works like a charm in Mac OS X Mavericks. In previous versions of OS X you might have to fiddle with removing any existing IPv6 default route for this to work properly.


Regards,

Frode

Aug 26, 2014 6:37 AM in response to Pippolonesuccamelo

I have same problem 😟


I am using ISP that assign me ipv6 by pppoe connection. I dont have any problem with windows and by creating pppoe connection everything works correctly but in os mavericks I don't get ipv6 automatically while I set configure IPv6 automatically in my network preferences. It works if I set manually buy I think because there is no option for receive ip via ppp the pppoe connection can not receive it ipv6 automatically same as ipv4.

It is very important for me because I want to switch IPv6 in my mac.




Best Regards,

Massoud


MacBook Air, OS X Mavericks (10.9.4)

IPv6 via ppp (OSx not able to autoconfigure own ppp0 interface by SLAAC)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.