Skip to main content

All Questions

Tagged with
0 votes
0 answers
16 views

How can I be in the same subnet of my switch?

I'm new to networking and I have to get in the admin page for my switch to see how it's configured. It's IP address is in the subnet 192.168.0.x, while mine is in 192.168.1.x. I've tried to set a ...
ElAzazel's user avatar
0 votes
1 answer
68 views

Groovy code to fetch all available IP address from a given subnet denoted with CIDR notation

I have generated the below code with the help of Gen AI, but its returning a empty list. Can someone help me to debug this? static List<String> generateAvailableIps(String subnetCidr) { // ...
Prashant Shete's user avatar
0 votes
1 answer
46 views

How can i calculate mask of a specific subnet in a list of subnets knowing only the supernet address

1. I have these subnets : subnet 1 = 9.68.2.0/24 subnet 2 = 9.68.3.0/25 subnet 3 = 9.68.3.128/??? and I am supposed to get the supernet and also the submask of the last subnet "???". I ...
LatifaShi's user avatar
  • 440
0 votes
0 answers
849 views

Why do class D and E IP-addresses have no subnet mask?

As specified on most sites, Class D IP adresses for instance, range from 224.0.0.0 to 239.255.255.255. So their respective Subnet mask should be 255.0.0.0 right? If you look it up, that is not the ...
Lorenz Hack's user avatar
1 vote
1 answer
278 views

Find the IP Prefix that contains a list of IP addresses

I have a list of IP addresses and I want to find the longest prefix that includes all of those IPs. This is essentially the opposite of what the hosts function of the ipaddress module does: https://...
Vasilis's user avatar
  • 2,773
5 votes
2 answers
2k views

How does the auto-assign public IP setting affect private and public subnets?

so I'm just learning about AWS VPC networking. From what I understand the main difference between a public subnet and private subnet is whether or not traffic in that subnet can be routed to the ...
user16401944's user avatar
-2 votes
1 answer
389 views

/31 Subnets IP Address Range [closed]

Disclaimer: Basic to no knowledge here and I'm not sure I'm going to be able to get my question across here but here goes anyway. I understand in /24 subnet you will have (as an example) 10.0.0.1 to ...
Duncan's user avatar
  • 31
0 votes
1 answer
663 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 ...
Ben Muller's user avatar
-4 votes
1 answer
490 views

How do I get 500 IP address?

128.100.112.0/21 block of IP addresses granted by a company. Company said this block of addresses must be divided into four subnetworks that have each at least 500 IP addresses. How do I get 500 ...
jkrhweuyi's user avatar
1 vote
5 answers
5k views

I want a regex support for characters that uses IP Address with Subnet

I have a regex ^[a-zA-Z0-9.*?]+$ that supports IP addresses like 31.202.216.280 how can I modify the given regex in a way where I could support subnets with an IP address like so 31.202.216.280/38
misbha afreen's user avatar
-1 votes
1 answer
395 views

Can IPV4 address exist between an IPV6 range?

I'm relatively new to the IP Address concept and trying to build a range checker. USE CASE: The user gives one IP Address(can be IPv4/IPv6) and a range(can be 2 IPv4 addresses /2 IPv6 addresses/ 1 ...
raven's user avatar
  • 43
0 votes
1 answer
846 views

Subnetting with host part not zero

I am learning subnetting, I can subnet networks like 192.168.0.0 /16 /24 and so on. Today I was given this exercise: subnet 192.168.0.1/16, I've never did a subnet on an address with non-zero host ...
john08's user avatar
  • 1
1 vote
1 answer
1k views

Check if given IP is in given Network range or not in C

I was asked this question in one of the interview and I was strictly asked to do programming in C/C++. I am not much into C++, I have tried writing code in C, can anyone help me improving my code, it ...
Raj Patel's user avatar
-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 ...
Kias's user avatar
  • 35
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.
Kalsan's user avatar
  • 991

15 30 50 per page
1
2 3 4 5
7