OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: Cipher on November 12, 2024, 10:15:47 PM

Title: Configuring Static Routing for Secondary /29 Subnet
Post by: Cipher on November 12, 2024, 10:15:47 PM
Hello everyone,

I received two /29 subnets from our ISP. Currently, I'm using the first /29 as the uplink, with the other 7 IPs functioning as virtual IPs, which is working well.

The second /29 subnet has its own gateway, which has been added as well, with those IPs also set up as virtual. However, our Layer 3 switch is having trouble routing this second subnet because we need to configure a static route in OPNSense.

Could someone advise on how to set up the static routing for the second subnet?

Your support is greatly appreciated.

Thank you!
Title: Re: Configuring Static Routing for Secondary /29 Subnet
Post by: Patrick M. Hausen on November 13, 2024, 09:22:27 AM
System > Gateways - add the switch IP address as a gateway.
System > Routes - add the static route.

https://docs.opnsense.org/manual/gateways.html#settings
https://docs.opnsense.org/manual/routes.html#configuration
Title: Re: Configuring Static Routing for Secondary /29 Subnet
Post by: dseven on November 13, 2024, 10:39:51 AM
Quote from: Cipher on November 12, 2024, 10:15:47 PM
The second /29 subnet has its own gateway, which has been added as well, with those IPs also set up as virtual.

This part is confusing (me). What does "has its own gateway" mean? To what has that been added? If this subnet's addresses have been added as VIPs on OPNsense, what's the static route supposed to accomplish?