0

Folks,

I have a Ubuntu machine connected to the Internet through wireless (wlan0), and I am sharing this connection to my Ethernet port (eth1). Then, I have this Ethernet port connected to a switch, and two windows machine connected to the same switch. So the two windows machines have a static IP from the LAN generated from the route generated from wlan0 to eth1, so that I can communicate with all 3 computers at the same time (this works since I can ssh and remote access all 3 computers).

My problem is that I when I run my LCM program (with TTL = 1) on my windows PC, I cannot receive the messages on my Ubuntu machine (meaning that the message should pass through the Ethernet). How can I make sure the UDP messages can be routed back into my Ubuntu machine from the windows machines while the wireless network is running?

Pototo
  • 691
  • 1
  • 12
  • 27
  • A router (your Linux machine is routing) will drop a packet with a TTL of 1. It receives the packet, decrements the TTL, which becomes 0, then drops it because the TTL is expired. – Ron Maupin Mar 01 '17 at 23:20

1 Answers1

0

This was my solution to the problem (right there on the LCM website):

sudo ifconfig eth1 multicast
sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth1

Now all my UDP packets are routed only through eth1. And my shared network (from wlan0) is still intact after this. So all computers have internet at the same time. So great!

Pototo
  • 691
  • 1
  • 12
  • 27