Short version: we have servers in another data center and we have an openvpn tunnel between them.

For the first time, I need to hang server on a different subnet from the tunnel server and I'm getting killed trying to add a route.

Box A: Box B: (This is the tunnel server)

For all other 10.129.68.X boxes, adding a route through was easy peasy. Here I'm having a problem. I've added a route to and I can hit it no problem. When I try to use it as a gateway for another route it's puking:

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    0      0        0 ens32 UGH   0      0        0 ens32   U     0      0        0 ens32

Try to add a route and puke city:

ip route add via dev ens32
Error: Nexthop has invalid gateway.

Any ideas?

New contributor
Scott Ricketts is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Scott Ricketts is a new contributor. Be nice, and check out our Code of Conduct.

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

Browse other questions tagged or ask your own question.