Newest 'subnet' Questions - Stack Overflow

Questions tagged [subnet]

A part of the IP address identifying the whole local network (high bits as defined by netmask). The remainder of the IP address (host id) identifies devices that are connected to this network. Can also mean the local network itself, if addressed by IP address in a described way.

0
votes
1answer
54 views

Getting Cannot parse the request. (ErrorCode: InvalidRequestFormat) on Module Update-AzureRmVmss on PowerShell

I am trying to add a second subnet to a Azure Virtual Machine Scale Set using PowerShell. The code I'm using is: Add-AzureRmAccount Select-AzureRmSubscription -SubscriptionId "...
0
votes
1answer
17 views

Subnetting a Class C network

An ISP has provided your company with the Class C network 192.111.2.0. Divide this into four (4) subnets. Complete the following table; both Network addresses and Broadcast addresses should be in ...
0
votes
0answers
7 views

Given the IP address, determine if the following are subnets

I have the following IP address: 192.168.0.63 And I was wondering which of the following are considered valid subnets? 192.168.0.0 / 20 192.168.0.0 / 26 192.168.0.0 / 28 They all have the same ...
0
votes
1answer
21 views

Dividing a network into 4 subnets - stuck

An ISP has provided your company with the /25 network 198.118.133.0. Divide this into four (4) subnets. Complete the following table; both Network addresses and Broadcast addresses should be in ...
0
votes
1answer
33 views

why azure subnets don't have subnet.id param

I have the following simple code to generate 3 subnets: $resourceGroupName = "Test1" $location = "West Europe" $VNetName = "Test-VM" $VNetIPRange = "192.168.0.0/21" $SubnetAName = "SubA" $...
-1
votes
0answers
16 views

How Do You Represent VLSM Addresses

How do you represent VLSM IP addresses? Representing FLSM IP addresses is simple. Just write the prefix next to the IP address, for example: 192.168.24.0/28. But how do you represent VLSM IP ...
0
votes
1answer
30 views

Setting Up network in Packet Tracer

I am trying to set up a network of 3 router. But when I am trying to send packet from One PC to another it errors on me PC0 ip-address -> 192.1.6.1/24 Subnet Mask 255.255.255.0 Gateway 192.1.6.254 ...
1
vote
1answer
29 views

Create EC2 in default public subnet only using cloudformation

I have CF template which is creating EC2 machine. AWSTemplateFormatVersion: 2010-09-09 Mappings: InstanceAMI: # ubuntu 18.04 us-west-2: ami: 'ami-0bbe6b35405ecebdb' us-east-1: ...
-1
votes
1answer
26 views

What are the correct addresses for these subnets?

Assume that the 160.5.132.224/27 network is split into 2 subnets, with equal number of IP addresses. What are the correct addresses for these subnets Basically, I am trying to find a fool proof ...
0
votes
1answer
53 views

Attaching NSG to Subnet using python

I'm trying to create NSG and then attach it to a existing subnet. I've successfully able to create the NSG but it throws an error while attaching it to subnet. Stating that the address prefix cannot ...
0
votes
1answer
29 views

`eb deploy` errors out with “Default subnet not found in us-west-2d”

My application has worked in Elastic Beanstalk for years, and now, out of nowhere, when attempting to deploy I get the following error: Upload Complete. 2019-04-30 22:44:21 INFO Environment ...
0
votes
1answer
72 views

Launching AWS EC2 instances in public subnet

What is the security concern in launching AWS EC2 instances in public subnet. I assume when an EC2 instance is launched in public subnet , it will have access to outside world provided security groups ...
1
vote
1answer
21 views

Do we need a Routing Table to connect 2 Subnets?

Im learning AWS and Im confused about connecting 2 Subnets. Do we need a Routing Table to connect 2 Subnets? Please help. Thanks.
0
votes
2answers
57 views

Access Redshift cluster deployed in a VPC

I have my Redshift cluster deployed in a VPC inside private subnets . I need to allow an IP address to access the cluster from outside the VPC . To add that IP as a whitelist and access the cluster I ...
0
votes
1answer
81 views

All ip in range of subnet-mask

I know how to get all the IP in range from netaddr import iter_iprange generator = iter_iprange('192.168.1.1', '192.168.255.255', step=1) What I want is get all the Ip that fix to subnet mask with ...
1
vote
0answers
20 views

Creating a subnet with VLSM

Now I may be wrong in assuming this question is wrong. But from my understanding, it is impossible to have more than 254 hosts on a 255.255.255.0 subnet mask. link to question > https://gyazo.com/...
0
votes
1answer
31 views

Why is 'Subnet calculators' giving me a different host address range

I'm setting up a network for three departments. This is the IP address I'm subneting from: 10.10.15.0 The first department is composed of 275 hosts. And I will need a /23 subnet mask to cover all of ...
-1
votes
1answer
165 views

How to calculate total ip's of a subnet in AWS

Recently we got an issue of IP running out in VPC due to huge IP's consumed by ENI. I need to write a script in boto3, to trigger an alert if total ip usage increases around 80% or something. Hence I ...
-4
votes
1answer
131 views

How to get ip and subnet mask address using python [closed]

how do I get my ip adress and subnet mask from the computer(windows) using python?
0
votes
0answers
70 views

VPC peering between 2 AWS Regions VPC via cloudformation

I am trying vpc peering between two different region. Here I have already created the resources now I just want to pass their ids as parameters. In same region I am able to peer between two VPC. But ...
-1
votes
1answer
19 views

What does the first usable subnet mean?

I am currently learning about subnetting and my tutor has asked a question: Base address: 192.168.0.0, mask: 255.255.255.0 Steal 4 bits What is the last address of the first usable subnet? I know ...
0
votes
1answer
20 views

Broadcast Address (in terms of subnetting)

I do not understand one thing: does each device have a broadcast address? I am subnetting a network and I am giving each subnet one broadcast address and not each host. Is this correct?
0
votes
2answers
74 views

Passing list of subnet as a parameter to nested CloudFormation Templates fails with an error

I am trying to launch a stack by passing a list of subnet IDs and VPC IDs as parameter to a nested stack. However the stack fails with an error as below. Can anybody please suggest how to pass a list ...
0
votes
0answers
100 views

Docker for Windows: ping ip that lives in the host network

I have a bare metal workstation inside or company network. Since we are running Windows 10 Pro, we use Docker for Windows. We also have an SQL server on the same network. The problem is that we don't ...
0
votes
0answers
22 views

IP Subnet from user via input/raw_input in python?

I want user enter IP subnet which is formatted x.x.x.x/y. But if user enters anything different this format, there should be warning as below. But below code is not working as I want. What is your ...
0
votes
0answers
20 views

Public IP not coming while creating ec2 instance via ansible

I am provisioning an EC2 instance using ansible and is adding it to a vpc, subnet and security group. Is giving assign_public_id as yes and allocating private ip also to the subnet. But after the vm ...
1
vote
1answer
79 views

Create EKS kubernetes pod in specific subnet

I am creating 11 pods on EKS kubernetes. I have two public and two private subnets. In that, I have to move 10 pods in private subnet and 1 pod in public subnet. The reason behind moving in a public ...
1
vote
0answers
36 views

How to send ARP Packet to different subnet?

I have 2 pairs of setups. 1. OpenSuse(A) and Opensuse(B) 2. OpenSuse(C) and Centos(D) I have 3 interfaces in both the setups, all are connected internally between them. i.e, First pair has eth0,eth1,...
-2
votes
2answers
52 views

How to allocate/generate new IP address in ec2 instance in same subnet range?

I know I can get new IP address by going to Elastic IPs --> Allocate new address but by doing this I always get IPs in different subnet range. I want to IPs with same subnet. I have two ec2 instance,...
1
vote
1answer
80 views

Elastic Load Balancer pointing at Private Subnet

I've created a internet-facing Elastic Load Balancer to point at my EC2 Instances in an VPC as I have many times before however with this one I am using a private subnet with a nat gateway to control ...
-3
votes
2answers
189 views

Subnetting 172.16.0.0/24

While I was solving a question, it says "use the second subnet in the 172.16.0.0/24 network". I figured out this only has 1 subnet which is subnet Network First Usable IP Last Usable ...
2
votes
2answers
64 views

Select VPC created from cloudformation

I am creating two EKS templates and one VPC template. In VPC template I have created 3 private and 3 public subnets which is working fine. So, I want one EKS should be in public and one EKS should be ...
1
vote
2answers
62 views

Wrong numbers when calculating broadcast address

I'm having troubles calculating the broadcast address using IP address and subnet mask. It seems easy, it should be just broadcast=ip|~mask , but it doesn't seeem to be working in my case. I've tried ...
0
votes
2answers
125 views

AWS EKS and VPC cloudformation

I'm creating EKS cluster and VPC via cloudformation. My VPC have four subnets and from that, I am giving two subnets to EKS cluster. But after giving two subnets It is giving error Subnets specified ...
0
votes
1answer
36 views

AWS Lambda needs to be moved in different Subnet

I have a Lambda function that is in VPC-A and Subnet 1A and 2A. I want to move it to Subnet 1b and 2B. The command below is giving error: aws rds modify-db-subnet-group --db-subnet-group-name "XXXX" -...
0
votes
1answer
60 views

How to connect PHP to MySQL in private subnet VPC

Hi I have two EC2 instances, one in a public subnet and one in a private subnet in my VPC. Web server (EC2) - public subnet MySQL database (EC2) - private subnet I am not using AWS RDS for the ...
0
votes
2answers
34 views

Security group for private subnet and public subnet (both EC2)

I have two subnets, public and private. Web server on EC2 is in public subnet and MySQL database on EC2 server in private subnet. We decided not to go with RDS. For RDS, the inbound rule for private ...
0
votes
1answer
119 views

How to connect Amazon Route 53 to a VPC subnet with routing for different services?

I have an Amazon AWS account on with i would like to host my full-stack website, and i also have a domain name, let's assume it is example.com. I wold like to have a structure like this MyVPC |-...
0
votes
1answer
785 views

Getting 'Must be valid Ipv4 CIDR' error after passing subnet's CIDR block

I have created a VPC(public and private subnets) on AWS with IPV4 CIDR block as 10.0.0.0/26 (i.e. it can have 2^6 = 64 IP addresses along with one subnet address and one broadcast address). I want to ...
1
vote
3answers
203 views

See all resources in a subnet / See if subnet is in use

I am trying to clean up my AWS configuration and I want to know if particular subnets are actually used/have any resources in them. I'm aware you can filter a list of a particular resource type (e.g. ...
0
votes
1answer
68 views

Xamarin.Forms - Set WiFi Subnet Mask on Android Device

I ran into an issue where my Android app cannot make outgoing connections using the TcpClient class (question located here). While debugging and conducting further research, I found that my Android ...
0
votes
1answer
34 views

How to find valid IP addresses of a network /16

I have this network address: 157.67.0.0 /16 And I have to identify the valid IP Addresses for the network: a) 157.67.171.96 b) 157.67.177.69 c) 157.67.172.154 d) 157.67.180.32 e) 157.67.246....
-1
votes
1answer
61 views

Eltex router keeps resetting subnet mask, end ips and admin password

First of all, sorry for the long post, I'll try to describe my problem and cover as many details I can. So, a few months ago we changed from 20/1 mbit DSL to 100/50 mbit Optical internet and all the ...
0
votes
0answers
14 views

How to make hosts on a docker subnet visible to hosts on another docker subnet?

I'm currently struggling with making it possible to ping a host (foo) in subnet br1 to a host (bar) in subnet br2. Also the local DNS should make all nodes in both subnets visible to all subnets so ...
0
votes
0answers
19 views

How do I connect to an RDS DB Instance in VPC?

I want to connect to my Postgres database that is inside a VPC. One of the suggestions from amazon is to use a bastion host and this is their description below. To use a bastion host, you will need ...
0
votes
1answer
57 views

Calculating Network Addresses

The question is as follows. Consider a router that interconnects three subnets: A, B, and C. Suppose all of the interfaces in each of these subnets are required to have the prefix 119.61.96.0/19. ...
0
votes
2answers
64 views

Calculate subnet bits and host bits

An organization is given an IP address block of 130.34.12.128/27. The organization must have 5 different subnets. What is the number of subnet bits and host bits? How many hosts are available per ...
-2
votes
1answer
46 views

How EC2 allow SSH tunelling to access RDS in private subnet?

To access RDS in private subnet, in the below architecture, Giving public IP of EC2, ssh private key location of EC2 in public subnet, DB credentials of RDS in private subnet, as shown below, How ...
3
votes
3answers
256 views

Generate a random IP address from a subnet in JS

I'm trying to generate a random IP address given a subnet of IP address. There are plenty of resources available to generate a random IP, but my requirement it to have it generated from within a ...
1
vote
1answer
211 views

Azure Subnet - Your subnet is not contained within the same address space for this virtual network

I Virtual Network has the following subnet 10.0.0.0/24 and I want to add another but each time I try I get: "Your subnet is not contained within the same address space for this virtual network" How ...