Custom Static Routes on Network interfaces
For V6.26 or later, static routes can be configured in the [Network_x] sections of the config files:
- Each static route should have an ADDRESSn= NETMASKn= and GATEWAYn= for some numeric n. Static routes must be numbered starting at 0 and increasing, and must not skip any values.
- The static route is for traffic to the range defined by ADDRESSn/NETMASKn which will be initially routed to the address specified by GATEWAYn.
- Static routes should be added to the [Network_x] section for the interface which allows access to the GATEWAYn.
- There is no limit to the number of static routes (the n in ADDRESSn can be more than one digit) but remember not to leave any gaps (from 6.34).
example:
ADDRESS0=192.168.5.0 NETMASK0=255.255.255.0 GATEWAY0=192.168.1.1