Modem powinien obsługiwać IPv6. Sprawdzenie:
AT+CGDCONT=?
Jeśli odpowiedź to:
+CGDCONT: (1-16),"IP",,,(0-2),(0-2) +CGDCONT: (1-16),"PPP",,,(0-2),(0-2) +CGDCONT: (1-16),"IPV6",,,(0-2),(0-2)
Jeśli brakuje nam ostatniej linii to.. szukaj innego modemu.
Źródło: http://www.bez-kabli.pl/viewtopic.php?t=37836#p444759
internetipv6
*99#
internet
internet
dynamiczny
Założenia:
/dev/cuaU0.2
Konfig prawdopodobnie nie działa. Brak możliwości sprawdzenia (brak modemu).
default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION # Ensure that "device" references the correct serial port # for your modem. (cuau0 = COM1, cuau1 = COM2) set device /dev/cuau0.2 set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 180 # 3 minute idle timer (the default) enable dns # request DNS info (for resolv.conf) orange6: #set log All set device /dev/cuaU0.2 set speed 115200 set redial 5 10 set timeout 10 set authname internet set authkey internet set phone "*99#" set dial "ABORT BUSY TIMEOUT 5 \ \"\" \ AT OK-AT-OK \ AT+CFUN=1 OK-AT-OK \ AT+CPIN? READY-AT+CPIN=\"1234\"-OK \ AT+CMEE=2 OK-AT-OK \ AT+CSQ OK \ AT+CGDCONT=1,\\\"IPV6\\\",\\\"internetipv6\\\" OK \ AT+CGACT? OK-AT-OK \ AT+CGATT? OK \ AT+CGCLASS? OK \ AT+COPS? OK \ ATD\\T CONNECT" disable ipcp #enable ipv6cp disable ipv6cp #resolv writable #set dns 208.67.220.220 208.67.222.222 # openDNS #set ifaddr 10.0.0.2/0 10.0.0.1/0 255.255.255.255 0.0.0.0 #add default HISADDR #add default HISADDR6
Różne źródła odnośnie konfiguracji IPv6 w PPP/PPPoE:
IPv6CP protocol unlike old IPCP negotiates only link-level addresses (like Ethernet MACs). It negotiates neither real IPs nor routes/DNS. There should be other means to do that, either via router advertisement protocol, or DHCPv6 or manual configuration, but any of those is outside of mpd daemon scope.
# To jest nasz LAN interface igb1 { information-only; }; # To jest nasz WAN - pytamy o IPv6-PD interface ng0 { send ia-pd 0; }; # Tutaj przypisujemy PD do LAN-u id-assoc pd { prefix-interface igb1 { sla-id 0; sla-len 8; }; };
ipv6_enable="YES" ipv6_gateway_enable="YES" radvd_enable="YES" radvd_interfaces="igb1" dhcp6c_enable="YES" dhcp6c_interfaces="ng0" dhcp6c_flags="-D"
ifconfig gif0 create ifconfig gif0 inet6 tunnel <<LOCAL IPv6 ADDRESS>> <<AFTR ADDRESS>> mtu 1460 -accept_rtadv ifdisabled ifconfig gif0 inet 192.0.0.2 192.0.0.1 netmask 255.255.255.248 route add default -interface gif0
Z powyższego nic nie działa… Poniżej kilka linków jak to się robi pod Linuksem: