Note I have never tried to do this before.
On Ubuntu PC:
user@Surface-Pro-3:~$ ifconfig
enx00e04c318fc6: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:e0:4c:31:8f:c6 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enxc0335e7491ed: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 198.168.2.1 netmask 255.255.255.0 broadcast 198.168.2.255
inet6 fe80::22d:8a98:bef1:2e66 prefixlen 64 scopeid 0x20
ether c0:33:5e:74:91:ed txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3 bytes 186 (186.0 B)
TX errors 1450 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 262995 bytes 18711382 (18.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 262995 bytes 18711382 (18.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
user@Surface-Pro-3:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 enxc0335e7491ed
198.168.2.0 0.0.0.0 255.255.255.0 U 100 0 0 enxc0335e7491ed
On TX2:
tx2@tx2:~$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::204:4bff:fedf:fbe2 prefixlen 64 scopeid 0x20
ether 00:04:4b:df:fb:e2 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 176 bytes 16152 (16.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 41
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 195 bytes 17389 (17.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 195 bytes 17389 (17.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
rndis0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 02:72:9a:44:2a:35 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
usb0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 02:72:9a:44:2a:37 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:04:4b:df:fb:e0 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tx2@tx2:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 0 0 0 eth0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
edited the /etc/network/interfaces.d/eth0:
auto eth0
iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.0
network 192.168.2.0
broadcast 198.168.2.255
gateway 192.168.2.1
and added to /etc/network/interfaces
source interfaces.d/eth0
I feel my routes on tx2 is wrong. I am not sure, this is a really inexperienced area for me.
Thanks so much for taking the time!!!