Linux Mastering Development Ubuntu

Ubuntu WiFi internet connection lost after connecting to raspberry Zero by USB port

I have connected to Raspberry Zero following this post. Now I have these settings:

enter image description here

And /etc/network/interfaces contains:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

    allow-hotplug enp0s20f0u2
    auto enp0s20f0u2

I also ran these commands:

sudo ifconfig enp0s20f0u2
sudo sysctl net.ipv4.ip_forward=1
sudo iptables --table nat --append POSTROUTING --out-interface wlp2s0 -j MASQUERADE
sudo iptables --append FORWARD --in-interface enp0s20f0u2 -j ACCEP

but I had this problem even before running them.


Leave a Reply

Your email address will not be published. Required fields are marked *