I have come across an interesting predicament: I can’t seem to get OSMC to take a persistent static route. Traditionally this is pretty easy to do in linux - simply create the route-iface#
file and possibly the NAT lookup table depending on distribution. However, given that I know OSMC is based on Debian (a Linux distribution I seldom use) and the fact that apparently every location suggested for Debian doesn’t seem to exist I have one simple question: how do I add a persistent static route to OSMC?
Say for example, in my network environment we have two gateways we need to be concerned with: one located at 10.0.0.1
and one located at 10.0.1.0
. For this example, let’s say the subnet is a /16
and OSMC rPi 3 resides on the 10.0.0.0/16
subnet while the supporting media server resides on 10.2.0.0/16
subnet which is provided by the gateway at 10.0.1.0
.
Now, continuing on this example, let’s also say Windows, the OS running on the server has been configured (a long with the gateways) to properly send traffic across the gateways. Windows can trace, ping, nslookup, etc. the Raspberry Pi running OSMC all day long. However, in this scenario, the reverse is not true - the Raspbery Pi can’t get further than the gateway because a static route hasn’t been setup.
In this example, how can I tell OSMC on the rPi 3 to create a persistent static route that effectively adds the missing piece by adding the route: FROM 10.2.0.0/16 USE gw 10.0.1.0 ON dev eth0
?