Re: Dual NICs, Routing Problem



Tom Kersten wrote:
Note that there can not be TWO gateways to the world, unless you are using

192.1.34.0      0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0


In a similar situation at my place of work, there is a machine set up with two NICs, one to access a 'private' LAN with a DB server on it and one for general customer access. In that case, we have the customer LAN set as the default card with the default gateway. With the other, we have added a route which specifies the second CARD - NOT a gateway address on that second LAN. I believe you have to tell the box which card to use for that 'private' LAN and not which gateway. If you just specify a gateway address then it will look for this address via the default NIC/gateway. It has to be an address it has knowledge of. I.e. the second NIC's IP address.


Hope this helps

JohnK
.



Relevant Pages

  • specify an ip to use for outgoing traffic on a multi ip machine
    ... each having a local lan privately addressed and a linux internet gateway. ... A pptp vpn is set up between the two gateways. ... Routing is set up on both sites so that traffic to public addresses is nat'ed and sent directly on internet, and traffic to private adresses is sent over the vpn. ...
    (Fedora)
  • Re: Cant ping my Windows 2003 R2 server from the internet.
    ... The LAN is connected to a router, as are other PCs on my LAN. ... Gateway metric: 100 ... and dynamic settings pulled from my cable internet provider on the ... able to ping the 100mb port. ...
    (microsoft.public.windows.server.networking)
  • Re: Cant ping my PC from the internet
    ... The TCP/IP stack of the 100Mb/sec card should Not be bound to File Sharing. ... The Giga card should be configured as part of the LAN, ... Gateway metric: 100 ... My last change was to put the gateway and interface metrics on the GigE port to 100 to ensure any remote traffic was going through that interface, and to keep my local LAN traffic on the GigE interface. ...
    (microsoft.public.windowsxp.network_web)
  • Re: NAT from Inside the LAN - Winroute FW 5.0
    ... LAN - No gateway set SNAT to one of the public IP XXX.XXX.XXX.30 ... The only way to every see the too machines from the LAN to DMZ is to set the ... Generally one public address is used for sharing the internet ...
    (comp.security.firewalls)
  • Mysterious problem: cant backtrack an unwise router installation
    ... RH 7.0 box as the network gateway and firewall. ... LAN is all on static IPs: 192.168.1.1-5 and the IP assigned to me by my ISP ... Desktop from my XP workstation to connect to my office network. ...
    (RedHat)