All Questions
Tagged with ip-address cidr
69
questions
0
votes
1
answer
466
views
Generate IP range from CIDR notation issue in powershell
I have the following powershell function, and I want to return the IP range from a CIDR.
Here is the code:
function ConvertFrom-CidrNotation {
param(
[Parameter(Mandatory=$true)]
[...
1
vote
1
answer
142
views
Sean Foley IPAddress library and containment inside CIDR
Similar to this question although not quite the same, I'm having trouble understanding why the Sean Foley IPAddress library doesn't think that an IP address is contained inside a CIDR.
From what I've ...
0
votes
1
answer
347
views
How to convert IPV6 range to single CIDR notation using PowerShell?
I am trying to convert IPV6 Address range into single CIDR notation, but unable to find any method using PowerShell which converts it into CIDR notation.
startIP = '::ffff:1.0.0.0'
endIP = '::ffff:1.0....
3
votes
1
answer
2k
views
How to convert IP range to single CIDR notation using Powershell?
I am trying to convert IP Address range into single CIDR notation, but unable to find any method using Powershell which converts it into CIDR notation.
startIP = '4.249.240.6'
endIP = '4.249.255.255'
...
0
votes
1
answer
662
views
Subnet IPv4 CIDR Block
I have a legacy VPC that was created with an IPv4 CIDR of 10.1.0.0/24, there is one public subnet that shares the same range 10.1.0.0/24
I am trying to create a new private subnet in the VPC so that I ...
0
votes
1
answer
2k
views
validating if a user entered an ip address or CIDR notation when prompted
im using the ipaddress module in python. Here is my current scenario. we have self service portal of sorts that will promt the user to enter an IP address. We will allow this to be an individual IP ...
1
vote
1
answer
721
views
Don't understand IPNetwork.Contains result
I am using the Microsoft.AspNetCore.HttpOverrides.IPNetwork class to check to see if an ip address is in a subnet, but the result is not what I expect
void Main()
{
var ipnw = new Microsoft....
-3
votes
1
answer
95
views
How Internet Assigned Numbers Authority (IANA) handles free ip address holes in their ip allocation pie? [closed]
Let's say an internet service provider (ISP) bought 1024 ip addresses from IANA and after 1 year that ISP business fails and it returned those ip addresses back to IANA. Now there must be a hole of ...
0
votes
1
answer
73
views
Check if an IP falls into an IP range using sh?
Let's suppose I have an IP 173.245.50.16, and I want to check if it falls into the Cloudflare's IP ranges. That basically comes down to:
network_address(173.245.50.16/20) == 173.245.48.0
|| ...
0
votes
0
answers
101
views
Algorithm: get suggestions of IPV6 addresses based on CIDR segment and keyword?
Get specific size count of ipv6 addresses which including specific keyword and inside specific cidr
function getIpAddresses(cidr: string, size: number, keyword: string): string[] {
// ...
}
input ...
-1
votes
1
answer
212
views
Calculate subnet class B address
I am not familiar with the subnet. There is a question.
Organize the IP addresses in a class B address block 158.132.0.0/16 according to the following structures.
Layer1-subnet: Divide the class B ...
2
votes
2
answers
492
views
Ruby: Convert CIDR to Netmask
Given a network definition like 192.168.1.0/24, I'd like to convert the /24 CIDR to a four digit netmask, in this case 255.255.255.0.
No extra gems should be used.
1
vote
1
answer
661
views
Need second CIDR block for AWS VPC
I have a CIDR block of 172.25.0.0/16 and need to create a second one for a new vpc I need to create.
I do not want the CIDR to overlap. Can someone help in identifying which I can use?
Then for that ...
0
votes
1
answer
291
views
How to check given IP address range contains only one CIDR?
I trying to write a Python script to convert the range between two IP addresses to CIDR,
# cidr.py
import argparse
import netaddr
import sys
parser = argparse.ArgumentParser()
parser.add_argument('...
3
votes
2
answers
13k
views
How to subdivide CIDR subnet in Terraform with cidrsubnet Function?
I would like to have addresses like this for subnets within an AWS region:
10.0.0.0/21
10.0.8.0/21
10.0.16.0/21
10.0.24.0/21
10.0.32.0/21
...
Basically, increment the second number by 8.
I also will ...