My machine was to act as the router for an IP address inside a /29 subnet with gateway It would thus be physically connected to the downstream machine on one network interface, as well as the upstream gateway on another network interface. It would itself not have an own IP address inside this network.

I set up the route to on the downstream network interface (not shown here) and then tried to configure the upstream network interface as follows:




This results in an error: Could not set route: Invalid argument.


Notice the destination address This has the desired effect if used as an Address in the [Network] section, but not here. The correct Destination would have been, because is the network address of the /29 network around Non-network-addresses cannot be used as a Destination and be expected to be automatically translated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.