RE: [SLE] Two network cards (dual-homed), twogateways?Desparateforhelp
From: Damon Jebb (list_at_damonjebb.net)
Date: 04/08/04
- Previous message: Preston Crawford: "RE: [SLE] Two network cards (dual-homed), twogateways?Desparatefor help"
- In reply to: Preston Crawford: "RE: [SLE] Two network cards (dual-homed), twogateways?Desparatefor help"
- Next in thread: Louis Richards: "Re: [SLE] Two network cards (dual-homed), two gateways?Desparatefor help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "'SuSE listSuSE mailing list'" <suse-linux-e@suse.com> Date: Thu, 8 Apr 2004 17:54:05 +0100
<SNIP>
Basically they're all plugged into the wall, which goes into a small
patch-panel in the closet where the server is (small operation). From
there they're patched directly into a firewall/router. So the server is
on the same firewall/router hub-type device as the other computers that
access it. So it's on a level playing field with the machines that
access it. And when I make settings changes, samba never goes away for
the 192 network. What goes away is this virtual SSH server. The one
where the firewall device points in at the server to deliver SSH. If the
default gateway is the 10 network's gateway, then that SSH stops
working.
</SNIP>
From this I would say that the default gateway on the server 192 network
needs to be the IP of the router/gateway device on the 192 network. On
the 10 network you should not need a default gateway, so you will
probably find it best to set the gateway to the IP of the nic on this
machine.
<SNIP>
You mean having the two default gateways. One for each interface? I'm
looking back through your responses and I'm not sure where exactly to
put what you want me to put. I've tried a couple places. I've tried
adding two default routes via "route add default gw 10.x.x.1 eth1" and
"route add default gw 192.168.0.1". And I've also tried that
/etc/sysconfig/network/ifroute-eth0, etc. that someone else mentioned.
What do you mean exactly. What should I be trying?
</SNIP>
I don't think that the command for default gateway would have worked
because the second would have replaced the first - check by printing the
routing table after you've done the commands. What you actuall want is
to add two routes, specifying the gateway to be used for each network
specification. This would be something like...
# route add -net 10.0.0.0 gw 10.0.0.1 netmask 255.0.0.0 eth0
# route add -net 192.168.0.0 gw 192.168.0.254 netmask 255.255.255.0 eth1
You'll need to check the details of the above lines, you may have the
nics the otherway round, but basically this should work.
You could also use YaST/network services/routing in expert mode. You
will then see a table with the headings that I gave before, sorry I
should have been more explicit. If you put two entries in here, one for
the 10 network...
Destination 10.0.0.0
Gateway You can put the IP of the nic on the 10 network here
Netmask 255.0.0.0
Device ETHx (which ever is the right one)
Then similarly for the 192 network...
Destination 192.168.0.0 (note this assumes that you have used
192.168.0.x as the IP addresses on this network, set the third octet to
the correct value if you've used something different).
Gateway The IP address of the router
Netmask 255.255.255.0
Device The other one.
I would use the route command above as root to test the settings then
make them permanent.
Hopefully this may help.
Damon
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: Preston Crawford: "RE: [SLE] Two network cards (dual-homed), twogateways?Desparatefor help"
- In reply to: Preston Crawford: "RE: [SLE] Two network cards (dual-homed), twogateways?Desparatefor help"
- Next in thread: Louis Richards: "Re: [SLE] Two network cards (dual-homed), two gateways?Desparatefor help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|