Mailinglist Archive: opensuse (2271 mails)

< Previous Next >
Re: [SLE] Two network cards (dual-homed), two gateways? Desparate for help
  • From: eddie <eddie.howson@xxxxxxxxxxxxx>
  • Date: Wed, 7 Apr 2004 07:21:58 +0100
  • Message-id: <200404070721.58975.eddie.howson@xxxxxxxxxxxxx>
On Wednesday 07 Apr 2004 06:59, Preston Crawford wrote:
snip ...
> If I just put in 192.X.X.1 as the default gateway, the 10.... network
> can't get to the share. I think the reason being that upon return the
> traffic tries to go by way of the default gateway (192.x) and can't find
> it's way back to the 192 network. If I flip it and make the default
> gateway 10.X.X.1 the 10.... network can get to the share, but SSH has a
> problem because it tries to return via that gateway. So it's a mess and
> I know there *has* to be a way to get this to work. I just need to know
> how. Somewhere in the "expert" part of the "routing" section, there has
> to be settings I can put in to basically allow all traffic bound for the
> 192 card (eth0 in this case) return via the 192 gateway. And all traffic
> bound for the 10 card (eth1 in this case) return via the 10 gateway. I
> just don't know how to set this up.
>
> Any advice would be GREATLY appreciated.
>
> Preston

I did something a while back to solve a similar problem that involved
specifying the gateways for each interface in their respective config files.
However, this was SuSE 9.0, I don't know if it is true for SuSE8.2. Anyway,
the files were :

/etc/sysconfig/network/ifconfig-eth0
/etc/sysconfig/network/ifconfig-eth1

Check the man pages for route and ifconfig.

Hope that helps and good luck.
Eddie

< Previous Next >
References