I have Windows PC connected to Jetson via ethernet
connection.
Both have static IP addresses.
In Windows:
192.168.20.2
255.255.255.0
In Linux:
iface lo inet loopback
iface eth1 inet static
address 192.168.20.6
netmask 255.255.255.0
gateway 192.168.20.254
dns-nameservers 192.168.20.254 8.8.8.8
auto eth1
I can’t get internet on my jetson.
I tried using a network bridge, but it did not help - if I connect a network adapter to the bridge, the Internet still does not appear in jetson. If I add a USB modem to the bridge, the Internet disappears on the Windows machine.
Where is your router in the wiring scheme? These are private LAN addresses which cannot directly use the internet. It should be possible for Windows and Linux to talk to each other, but if one goes to the outside world, then it is with the aid of a router. Basically, what is wired where, including sharing a switch or sharing a router.
I tried the following option:
In Windows mashine i have two connection Ethernet 2 - USB modem, and Ethernet 1 - ethernet connection with jetson.
In Network connections → Ethernet 2(Remote NDIS)-> Propertis-> Access-> set Allow anower user use internet connection.
In Home network Connection folder i select Ethernet 1 (Realtek).
After that, in Ethernet 1 i change ip to static 192.168.2.2.
but still there is no Internet on the jetson.
The Internet appeared when I changed the default gateway to 192.168.20.2 using sudo route add default gw 192.168.20.2 eth0
But after rebooting the Linux machine, it again becomes
192.168.20.254
Although in /etc/network/interfaces The correct gateway 192.168.20.2 is registered
I need to constantly change it in order for the Internet to appear.
If the Windows machine is connected to the Internet, then Windows must have forwarding enabled for the Jetson. The Jetson will have no control over this. I don’t know what the setup is within Windows to enable forwarding. Secondary to this, there may be further Windows security or firewall settings to allow this even if forwarding is enabled (and I don’t know what those settings are in Windows). I do not know much about Windows network administration.