enter image description here

I have an ethernet module (a sensor but communicating via ethernet: TCP/IP) connecting to my laptop (x1 carbon). An android device (Pixel XL) in USB tethering mode connecting to my Laptop.

IP of ethernet module: (set by me) -> interface in Laptop: (static) (set by me)

IP of a Pixel: (default of the phone) -> interface in Laptop: (static) (set by me)

Now I want to forward packet from Pixel to the ethernet module and vice versa (ping at first). How can I do it? Please instruct in detail because I do not have the network background.

Thanks in advance.

  • This could be on topic on serverfault.com or superuser.com ? – Mawg Sep 18 at 11:42
  • 1
    @Mawg - definitely not serverfault - that is for professionals in a professional environment. superuser yes, possibly even unix.se depending on what operating systems are in play... – ivanivan Sep 18 at 13:21
  • Thanks (and upvote) for the clarification. – Mawg Sep 18 at 14:21

You need to enable routing on your laptop. If it is Linux, you do not need any other software. Try in a root shell:

echo 1 > /proc/sys/net/ipv4/ip_forward

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.