otl@lemmy.srcbeat.comtoLinux@lemmy.ml•Wanting to improve my Linux skills after 17 months of daily driving LinuxEnglish
4·
1 year agoAlpine Linux might be good, too. It’s different. But that makes it a great exercise. See https://drewdevault.com/2021/05/06/Praise-for-Alpine-Linux.html
Time to turn your laptop into a router! Let’s say you’ve got 2 network interfaces on your laptop,
eth0
andwifi0
.wifi0
is joined to your university WiFi as normal. Connect your iPad to your laptop via ethernet (with a USB-C adapter).Rather than setting up a DHCP server or IPv6 stuff, I’d just configure the wired interfaces manually. Let’s use the network 192.168.69.0/24. Laptop will be 192.168.69.1, iPad will be at 192.168.69.2. On the laptop:
On your iPad, go to Settings -> Ethernet:
Curious to see if that works. We haven’t set up DNS or DHCP or done any
sysctl
for IP forwarding or any nftables.How can we test if it works? We can set up a TCP listener using nc(1) on the laptop that the iPad’s web browser could hit. On the laptop:
On your iPad, open Safari and browse to http://192.168.69.1:8080
Curious to see if that all works!
See also: