Ok, I know it's not cool to answer a question with a question, but sometimes it's necessary...
What year/engine/transmission?
The NP231 will have FOUR selections for drive (including Neutral) - 2WD, 4PT, N, 4LO. Insert 4FT for the NP242 - I believe it comes betweel the 4PT and the Neutral.
Of course, you can also look at the transfer case directly - since it has an ID tag (usually) on the rear of the case, opposite the front drive output. That will tell you directly - either NP242 or NP231. Typically, the NP242 was found on the Limited XJ's, and was (nearly, I'm not sure) always used behind an automatic.
The rear axle is just about as easy - look at the thing. If the cover is nearly oval, it's a Dana 35. If you have ABS, it's a Dana 35. If the cover is more hexagonal (and so is the flange it's bolted to,) it's a ChryCo 8.25"
Search up "old_man" here, and check out his website for an axle ID guide - I haven't created mine yet.
5-90