Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
iface enp2s0 inet dhcp
dns-nameserver 8.8.8.8
up ip route add 10.10.10.0/24 via 192.168.0.10
down ip route del 10.10.10.0/24 via 192.168.0.10
And this sets the route when I bring the interface up, however (for reasons that are beyond me) the routing table does not seem to survive a hibernation...
So do I need an extra script that is triggered when I resume from hibernation or how to do properly set such a route that should not be destroyed by hibernation?
I suspend with "systemctl hibernate" and I am baffled that the routing tables are gone when I resume.
However the interface is up when I resume so I guess in a systemd-script I simply have to set the route again - it's easy enough to do but I was just wondering if you really need this...
As to what I am trying to achieve:
I used to have a router at 10.10.10.10 (handing out 10.10.10.x ips via dhcp). This little box is my own I run some services on it, all my mobile devices connect to it.
Then I got internet via cable and my provider handed me a cable-modem that is not my own. I cannot change the network it uses - it's 192.168.0.x.
My PC is connected via an ethernet-cable to the cable-modem because this way I get the fastest speed - but I also what to access all the devices that connect to my box from my pc.
So I connected the my own box to the cable-modem with an ethernet-cable (it's 192.168.0.10).
So if I want to access one of my mobile devices (connecting to my box) from my pc I need to set this route.