Distinct network subnet masks

Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I understand that 192.168.1.0/24 & 10.0.0.0/24 are distinct networks however are the following also distinct networks?
- 10.0.0.0/24 & 10.0.8.0/24
- 10.0.0.0/8 & 10.0.8.0/24
I have a LAN using 10.0.0.0/8 connected via a VPN tunnel using 10.0.8.0/24 and I would like to know if the two are seen as distinct.
networking tcp
add a comment |Â
up vote
2
down vote
favorite
I understand that 192.168.1.0/24 & 10.0.0.0/24 are distinct networks however are the following also distinct networks?
- 10.0.0.0/24 & 10.0.8.0/24
- 10.0.0.0/8 & 10.0.8.0/24
I have a LAN using 10.0.0.0/8 connected via a VPN tunnel using 10.0.8.0/24 and I would like to know if the two are seen as distinct.
networking tcp
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I understand that 192.168.1.0/24 & 10.0.0.0/24 are distinct networks however are the following also distinct networks?
- 10.0.0.0/24 & 10.0.8.0/24
- 10.0.0.0/8 & 10.0.8.0/24
I have a LAN using 10.0.0.0/8 connected via a VPN tunnel using 10.0.8.0/24 and I would like to know if the two are seen as distinct.
networking tcp
I understand that 192.168.1.0/24 & 10.0.0.0/24 are distinct networks however are the following also distinct networks?
- 10.0.0.0/24 & 10.0.8.0/24
- 10.0.0.0/8 & 10.0.8.0/24
I have a LAN using 10.0.0.0/8 connected via a VPN tunnel using 10.0.8.0/24 and I would like to know if the two are seen as distinct.
networking tcp
asked Apr 20 at 11:52
Dercni
14018
14018
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.
The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.
If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.
add a comment |Â
up vote
1
down vote
10.0.0.0/24 & 10.0.8.0/24 are separate networks.
10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255
10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.
The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.
If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.
add a comment |Â
up vote
2
down vote
accepted
You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.
The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.
If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.
The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.
If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.
You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.
The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.
If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.
answered Apr 20 at 15:01
Johan Myréen
6,76711221
6,76711221
add a comment |Â
add a comment |Â
up vote
1
down vote
10.0.0.0/24 & 10.0.8.0/24 are separate networks.
10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255
10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255
add a comment |Â
up vote
1
down vote
10.0.0.0/24 & 10.0.8.0/24 are separate networks.
10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255
10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255
add a comment |Â
up vote
1
down vote
up vote
1
down vote
10.0.0.0/24 & 10.0.8.0/24 are separate networks.
10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255
10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255
10.0.0.0/24 & 10.0.8.0/24 are separate networks.
10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255
10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255
edited Jun 20 at 11:13
Jeff Schaller
31.1k846105
31.1k846105
answered Apr 20 at 12:33
Bonsi
1016
1016
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438921%2fdistinct-network-subnet-masks%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password