====== PPP Orange ====== ===== Wymagania wstępne ===== 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 ===== Ustawienia od Operatora ===== * APN: **''internetipv6''** * Numer dostępowy: **''*99#''** * Nazwa użytkownika: **''internet''** * Hasło: **''internet''** * DNS: **''dynamiczny''** ===== ppp.conf ===== Założenia: * port modemu: **''/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ódła... ====== Różne źródła odnośnie konfiguracji IPv6 w PPP/PPPoE: * How IPv6CP works [[https://sourceforge.net/p/mpd/discussion/44693/thread/c10d3c67/]] 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. * DHCP6c IPv6-PD [[http://wiki.port23.de/wiki/IPv6]] # 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" * Zestawianie statycznie tunnelu DS-Lite [[http://wiki.cable-wiki.xyz/OPNsense]] ifconfig gif0 create ifconfig gif0 inet6 tunnel <> <> 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 * Inna konfiguracja IPv6-PD [[https://vladvasiliu.com/post/20180827-0922-ipv6_prefix_delegation_freebsd/]] * Trochę linków odnośnie IPv6-PD: [[http://wiki.port23.de/wiki/IPv6]] Z powyższego nic nie działa... Poniżej kilka linków jak to się robi pod Linuksem: * https://morfikov.github.io/post/konfiguracja-modemu-lte-w-trybie-ndis-ncm/ * http://forum.jdtech.pl/Watek-konfiguracja-polaczenia-lte-dla-ipv4-i-ipv6-jednoczesnie * https://forum.dug.net.pl/viewtopic.php?id=28504 *