Linux Mastering Development Ubuntu

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

i have done this instruction for connecting to Raspberry Zero by this setting from this post, now i have this setting:

enter image description here

and sudo nano /etc/network/interfaces setting is :

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

    allow-hotplug enp0s20f0u2
    auto enp0s20f0u2

also run this command:

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 before of running this command i have that problem.


Leave a Reply

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