Skip to content

merge subnet #31

Description

@molchanov1983

Hello
I found this
$subnets = Network::parse('192.168.0.0/22')->splitEqual('24');

foreach ($network as $ip) {
// 192.168.0.0/24
// 192.168.1.0/24
// 192.168.2.0/24
// 192.168.3.0/24
}

How to merge 4 new subnets to single subnet ?

 // 192.168.0.0/24
 // 192.168.1.0/24
 // 192.168.2.0/24
 // 192.168.3.0/24

=> 192.168.0.0/22

Is it possible to use your library to do this ?
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions