Sjoerd Venema wrote:
I placed two nic's in my SuSE 7.1 box. When I use yast1 to configure the nic,s I'm unable two give the second nic another gateway. One nic has a internal ip-address and the other one uses a public ip-address, which is behind a firewall. The internal nic is used for samba and the public ip-address (second nic) wil serve sendmail and apache. The second nic needs another gateway. How to solve this problem??
the gateway address you specify during yast1 nic configuration will be Linux default route. ****** One Linux box can have just one default route ****** When you issue netstat -rn, default route appears as a route with 0.0.0.0 as destination. It seems to me that you have to specify gateway information in yast1 only to your second nic (public ip-address). For the internal network, you will need static routes to each one of your internal sub nets, or, if you have a routing protocol active in your internal network, such as RIP, OSPF, ... , then you can set up gated daemon in your linux box in order to have the internal routes added dynamically to your routing table.