Installing OpenWRT in a X86 System in a partition, having both WIN11 and OpenWRT

I say, I say, I say... what has two thumbs and can tether his T8 to his iPhone via USB for Internet access, and is using that very same tethered connection to type this reply?

:+1: This guy :+1:

Start by reading https://openwrt.org/docs/guide-user/network/wan/smartphone.usb.tethering

Then, using your skill and judgement, work out what you can omit from the instructions. Turns it it's very simple to get tethering to work with an iPhone, more simple than I was expecting.

The section "Additional steps for iOS devices" contains the information you need about what you need to install. The word "Additional" is misleading; it implies you also have to install the other Android-related stuff, but you don't.

For reference, my iPhone is an SE 2022, running iOS 16.5.1.

I followed the iOS devices steps, then enabled the hotspot on my iPhone, and plugged the USB cable into the T8.

Before installing the packages, this was the output of ip link:

root@OpenWrt:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP qlen 1000
    link/ether 68:1d:ef:33:58:10 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
    link/ether 68:1d:ef:33:58:11 brd ff:ff:ff:ff:ff:ff
4: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 68:1d:ef:33:58:10 brd ff:ff:ff:ff:ff:ff

After installing the packages and connecting the USB cable, this was the output:

root@OpenWrt:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP qlen 1000
    link/ether 68:1d:ef:33:58:10 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
    link/ether 68:1d:ef:33:58:11 brd ff:ff:ff:ff:ff:ff
4: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 68:1d:ef:33:58:10 brd ff:ff:ff:ff:ff:ff
5: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
    link/ether 82:04:5f:2b:d6:25 brd ff:ff:ff:ff:ff:ff

You can see the new eth2 interface.

I edited /etc/config/network to change the wan device from eth1 to eth2, then restarted the network: /etc/init.d/network restart

When I did, the T8 dropped the eth1 connection and picked up an IP address on eth2, issued by the iPhone:

eth1      Link encap:Ethernet  HWaddr 68:1D:EF:33:58:11
          inet6 addr: fe80::6a1d:efff:fe33:5811/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:2496 (2.4 KiB)

eth2      Link encap:Ethernet  HWaddr 82:04:5F:2B:D6:25
          inet addr:172.20.10.4  Bcast:172.20.10.15  Mask:255.255.255.240
          inet6 addr: fe80::8004:5fff:fe2b:d625/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:848 errors:0 dropped:0 overruns:0 frame:0
          TX packets:727 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:426814 (416.8 KiB)  TX bytes:177443 (173.2 KiB)

So there you go. You can tether your T8 to your iPhone with a USB cable, and doing so is pretty straightforward.

Note: I got this working on iOS 16.5.1; I have no idea what challenges you might face with other iOS versions.