well, I understand the concept of a default gateway, but given 2 different NICS, you should be able to have a default gateway for each, there is no way of doing this?
One nic is on the 192.168.17.x network (this is the network which works because the default gateway is set to 17.1)
one nic is on the 172.16.10.x network (doesn’t work)
The routing decision chooses the interface to take the traffic, not the other way around.
Default gateways are for “rest of the Internet” destinations. Sounds like what you need are just a few specific routes to cover the subnets your interfaces connect to.
well, again i’m not an expert on linux (unfortunately at a windows shop, but we have a handful of linux boxes)
and in Windows, the interface can have a different gateway (even though i’m not sure how this actually handles routing on the back end)
anyway, back to the routing issue then…i am not able to add the route correctly using the route command
There is a YaST table where you can add specific routes. Just go to YaST > Network Devices > Network Settings > Routing and you’ll see it. As you can see it’s global to the machine, and not specific to any of the interfaces.
A route can have a gateway, and then there is The Default Gateway which is the catch-all.