We have a simple set up where we have a fiber link connected to our main router and wireless link. We want to route some traffic via wireless link, as now all comes via the fiber link as the diag.
ISP router IP 8.8.8.1
The ISP routes all our IP (example 192.168.255.0/24) to 8.8.8.2 (our router IP)
192.168.255.0/24 to 8.8.8.2
192.168.1.0/24 to 8.8.8.2
192.168.2.0/24 to 8.8.8.2
(all are public I, i have just used example here)
And on our router, we route 0.0.0.0 to 8.8.8.1
How can we route 192.168.255.0 via the wireless link ? ospf ? or something else i can use to achieve this ? Bonding is not an option here.
There is no direct source routing capabilities within ROS I know of, so you’ll have to use routing marking and alternate route tables for that route mark.
suppose i put ip 8.8.8.3 on ether 2 on our main router, and route few ranges to 8.8.8.3 would it work ?
and on the main router how can i force a gateway ? as both ip will be able to reach the gateway and i just want one link to be used for gateway, outgoing traffic.
You can make uni-directional links just by setting gateways over different links. You can explicitly state a different link for each subnet and send the default gw over a different link.