two nics, 2 networks, 2 Default gateways

Hi,
New to OpenSuse, but i’m trying to configure my 2 nics to see 2 different networks, and route both those networks.

I can’t seem to use the GUI to do anything good and it doesn’t even seem to take the route command right, or editing any network scripts.

anyone have any advice on this? Thanks

You can’t have 2 default gateways. Default means the last choice and there can only be one last choice for routing, by definition.

If you know which IP addresses you want to reach by which gateway you can add some static routes. You’d have to post more details of your setup.

If you are after optimal routing, you need routing daemons and routing info updates (quite complicated).

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.