21 Sept 2025HTML
2 System connected via ethernet but Internet not working
In case of my laptop have internet and computer doesn't
execute on laptop
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -o wlp22s0 -j MASQUERADE
sudo iptables -A FORWARD -i wlp22s0 -o enp20s0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i enp20s0 -o wlp22s0 -j ACCEPT
execute on computer
sudo ip route add default via 192.168.50.1 dev eno1
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
Test Internet in computer
ping 8.8.8.8 -c 3
ping google.com -c 3
You may also like
Python for IoT (Internet of Things) Development: A Comprehensive Guide
Python has emerged as a popular programming language for IoT develop...
Continue readingCan't connect to a wired connection in Linux
Troubleshoot wired connection issues in Linux: check cables, network...
Continue readingUnable to Play Audio in Production but in Local It's Working
Unable to Play Audio in Production but in Local It's Working
Continue reading