# Subnetting problem

Discussion in 'MCSE' started by Guest, Feb 1, 2006.

1. ### GuestGuest

I had a problem where I'm supposed to find subnets using the equation 2n-2
with n being the number of bits I borrow from the original subnet mask. If I
wanted to borrow 3 bits, using traditional algebra it would be 2(3)-2 which
equals 4 (subnets). But their example came up with 8 subnets so is that
equation a misprint and should be 2 to the 3rd power (2x2x2 which equals 8)?
And if that is true then I'm assuming I can ignore the (-2) part of the
equation

Guest, Feb 1, 2006

2. ### LRMGuest

2^x-2 is to determine host bits. So lets say you have a class C subnet mask,
which gives you 8 bits for the hosts, the equation would work, 2^8-2 which
is 254. The reason you subtract to 2 is that one is a network IP and one is
a broadcast IP neither of which can be assigned to a host. So your subnet is
lets say 192.168.1.0/24. 192.168.1.0 is network and 192.168.1.255 broadcast.
The IPs in between can be assigned to nodes on your subnet.

For Subnets, however, you wouldn't subtract the 2, it would be just 2^x. In
your example above it is 2^3 which does equal 8.

If the question was asking for subnets you would not use -2 in your
equation.

LRM, Feb 1, 2006

Why the 4377 would I ever want to do math? That's what calculators are for.

function domath(x)
domath = 2^x-2
end function

there. Now I have a calculator for it. I can put it in a text file and never
use it. AND, as an added bonus, I can spend 10 hours looking for the file at
some point in the future, because I know I figured this out somewhere
before.

MCSB

PC LOAD LETTER, Feb 1, 2006
4. ### LRMGuest

Because math is the most fun you can have by yourself, well at least for me,
I don't have an outy.
You should be able to do the calc in your head, and not rely on a piece of
code to do it for you.

Please don't do math if it makes you angry. Continue the beautiful Interneil

LRM, Feb 1, 2006

Well, that ruins all of the myths guys ever have about girls. Waitaminute,
don't girls have TWO outies?
What? Do things by myself? That's a horrible idea!
Breathing makes me angry. Thinking makes me angry. I can't stop thinking. I
can't stop breathing, I can't avoid math. I'm in 4377. DAMMIT. This is
making me angry.

Well, maybe. Maybe I'll just teach the Interneil to do math for me.

Actually, maybe the Interneil should learn math on it's own, because now
that I've figured out that I have an outy, and you don't, why would I ever
want to do anything related to the InterNeil?

MCSB

PC LOAD LETTER, Feb 1, 2006
6. ### LRMGuest

Ok, now that we've established a base line for your anger we need to

LRM, Feb 1, 2006
7. ### TechGeekProGuest

YCMU

--
TGP MCNGP #100100

mcngp.com is better than mcngp.co.uk with updates and a 99% uptime
guarantee

Choke me in the shallow water before I get too deep.

TechGeekPro, Feb 1, 2006
8. ### Robert WilliamsGuest

[snip]
Since when do you need an outy to have fun by yourself LRM?

[snip]
Precisely LRM. At least learn to do it in your head before you start to use a
calc.

I love watching people get annoyed at math....it's fun to watch them pull their
hair out.

Robert Williams, Feb 1, 2006
9. ### LRMGuest

I don't, but I am not as easily distracted by this sort of activity as say
someone with an external object would be. I felt a caveat was necessary when
I originally posted, because I couldn't proclaim that math would be more fun
than something I am not completely familiar with. And I didn't want to speak
for those who may find auto-outy activity more satisfying than math.
I was being sensitive to outy-owners' needs as it were.

LRM, Feb 1, 2006
10. ### Robert WilliamsGuest

Since when do you need an outy to have fun by yourself LRM?
Yes, it does seem we "outy havers" get a little more distrated in times like
this.
Had no idea, I'm learning something new about you everyday LRM. If only I
Unfortunately there are too many of us...I mean them
Sensitivity can be overrated at times

Robert Williams, Feb 1, 2006
11. ### LRMGuest

Strange, I've heard that before.
True dat! I'll try not to let it happen too often.

LRM, Feb 1, 2006
12. ### Robert WilliamsGuest

Stranger, I've said that before....
There's a time and a place for everything.

Robert Williams, Feb 1, 2006

Happiness makes me angry.

PC LOAD LETTER, Feb 1, 2006

No. I refuse to learn to do things in my head that a calculator can do for
me. If this was all about "not relying on a piece of code to do things for
you", then I suggest bringing your replies to me personally, because I might
not get them if you rely on the 6 billion lines of code it took for you to
by using telepathy. Thought so. I'll stick to making calculators.
I like my hair. That's why I create calculators.

PC LOAD LETTER, Feb 1, 2006

Since when do you need an outy to have fun by yourself LRM?

And that's the problem with the entire species... women don't have dynamic

I wrote a function to correct this

public function fixwoman() as string
Set objLRM = CreateObject("Gender.Confusion")
Set objHermaphrodite = CreateObject("Gender.Plugin")
end function
You'll do better with experience. I could train you. You have yet to become
MCSB certified.
I wrote a calculator to take care of both activities, so i can watch more
tv, and spend more time baking muffins.
We appreciate your sensitivity to our outy-ownership.

MCSB

PC LOAD LETTER, Feb 1, 2006
16. ### Robert WilliamsGuest

Whoa dude, calm down. Think happy thought. No need to go postal on us.

Robert Williams, Feb 1, 2006
17. ### LnkWizardGuest

What do you mean postal? This is a mild response.

---------------------------------------------------------------------
Lnkwizard2 MCNGP 2^5

http://www.mcngp.com
"He who does not test himself is worthless indeed"
---------------------------------------------------------------------

LnkWizard, Feb 1, 2006
18. ### FrisbeeĀ®Guest

Rob, meet Rob.

Rob, meet Rob.

FrisbeeĀ®, Feb 1, 2006
19. ### kpgGuest

Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...
Which makes you happy...
Which makes you angry...

kpg, Feb 1, 2006
20. ### Robert WilliamsGuest

Glad to meet you Rob, Rob

Robert Williams, Feb 1, 2006