subnetting vlsm(host and router)

295 pts.
Tags:
if there are 30 computers connected to a router what range will i use? is that mean that i will use range 32 because 30 computers + network and broadcast address or range 64 because 30 computers + network and broadcast address + ip for router?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 24  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    What is your objective? The design of your subnets should depend on your objective. Both of those will work, and other larger ranges will also work.   If you have strong control over your devices and addresses, and you want to isolate 30 selected devices,
    125,585 pointsBadges:
    report
  • TomLiotta
    (The rest of my comment disappeared when I clicked the 'Add' button. I'll try to put back what was truncated.)   If you have strong control over your devices and addresses, and you want to isolate 30 selected devices, then a range that allows 32 addresses will fit exactly. But if there are additional considerations (and there usually are), then 64, 128 or more addresses will be needed.   You need to fit your objective. What is your environment?   Tom
    125,585 pointsBadges:
    report
  • meow12
    tnx for the reply but my question is, am i supposed to count the router in the host? example 30 computers + 1 router = 31 host? is that correct?
    295 pointsBadges:
    report
  • meow12
    because my objective is to save ip addresses as much as possible
    295 pointsBadges:
    report
  • TomLiotta
    am i supposed to count the router in the host?   Is the router going to be in the same address range? If it is, then yes. If it isn't, then, no. We don't know how your networking is configured.   ...my objective is to save ip addresses as much as possible   Why? They don't cost anything unless you're setting up public addresses. You should have thousands available at the least.   Tom
    125,585 pointsBadges:
    report
  • meow12
    because i have a project that analyze the network design and compute for the subnetting i will send a picture of the scenario
    295 pointsBadges:
    report
  • TomLiotta
    because i have a project that analyze the network design and compute for the subnetting   I don't understand what that has to do with your problem.   Are you telling us that you are creating a program that will determine the network configuration values? So you need to write code that takes your input parameters and outputs the configuration values?   If so, you should learn about networking before you think about writing such a program. Or is this all part of your learning?   Tom
    125,585 pointsBadges:
    report
  • meow12
    i already finished the program, im just confuse with the one image that i sent you, in the image that i sent you do i still have to put an ip in the router? so that means that there will be 31 host am i wrong?
    295 pointsBadges:
    report
  • meow12
    http://i1143.photobucket.com/albums/n634/darkcloud4/connection.jpg this is the sample application
    295 pointsBadges:
    report
  • TomLiotta
    do i still have to put an ip in the router?   Yes. If it doesn't have an address, it won't receive any packets to route. In fact, it will almost certainly have two addresses, one external and one internal address.   ...so that means that there will be 31 host am i wrong?   You might be right or wrong. It dependa on what address you give it. If you give it one of the 30 addresses, then you will only have 29 addresses to use for other devices. If you give it an address outside of the 30-address range, then you will have all 30 addresses available.   Whatever address you give to it, it has to be different from all other addresses in your network.   This question is not the same as you asked before. You are now asking if the router needs an address, and the answer is "Yes." But before you were asking if it would take one of your 30 addresses. It will only take one of the 30 addresses of you assign one of the 30 addresses, and I don't know if that's what you will do. Only you can answer that question. It's your choice.   Tom
    125,585 pointsBadges:
    report
  • meow12
    tnx a lot bro, im confuse before because of so many examples i read and they dont add the router in the host, tnx
    295 pointsBadges:
    report
  • TomLiotta
    ...and they dont add the router in the host   In which host? Now your question is potentially starting to change again.   Tom
    125,585 pointsBadges:
    report
  • meow12
    i mean if the router1 connect to 30 host, some tutorial only computers for 30 ip addresses they dont consider to assign 1 more ip for the router 1, they only compute for 30 ip addresses
    295 pointsBadges:
    report
  • TomLiotta
    some tutorial only computers for 30 ip addresses they dont consider to assign 1 more ip for the router 1   If the router is in a different IP range, there's no need to count it in with the "30 ip addresses". As said a couple of times, it's your choice whether to include it or not if you are designing the network. Some tutorials choose to include it; others don't. Both ways are 'correct'.   Tom
    125,585 pointsBadges:
    report
  • meow12
    but how can the 30 host connect to the router if it has different ip range? im just curios im not that good in networking haha im just ask to create a program for subnetting :) 
    295 pointsBadges:
    report
  • TomLiotta
    but how can the 30 host connect to the router if it has different ip range?   Simple. There's wiring between the two devices. When a PC puts a signal on the wire, the router recognizes its own address. As long as there is nothing between them that stops the signal, it doesn't matter what the address range is.   The PC has no idea where any other device is; it just sends its signals (packets) out through its network interface. The PC doesn't care what any "address range" is. The PC will send packets out for any address as long as its a valid address.   And as long as the target device is on a wire that has the signals on it, the target will know that they are addressed to it. Address ranges don't get involved unless a router/firewall or similar device makes a decision not to pass packets along. ("Wire" doesn't have to mean a physical wire.)   You show a 'switch' in your diagram. I have no info on that device; but you can expect it to look at the address of the packets from the PC, recognize that they're not for a device on the internal side and simply pass them out of its uplink side, which should go straight to the router for the router to decide what to do with. Networks can be a lot more intelligent than that, but it's the basic way things work.   Tom
    125,585 pointsBadges:
    report
  • meow12
    so you men in what i have sent image the router automaticaly produce an ip in itself?
    295 pointsBadges:
    report
  • meow12
    can i send you my program so that you can check its correctness? i use html5 the best browser for it i think is google chrome :)
    295 pointsBadges:
    report
  • meow12
    you can send me your email if you want
    295 pointsBadges:
    report
  • TomLiotta
    ...the router automaticaly produce an ip in itself?   No. You assign the address.   It's actually more complicated than that. It depends on what the devices are capable of doing, how you configure them, what method you use for DHCP (or if you use DHCP at all) and other possible factors. Are your devices using static addresses? Is the router providing DHCP services (most likely)? Do you have a dedicated separate DHCP server (unlikely, but the whole purpose is still very unclear)?   Since this has the potential to become a course in networking, that's about as far as this question can go. So far, the question doesn't seem to involve a problem that needs to be resolved, so it's not really appropriate for this site. This isn't a school.   What you need is learning about networking concepts. There are already many sites that act as training sites. Sites from Wikipedia to many of the results from a Google search for [ network tutorial ] have everything needed. The CTDP Networking Guide is a good example. Others are simpler, but I'd keep that one handy.   Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    can i send you my program so that you can check its correctness?   For wide distribution/collaboration, you can always paste code to various sites. I generally use PASTEBIN.   Tom
    125,585 pointsBadges:
    report
  • meow12
    what if the router only connect 2 lan or router to router thats the scope of my project
    295 pointsBadges:
    report
  • TomLiotta
    what if the router only connect 2 lan or router to router -- What if? What are you expecting to be different? -- Tom
    125,585 pointsBadges:
    report
  • meow12
    it clearer now haha tnx for the help
    295 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following