Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

how we can tell if 2 IPs ar ein same or different broadcast doamins

I have these two IPs

IP 1---192.168.1.1/24

IP 2-----192.168.2.1 /24

Many thanks

mahesh

1 ACCEPTED SOLUTION

Accepted Solutions
Super Bronze

Re: how we can tell if 2 IPs ar ein same or different broadcast

With all the emphasis on broadcast domains and L2, but since the original question referenced IP subnets, I did want to mention broadcasts themselves are not limited to just L2. For instance, IP can "route" an IP (directed) broadcast to a subnet.

4 REPLIES
Hall of Fame Super Silver

Re: how we can tell if 2 IPs ar ein same or different broadcast

Hello Mahesh,

the /24 notation means that the subnet mask is formed by 24 ones followed by 32-24 = 8 zeros

192.168.1.1 255.255.255.0

net part : 192.168.1.0 host part 1

the same for 192.168.2.1/24

192.168.2.1 255.255.255.0

net part : 192.168.2.0 host part 1

net 192.168.1.0 <> net 192.168.2.0

the two ip addresses are in different subnets

a broadcast domain is a layer 2 concept: it is the set of switch ports that receive the same broadcast frame.

the two hosts need a router device cannot talk directly

Hope to help

Giuseppe

Super Bronze

Re: how we can tell if 2 IPs ar ein same or different broadcast

You can't, unless you now whether the two subnets are virtually or physically separated, and if conneced within a routed environment, how broadcasts are forwarded, or not.

Normally, one would expect two separate subnets would not be within the same broadcast domain, but they can be.

Hall of Fame Super Silver

Re: how we can tell if 2 IPs ar ein same or different broadcast

Mahesh

I like parts of both responses. I especially like the point that Guiseppe makes that a broadcast domain is a layer 2 concept. And related to that is the point from Joseph that "You can't, unless you now whether the two subnets are virtually or physically separated". To expand on this point a bit: broadcast domains are layer 2 concepts while IP addresses and subnets are layer 3 concepts. You can not look at layer 3 IP addresses and subnets and know for sure what the layer 2 reality is.

As they both sort of say, we make assumptions about relationships between layer 2 and layer 3. One of our assumptions is that a subnet should be its own broadcast domain and when there are 2 separate IP networks there should be 2 separate broadcast domains. But it is quite possible to have a single broadcast domain (perhaps a single VLAN) and to put 2 separate IP networks into it.

It is also true that if you break some assumptions (like the assumption that a subnet should be its own broadcast domain) other assumptions about how things should work (like devices in separate subnets must have a router to communicate) may no longer be true.

HTH

Rick

Super Bronze

Re: how we can tell if 2 IPs ar ein same or different broadcast

With all the emphasis on broadcast domains and L2, but since the original question referenced IP subnets, I did want to mention broadcasts themselves are not limited to just L2. For instance, IP can "route" an IP (directed) broadcast to a subnet.

304
Views
3
Helpful
4
Replies