Page 1 of 1

Route in config: gateway not found ?

Posted: Fri Jan 26, 2024 2:06 pm
by M4rt1n85
Hallo,

I added a route in my config so people can access a different subnet:

Code: Select all

route 192.168.28.0 255.255.255.0 192.168.30.251
192.168.30.251 is the gateway of the office (opnsense). In the office people can access the subnet 192.168.28.0

If I try to connect, it says

Code: Select all

Warning: route gateway is not reachable on any active network adapters: 192.168.30.251
I tried this options but they did not help

Code: Select all

dhcp-renew
tap-sleep 3
route-delay 1 3
Do you why there is this error?

If I remove the route, the connection is successful and I can access all devices in 192.168.30.0

Re: Route in config: gateway not found ?

Posted: Mon Jan 29, 2024 8:30 am
by M4rt1n85
I found the error thanks to ChatGPT:

the syntax is simply:
route 192.168.28.0 255.255.255.0