Menu

#149 Subnet and IP addresses in MYSQL

version 0.8
closed
nobody
5
2015-07-21
2015-07-21
Anonymous
No

I am trying to bulk add subnets via MYSQL but the "subnet" row from the "subnets" table is in a weird format.

For example, the root network 10.222.0.0/16 shows as "182321152".

Ip addresses also have this format. Is this an ID linked to another table?

FYI, bulk adding subnets is a must have in IPAM solutions. Makes it easier for people to migrate.

2 Attachments

Discussion

  • Anonymous

    Anonymous - 2015-07-21

    UPDATE: It seems to be a calculation of number of hosts.

    182353920 (10.222.128.0) - 182321152 (10.222.0.0) = 32768

    32768 is the number of hosts between 10.222.0.0 and 10.222.128.0.

    Interesting, anyone know why phpIPAM inserts data into mysql this way???

     
  • Miha Petkovsek

    Miha Petkovsek - 2015-07-21

    Ticket moved from /p/phpipam/bugs/327/

     
  • Miha Petkovsek

    Miha Petkovsek - 2015-07-21
    • status: open --> closed
    • Group: 1.0 --> version 0.8
     

Anonymous
Anonymous

Add attachments
Cancel