Showing posts with label AIX. Show all posts
Showing posts with label AIX. Show all posts

Sunday, October 11, 2009

Subnet, Subnet mask and find out the machines in the same sub network

Awrite. Here's the next deal.

What's this subnet that people talk about?

A subnet or subnetwork is like virtualizing a network. Though we have one network, we use masks to make it behave like more than one. Like physical processors and logical processors.

So, here was a guy who asked me how in the world I could claim that the two IP addresses 9.134.60.30 and 9.134.60.200 do not belong to the same subnet.
He thought I'd gone crazy. Two months ago, I'd have said the same.

How do we determine if the given IPs belong to the same subnet? This is where the subnet mask comes into the picture.

Let's take 255.255.255.192 as the subnet mask for the second IP.

Let me take it further in steps.

Step 1: Take one IP and the subnet mask.
Step 2: Do a bitwise AND of the two addresses.

For those of you with the thought, "Oh right, but er.. how?", each of the four numbers in the IP should be converted to an eight digit binary.
eg. 9 would be 00001001. (Use the windows calculator to convert big numbers if you don't want to sit and think about it). Some of you may have a hex address (in system logs etc). eg. "9a ff cc aa". It is simpler in this case. each of them would transform to a four digit binary and you don't need any calculators here. '9 a' would be '1001 1010'.

For our example,

IP address : 00001001 10000110 00111100 11001000
subnet mask: 11111111 11111111 11111111 11000000

Bitwise AND: 00001001 10000110 00111100 11000000
(1 only if both
inputs are 1)

Step 3: Ta da. The result of the bit wise AND is your network address.
Here, it is 9.134.60.192

Step 4:
How many IPs can be in this subnet?
Count the number of zeroes from the right end. Six.
Maximum possible number of machines would be: 2 to the power of 6, which is 64.
Every subnet has a network address (one we found there) and a gateway IP. leaving those two, sixty two other IPs can be accommodated.
Including those two IPs, the range is usually 9.134.60.192 to 9.134.60.255

...and there you go, 9.134.60.30 is nowhere close to being in this subnet.

Peace.

Saturday, September 5, 2009

The AIX OS

IBM has its own brand of Unix. The AIX.

Most users of UNIX that I've met think AIX is some sort of OS used by higher-humans, and Solaris is for humans. Like, there's this dude I know, working in retail services for an MNC. "I work on C and UNIX. Sun's unix, you know. Also, hey, there's this OS... AIX. Gawd, it's so complex. I've even worked on that, you know."

I've not used or seen how Solaris works till this date, but I can assure you, AIX is not being designed solely for secret Nasa operations (or at least nothing I know about!). A 15 year old can work on it just like he works on DOS. Fact is, AIX has so many distinct features compared to its competitors that when you first look at it, you're lost. It takes time to grow into it, and it's worthwhile for UNIX system admins and organisations to read up on AIX and the advantages it offers over its rivals. There's so much!

AIX is mostly used on P-Series systems, and it is designed on top of them, unlike any other style of UNIX; so, I say you get max returns (performance and stability) on your investment on Pseries with AIX, compared to Solaris, UX or linux.

If you're here reading this, it means that you already know about the AIX basics and its history. For all I know, you might even be an ardent DevWorks dude. So, I stop here.

Thursday, August 20, 2009

Intro to me

If you ask me, even God must have had a beginning.

The intro is that I work on AIX, and this is where I mention the usual disclaimers.

* This blog includes just my personal opinions. It does not reflect the views of the AIX organisation or IBM.
* The blog will focus more on performance and related tools and less on AIX in general (as I personally am not the strongest admin around here. I will learn the admin stuff as I write here)
* I don't promise any regular updates and I don't expect regular visits from you. If you visit more and get involved, I'll be tempted to write more.

Introduction to the AIX Operating system will follow. If you have any performance related queries, let me know. I'll at least ask someone who knows about it and get back to you :)