Re: do we support non contiguous netmasks ?

From: Paul Schenkeveld (fb-net_at_psconsult.nl)
Date: 04/08/04

  • Next message: Marc G. Fournier: "RE: Stupid question about managed switches"
    Date: Thu, 8 Apr 2004 18:56:37 +0200
    To: net@freebsd.org
    
    

    Hi,

    On Tue, Apr 06, 2004 at 03:27:36PM +0200, Anders Lowinger wrote:
    > I was just trying to elaborate on when/why non-contignous netmasks
    > would be good to have. I'm pretty sure no-one is using them....

    Actually, one of my customers uses a non-contiguous netmask for
    static routes. The picture is something like this:

    In a WAN they have many branch offices with a standardized IP plan
    giving 8 subsequent /24 subnets (RFC1918) to each branch. At one
    point in time it was decided that the second subnet of each branch
    office should use an ISDN dialup network instead of the VPN because
    the traffic on that subnet is only occasional but too bursty for the
    VPN.

    So the IP plan is:

        172.18.bbbbbsss.hhhhhhhh (branches 1 - 32)
        172.19.bbbbbsss.hhhhhhhh (branches 33 - 64)

    where bbbbb is the branch office number (module 32) and sss the subnet
    number within the branch office.

    They have the following two routes on their central (FreeBSD) routers
    at the main office:

        route add -net 172.18.0.0 -netmask 255.254.0.0 vpn-router
        route add -net 172.18.1.0 -netmask 255.254.7.0 isdn-router

    Not having non-contiguous netmask would require them to install
    65 static routes:

        route add -net 172.18.0.0 -netmask 255.254.0.0 vpn-router
        route add -net 172.18.1.0 -netmask 255.255.255.0 isdn-router
        route add -net 172.18.2.0 -netmask 255.255.255.0 isdn-router
        route add -net 172.18.3.0 -netmask 255.255.255.0 isdn-router
        ...
        route add -net 172.19.255.0 -netmask 255.255.255.0 isdn-router

    I agree that this use of non-contiguous netmasks is rare and I would not
    object against removing them from FreeBSD if is serves the purpose of
    better/faster/easier to understand/higher quality/easier to maintain
    kernel code (and tell my customer that I'm sorry but we move to 65
    static routes up from 2).

    Greetings,

    Paul Schenkeveld, Consultant
    PSconsult ICT Services BV
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Marc G. Fournier: "RE: Stupid question about managed switches"

    Relevant Pages

    • Re: 2003 Server as Router
      ... If the machines on each subnet use the Win 2003 machine's attached IP as ... a default gateway, then no static route is necessary. ... > on the server but that's as far as it goes. ... > believe that I need to add static routes on the server but am not ...
      (microsoft.public.windows.server.networking)
    • Re: Default Gateway Setting not set after Reboot
      ... If you are pinging from machine in the same subnet as ... > D. All other possible routes are handled by using Static Routes in the ... > Routing Table or by the use of Routing Protocols such as RIP, IGRP, etc. ...
      (microsoft.public.win2000.networking)
    • Re: Setting Up Routing using Route Command
      ... please pardon my stupidity but isn't thats what static routes are for. ... Adapter1 on router as gateway, ... All traffic which is not local (ie not in the same subnet as the ...
      (microsoft.public.windows.server.networking)
    • Re: build filtering bridge?
      ... > Thanks for the quick response. ... I don't actually get a full subnet of my ... > own, just some statically routed IPs, all on the same /12. ... I suppose it could be done with static routes ...
      (comp.unix.bsd.openbsd.misc)