Does Android have support for IPv6 tethering?


Question

It appears like Apple has fully supported IPv6 tethering on iOS devices years ago, including proper, native IPv6 addresses on each tethered device.



What about Android? It seems like Android 6.0.1 is still totally missing IPv6 on the tethering side. Not only that, but tethering explicitly doesn't even work at all when you're on an IPv6-only network, unless your phone has IPv4 connectivity, too (which with DNS64 and NAT64, is often not the case -- T-Mobile US is especially well-known for not being keen on providing native IPv4 to IPv6-capable devices).



Has IPv6 tethering support been added since then? Are there any plans to add support in later versions? It's 2017, there are basically no more IPv4 addresses, what's up with this disappearing tethering support?!


Answer

It didn't work on Android 6.0.1; however, with Android 7.1.1 on the same device, and with T-Mobile US as the carrier in early 2018, the following is the configuration that gets assigned to an OS X box:



% ifconfig en0
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 8c:29:XX:XX:XX:XX
inet6 fe80::8e29:XXff:feXX:XXXX%en0 prefixlen 64 scopeid 0x4
inet 192.168.43.163 netmask 0xffffff00 broadcast 192.168.43.255
inet6 2607:fb90:4bYY:YYYY:8e29:XXff:feXX:XXXX prefixlen 64 autoconf
inet6 2607:fb90:4bYY:YYYY:d427:13ba:ZZZZ:ZZZZ prefixlen 64 autoconf temporary
nd6 options=1<PERFORMNUD>
media: autoselect
status: active


Note that this includes both a temporary random IPv6 address (used ZZ to anonymise), as well as the permanent IPv6 address that's deterministic based on the prefix (YY) and the MAC address (XX).



P.S. Yes, it does appear that T-Mobile US might as well be delegating the whole /64 prefix to its ME, however, doing a traceroute6(8) may indicate that the prefix is not actually fully dedicated to the Mobile Equipment, as the first use of the prefix appears to be at the PGW level, followed by ME, followed by OS X, when doing a traceroute6 to the permanent IPv6 address of the OS X box:



 3  lag-109.ear2.Paris1.Level3.net (2001:1900:5:2:2::4a09)  1.145 ms  1.416 ms  1.696 ms
4 2001:1900:1a::19 (2001:1900:1a::19) 147.601 ms 147.609 ms 147.596 ms
5 * * *
6 * * *
7 * * *
8 * * *
9 2607:fb90:4bYY:YYYY:0:45:WWWW:WWWW (2607:fb90:4bYY:YYYY:0:45:WWWW:WWWW) 156.866 ms 157.103 ms 157.097 ms
10 2607:fb90:4bYY:YYYY:7136:9b4c:VVV:VVVV (2607:fb90:4bYY:YYYY:7136:9b4c:VVV:VVVV) 189.333 ms 201.174 ms 192.226 ms
11 2607:fb90:4bYY:YYYY:8e29:XXff:feXX:XXXX (2607:fb90:4bYY:YYYY:8e29:XXff:feXX:XXXX) 200.185 ms 300.332 ms 267.247 ms


Still pretty cool to be getting not just one but even two public routable IP addresses on a laptop whilst tethered to an average Android device with default everything; like the internet was meant to be, p2p.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes