RE: [SLE] Two network cards (dual-homed), twogateways?Desparateforhelp

From: Damon Jebb (list_at_damonjebb.net)
Date: 04/08/04

  • Next message: Phil Mocek: "[SLE] Re: SuSE obfuscation of known issues"
    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
    

  • Next message: Phil Mocek: "[SLE] Re: SuSE obfuscation of known issues"

    Relevant Pages

    • Re: Dual NICs, Routing Problem
      ... There can only be one default gateway (unless you are using extra stuff as ... network that is NOT directly attached to one of your interfaces. ... >> Do all the hosts on 192.1.36.0 know that if they want to talk to any host on ... Here, the web server needs to know the IP of eth0 on the DataBase Server, ...
      (alt.os.linux.suse)
    • Re: One computer on 2 networks
      ... On the server take the new "internet Nic" and set it up properly for the ... Create a static route in the OS's routing table that uses the LAN Router ... don't work in the Network Admin Dept. I'm a developer. ...
      (microsoft.public.windows.server.networking)
    • Re: [SLE] connection redundancy
      ... which is the router just this side of the ... >>because it's own gateway is still up. ... You'll also need three network cards to put into this Linux box. ... your internal LAN can route packets to the Internet. ...
      (SuSE)
    • Re: AIX 1.3 Failures and Fables
      ... DESTINATION GATEWAY FLGS REFCNT USE INTERFACE ... Is my interpretation of the AIX 1.3 #man route correct? ... Manually manipulates the routing tables. ... Is the destination host or network. ...
      (comp.sys.ibm.ps2.hardware)
    • Re: Default Gateway on VPN subnets
      ... Now I understand that you are using the TZ170 VPN routers to establish the ... Once the default gateway of the remote 2003 server was automatically ... to access the internet or the SBS network? ...
      (microsoft.public.windows.server.sbs)