Re: subnetting C class into /26 /25 /26, why can this be done?

From: Olivier Nicole (on_at_cs.ait.ac.th)
Date: 08/28/03

  • Next message: hilman firmansyah: "Re: Gif IPTunnel networkA-to-networkB not work"
    Date: Thu, 28 Aug 2003 09:45:09 +0700 (ICT)
    To: freebsd-net@freebsd.org
    
    

    Christoffer Pio wrote:
    > Is it not possible to subnet a C class into 3 nets, like
    >
    > 0-63
    > 64-191 <-- Offending network (?)
    > 192-255
    >
    > If so, why is this?

    I think you got explanations on the why.

    Now it should still be possible to subnet the way you want I think.

    While I would never recommend it, think routing should go with the
    most significant mask for a given address.

    So if you subnet:

    1) x.x.x.0/26
    2) x.x.x.192/26
    3) x.x.x.0/24

    you should be able to do the trick.

    An address in the range 0-63 will match both mask 1) and 3) but mask
    1) is most significant (more bits, higer value) so the packet will be
    routed to subnet 1).

    Same thing for a packet in the range 192-255, with subnet 2) and 3),
    it will be router to subnet 2).

    And a packet in the range 64-191 will only match the subnet 3) so it
    will go to the subnet 3).

    IF I AM NOT WRONG, this should work, but it is definitely nasty.

    If you absolutely need 2 subnets of 64 addresses and one of 128,
    doing:

    1) x.x.x.0/26
    2) x.x.x.64/26
    3) x.x.x.128/25

    is nicer and will result in the ranges 0-64, 64-127 and 128-255.

    Olivier
    _______________________________________________
    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: hilman firmansyah: "Re: Gif IPTunnel networkA-to-networkB not work"

    Relevant Pages

    • Re: dhcp diagram
      ... router will add its IP address to that packet. ... every computer receives IP address according to its subnet. ... that's why we need to set up dhcp relay agent on other subnet to ... >> address to the client based on subnet of its dhcp relay agent. ...
      (microsoft.public.win2000.networking)
    • Re: Two ethernet interfaces puzzle
      ... steve wrote: ... > possibly 192.168.2.x) then route the packets from there. ... the ability to "route add" the subnet as a unique route. ... packet after packet, frame by frame. ...
      (alt.os.linux.suse)
    • Re: Strange networking issue
      ... Yes same subnet, but what subnet is the 10/100 interface on. ... are both on 170.29.112/24 then the packet will go from 170.29.112.254 to ... on the same physical network the packet will never get back to the Win2K ... To fix that set up a static route on the AIX box. ...
      (AIX-L)
    • Re: ISA 2004 Routing
      ... goes from the interface where you receive the packet to the interface on ... your network where you want the packet to go. ... > connected to my PIX. ... > I have one NIC setup in the 192.168.1.0 subnet and another NIC setup on ...
      (microsoft.public.isaserver)
    • Re: Subnetmask Issues
      ... > another machine which is in the same IP subnet, the router is not involved ... The packet is delivered directly (ie "on the wire" using the ... >> How would the router identify the specific network in which the client ...
      (microsoft.public.windows.server.networking)