Menu

Feature Request

Help
2013-10-02
2014-10-12
  • Tim Nowaczyk

    Tim Nowaczyk - 2013-10-02

    Any plans to add support for /31 (RFC-3021) and /32 subnets? Many ISPs take a chunk of addresses and carve it into individual /32s for router loopback addresses, then turn another chunk into /31s for router-to-router PtP links.

    Thanks,
    Tim Nowaczyk

     
  • Seth McCauley

    Seth McCauley - 2014-10-12

    I realize this was posted quote a while ago, but here it is if you still need this info
    (or for anyone else needing to know this):

    You can change the subnet size limit to 31 by editing the following file:
    ./inc/subnets.php

    On line 633, change $max = 30 to $max = 31.

    This does appear to work, although I am not certain if the /30 limitation is hard set anywhere else.

    Here is an example:

    ...
    function subnet_mask_dropdown($name, $version, $min = 1)
    {
        $ret = '<select name="' . $name . '">';
        if ($version == 4) {
            //$min = 1;
            $max = 31;
        } else {
            //$min = 1;
            $max = 127;
        }
    ...
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.