binding IPs

Bruno Wolff III bruno at
Tue Jun 5 14:58:41 UTC 2007

On Tue, Jun 05, 2007 at 14:44:29 +0800,
  LC <listfedora at> wrote:
> Thanks. This box is a samba machine. I want to allow local users and remote 
> users to access it. I have 2 NIC on this box. eth0 is on a public 
> IP( and eth1 is on the local IP( But how do i set 
> the gateway? Can i specify the public gateway for eth0( and the 
> gateway for eth1 ( and as for the gateway in 
> /etc/sysconfig/network i will remove it. Will this work?

The gateway (default route) should be on the nic that faces the internet.
It should be whatever is appropiate for the network connection through
your ISP.
There is no gateway associated with your nic facing your internal network.
Both nics should have an appropiate netmask describing the ip addresses
that have direct links to them.

More information about the fedora-list mailing list