View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 1163 | RackTables | IPv4/IPv6/SLB | public | 2014-01-27 16:10 | 2014-02-02 07:35 |
| Reporter | ossar | Assigned To | andriyanov | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | Racktables 0.20.3 | OS | Debian | OS Version | 6 |
| Product Version | 0.20.3 | ||||
| Summary | 1163: IPv4 space page does not show all nets | ||||
| Description | When expanding the network I expect to find all subnets in a tree layout. However I have found an instance where it is not listed. mysql> select * from IPv4Network where id IN (43790, 43784); +-------+-----------+------+-----------------------+---------+ | id | ip | mask | name | comment | +-------+-----------+------+-----------------------+---------+ | 43784 | 168182784 | 24 | Demo DMZ | NULL | | 43790 | 168183296 | 22 | Storage Network (NFS) | NULL | +-------+-----------+------+-----------------------+---------+ 2 rows in set (0.00 sec) The network with mask 24 is not listed as a subnet to the network with mask 22. | ||||
| Additional Information | 168183296/22 is assigned to vlan 270 168182784/24 is assigned to vlan 268 | ||||
| Tags | No tags attached. | ||||
|
May be you have some filters set. Is the network displayed by this link (please change the URL to you servers' location): https://racktables.somehost.net/index.php?page=ipv4space&tab=default&clear-cf=&cfe={%24ip4netid_43790}&eid=43790 |
|
| Nice tip but no filters are set. | |
|
The IP address of the /22 network is not aligned on the mask boundary. Here is the example code: <?php $script_mode = TRUE; require 'inc/init.php'; $range22 = constructIPRange (ip4_int2bin(168183296),22); $range24 = constructIPRange (ip4_int2bin(168182784),24); echo $range22['ip'] . '/' . $range22['mask'] . "\n"; echo $range24['ip'] . '/' . $range24['mask'] . "\n"; Here is its output: 10.6.68.0/22 10.6.68.0/24 |
|
|
That is it! Thanks! Why would racktables not complain when you try to insert such a mis-aligned network, even though it is not entirely wrong to write it like that? |
|
|
> Why would racktables not complain when you try to insert such a mis-aligned network, even though it is not entirely wrong to write it like that? Because RT automatically aligns IPs in such networks. You have probably created this network by direct SQL INSERT. RT does not expect somebody is corrupting its DB and thus does not check IP alignment. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2014-01-27 16:10 | ossar | New Issue | |
| 2014-01-27 16:10 | ossar | Status | new => assigned |
| 2014-01-27 16:10 | ossar | Assigned To | => andriyanov |
| 2014-01-27 17:57 | andriyanov | Note Added: 0002141 | |
| 2014-01-27 17:57 | andriyanov | Note Edited: 0002141 | |
| 2014-01-27 22:06 | ossar | Note Added: 0002143 | |
| 2014-01-28 09:48 | andriyanov | Note Added: 0002145 | |
| 2014-01-28 09:49 | andriyanov | Status | assigned => closed |
| 2014-01-28 09:49 | andriyanov | Resolution | open => no change required |
| 2014-01-28 12:50 | ossar | Note Added: 0002147 | |
| 2014-01-28 12:50 | ossar | Status | closed => feedback |
| 2014-01-28 12:50 | ossar | Resolution | no change required => reopened |
| 2014-01-28 13:38 | andriyanov | Note Added: 0002149 | |
| 2014-02-02 07:35 | andriyanov | Status | feedback => closed |
| 2014-02-02 07:35 | andriyanov | Resolution | reopened => no change required |