Re: Routing Networks

From: ISAAC GELADO FERNANDEZ (igf_at_tid.es)
Date: 01/14/04

  • Next message: Eli Dart: "Re: Handling 100.000 packets/sec or more"
    Date: Wed, 14 Jan 2004 23:06:14 +0100
    To: "Crist J. Clark" <cjc@freebsd.org>
    
    

    ----- Mensaje original -----
    De: "Crist J. Clark" <cristjc@comcast.net>
    Fecha: Miércoles, Enero 14, 2004 10:06 pm
    Asunto: Re: Routing Networks

    > On Wed, Jan 14, 2004 at 08:43:37AM +0100, Isaac
    Gelado wrote:
    > > Nicol?s de Bari Embr?z G. R. escribi?:
    > > >Hi all, I need some help routing or making Nat
    on a LAN.
    > > >
    > > >I have something like this:
    > > >
    > > >
    > > > I N T E R N E T
    > > > -----------------
    > > > ^ ^
    > > > | |
    > > >fxp0 public IP public IP
    > > > | |
    > > > FreeBSD server LINUX server
    > > > | |
    > > >dc0 192.168.10.1 |
    > > >dc1 192.168.1.1 ^ 192.168.1.3
    > > > ^ | ^
    > > > | | |
    > > > | | |
    > > > ----------------
    > > > | Switch/Hub |
    > > > ----------------
    > > > | |
    > > > ------------------ -----------------
    > > > | LAN A | | LAN B |
    > > > | 192.168.10.2-254 | | 192.168.1.4-100 |
    > > > ------------------ -----------------
    > > >
    > > >
    > > >What i want to do is that a computer on LAN A
    with an IP on the
    > range of
    > > >192.168.10.2-254 can ping, telnet, ssh, etc. to
    a computer on
    > LAN B
    > > >"192.168.1.X".
    > > >
    > > >How can i solve this problem, is this is a
    route or Nat problem ?
    > >
    > > I think it is a route problem. You must add next
    static route:
    > >
    > > - On the linux machine route all incoming
    packets with dest
    > addr
    > > 192.168.10.x to 192.168.1.1
    > >
    > > It shouldn't be necesary a static route on the
    freebsd machine
    > since it
    > > has a network device with an addr of LAN B.
    >
    > This is correct. Things can get from LAN A to LAN
    B just fine in this
    > picture. The problem is that machines on LAN B
    won't be able to get
    > back to LAN A (i.e. your pings go from A to B, but
    the pongs never get
    > back from B to A). You'll have to touch that Linux
    box or touch the
    > routes on everything on LAN B to route
    192.168.10.0/24 through
    > 192.168.1.1.
    >
    > > Of course you must run a
    > > route daemon in both machines (I supouse it's
    running now since
    > they are
    > > working as gateways) and the previous route must
    be added to the
    > route
    > > daemon running on the linux machine.
    >
    > OK now here is the problem. Why does he need a
    routing daemon? I saw
    > no mention of RIP, OSPF, or any other dynamic
    routing protocol. Looks
    > like it's all static routes to me.

    Sorry, I was mistaken. You only need that FreeBSD
    machines redirects packets from one network
    interface to the other as Crist says.

    Regards

    > --
    > Crist J. Clark |
    cjclark@alum.mit.edu
    > |
    cjclark@jhu.edu
    > http://people.freebsd.org/~cjc/ |
    cjc@freebsd.org
    > _______________________________________________
    > freebsd-hackers@freebsd.org mailing list
    >
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    > To unsubscribe, send any mail to "freebsd-hackers-
    > unsubscribe@freebsd.org"

    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Eli Dart: "Re: Handling 100.000 packets/sec or more"

    Relevant Pages

    • Re: Eth0 and eth1
      ... The routing table in a *nix machine deals with "outbound" packets. ... The one that is straddling your LAN and your IP connection? ... >> up two network cards under Linux in the arrangement I've described? ... LAN computers address your gateway computer directly, ...
      (comp.os.linux.networking)
    • Re: RH Fedora as my gateway
      ... Turn off the FW till you get LAN connected properly. ... RH gw or the gw listed in route table? ... Commands used to set up the FW? ... You have nets set up in routing table but what _interface_ is ...
      (comp.os.linux.networking)
    • Re: 2000 Server as Router
      ... How to Configure Windows server to Be a Router ... To setup Windows 2000/2003 as a router for a LAN, you need to two network ... To enable LAN routing. ...
      (microsoft.public.win2000.ras_routing)
    • Re: Two NICS - Windows XP - I dont want any traffic between them
      ... Tips on the routing would be helpful too. ... I have a network card connected to an unmanaged switch that the ... > static route on the LAN router so that it knows where the where to send ... Move the LAN NIC to the top of binding order. ...
      (microsoft.public.windowsxp.network_web)
    • Re: dhcp
      ... you sound like you really know this stuff. ... See our Lan was setup by a co-worker's friend before we had ... >This will force it to reaquire routing information and "learn" the ... >network topology anew (sometimes network changes are not ...
      (comp.sys.ibm.pc.hardware.networking)