Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

subnets

Status
Not open for further replies.

grnfvr

MIS
Dec 21, 2000
111
US
I have been studying up on tcp/ip lately. a couple things i am unclear about concerning subnets. Do you have to join to subnets with a router. Outside of a router (if you are just joining hosts on a hub or switch) should you ever have two addresses with different subnet masks? if so, to what end?
 
1st part, yes all subnets have to be joined by a router of some type. Switches and Hubs work at the Layer 2 of the OSI layer, a router works at Layer 3. In order for you to route specific traffic from one network to another you need a device that works at the Layer 3 of the OSI model. The router can either be a dedicated one (Cisco, Linksys etc.) or a computer setup to route (Windows NT, 2000 etc) the computer must have two network cards installed in it and connected to each of the different subnets you wish to route. Routing must be enabled on the system for any traffic to pass through the system.

2nd Part, I'm not sure I follow you. Two addresses can be a member of the same subnet but if properly configured should never be a part of two different networks.

Hope this helps, let us know if you need further clarification. david e
*end users are just like computers, some you can work with...others just need a simple reBOOTing to fix their problems.*
 
Concerning the second question; all hosts attached to the same network must have the same IP subnet mask. By network, I mean that the hosts are not separated by any routers (the hosts are in the same broadcast domain). The subnet mask defines what part of the IP address is considered the network address, and what part is considered the host address. All hosts on a network must agree on this.

However, there is a technique called router summarization but this technique is only used by routing protocols when routers advertise networks. With route summarization, multiple subnets can be advertised as a single route if the subnets have in common, the most significant bits of their network address (supernet). In this case, the subnet mask is changed to represent multiple subnets (but only in the route advertisement).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top