Questions tagged [subnet]

A subnetwork, or subnet, is a logically visible subdivision of an IP network. The practice of dividing a single network into two or more networks is called subnetting and the networks created are called subnetworks or subnets.

A subnetwork, or subnet, is a logically visible subdivision of an IP network. The practice of dividing a single network into two or more networks is called subnetting and the networks created are called subnetworks or subnets.

Subnetting provides a way to use the number of IPv4 addresses in an optimal way. The previous notation with classes caused a lot of IP's to remain. In the beginning this was not a problem, but these days IPv4 addresses have already depleted at the top level.

Source: wikipedia

Tutorial on subnetting

855 questions
472
votes
8 answers

How does IPv4 Subnetting Work?

This is a Canonical Question about IPv4 Subnets. Related: How does IPv6 subnetting work and how does it differ from IPv4 subnetting? How does Subnetting Work, and How do you do it by hand or in your head? Can someone explain both conceptually…
Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444
131
votes
5 answers

How does IPv6 subnetting work and how does it differ from IPv4 subnetting?

This is a Canonical Question about IPv6 Subnetting. Related: How does IPv4 Subnetting Work? I know a lot about IPv4 Subnetting, and as I prepare to (deploy|work on) an IPv6 network I need to know how much of this knowledge is transferable and…
Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
102
votes
6 answers

Is X.Y.Z.0 a valid IP address?

Are IP addresses with a 0 in the last octet valid? 10.6.43.0 In my case, I have the the following netmask 255.255.252.0 What about a 0 for the other octets?
Alan H
  • 2,234
  • 4
  • 20
  • 17
48
votes
6 answers

CIDR for Dummies

I understand what CIDR is, and what it is used for, but I still can't figure out how to calculate it in my head. Can someone give a "for dummies" type explanation with examples?
Bob
  • 2,917
  • 5
  • 28
  • 32
47
votes
9 answers

Connecting to a remote server through a VPN when the local network subnet address conflicts with a remote network

This is a Canonical Question about solving IPv4 subnet conflicts between a VPN client's local network and one across the VPN link from it. After connecting to a remote location via OpenVPN, clients try to access a server on a network that exists…
John Russell
  • 573
  • 1
  • 5
  • 5
46
votes
5 answers

What are the implications of having two subnets on the same switch?

Can anyone tell me what some of the implications of having two different subnets on the same switch would be if VLANs are not being used?
Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444
41
votes
12 answers

Is it better to use the 192.168.x.x or 10.x.x.x address range for a small business network?

For best performance and ease of management, is it better to use 192.168.x.x or 10.x.x.x range of addresses for a small (<50 PCs) business network? This would correspond to a subnet of 255.255.0.0 and 255.0.0.0 respectively.
pro
  • 519
  • 1
  • 4
  • 7
37
votes
8 answers

When/why to start subnetting a network?

Under what conditions does one start to consider subnetting a network? I'm looking for a few general rules of thumb, or triggers based on measurable metrics that make subnetting something that should be considered.
Adam Davis
  • 5,366
  • 3
  • 36
  • 52
35
votes
3 answers

IPv6 subnetting a /64 - what will break, and how to work around it?

In IPv6, you are not supposed to subnet to anything smaller than a /64 (RFC 5375). Among other things, SLAAC does not work with smaller subnets, and apparently also some other features will break. What are the workarounds for situations where ISPs…
Kevin Keane
  • 860
  • 1
  • 8
  • 13
33
votes
8 answers

What is the network address (x.x.x.0) used for?

It appears to be common practice to not use the first address in a subnet, that is the IP 192.168.0.0/24, or a more exotic example would be 172.20.20.64/29. The ipcalc tool I frequently use follows the same practice: $ ipcalc -n -b…
Shtééf
  • 1,225
  • 2
  • 12
  • 19
29
votes
1 answer

tcpdump filter on network and subnet mask

I'm using the following tcpdump command: tcpdump -w net75.out -s 0 host 65.207.95.222 I want to change the filter on the single host to be all addresses in the following subnet: 65.192.0.0/10 I have not been able to figure out how to specify a…
harrije
  • 293
  • 1
  • 3
  • 4
25
votes
6 answers

Linux Command line tool to work with netmasks / CIDR notation

I'm terrible at working out network subnets in my head. Is there some command line tool for linux (ubuntu packages a plus), that lets me put in 255.255.255.224 and it'll tell me that is a /27?
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
22
votes
4 answers

Customer site is out of IP addresses, they want to go from /24 to /12 netmask... Bad idea?

One of my client sites called to ask me to change the subnet masks of the Linux servers I manage there while they re-IP/change the netmask of their network based on a 10.0.0.x scheme. "Can you change the Linux server netmasks from 255.255.255.0 to…
ewwhite
  • 194,921
  • 91
  • 434
  • 799
21
votes
3 answers

What is the difference between 0.0.0.0/0 and 0.0.0.0/1?

In the history, I mostly used 0.0.0.0/0 for "match every IP address". Recently, I saw a 0.0.0.0/1 subnet filter. What is the difference between 0.0.0.0/0 and 0.0.0.0/1 and what's the practical use of 0.0.0.0/1?
Arakis
  • 321
  • 2
  • 6
18
votes
3 answers

Is it possible to SSH access a server with a misconfigured subnet?

We have a server where one of our engineers misconfigured the subnet and now we are locked out of this server and the only access that I know of would work is a serial console from IDC (it means asking an IDC engineer to help us with this). What has…
Alexey Kamenskiy
  • 774
  • 9
  • 22
1
2 3
56 57