Ask Leo! by Leo A. Notenboom

How do I determine the subnet mask I'm supposed to use?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Networking » Network IP Addressing

Summary: A subnet mask is one part of the information used to make a network connection. For most people, it's something you need never know about.

How do I find my subnet mask number. I'm trying to log onto my router and I need my subnet mask number, gateway, dns 1 and dns 2 numbers.

I'm guessing you're not actually trying to logon to your router, but rather configuring your router so that you can use the connection to the internet provided by your ISP.

Exactly how we do what we do next depends on the specific router, so I'll use mine as an example.

But here's a hint: none of it depends on knowing a subnet.

As you point out, there are several pieces of information your router needs in order to provide your internet connection:

"... in the vast majority of consumer, home and even small business connections you never have to know any of this."
  • Your IP address - this uniquely identifies your internet connection, and is actually the IP address of the router on the internet.

  • The subnet mask - a somewhat mysterious number that actually lets your router know what other IP addresses are "nearby"

  • The gateway address - the IP address of the upstream device - the "gateway" to the rest of the network - to which your router should send packets for devices that aren't "nearby"

  • IP addresses for one or more DNS servers - the servers that map names (like "ask-leo.com") to IP addresses.

Here's the trick: in the vast majority of consumer, home and even small business connections you never have to know any of this. It's all provided automatically.

Router IP Configuration

Routers can be configured to use several different approaches to connecting to your ISP. The most common is called "DHCP", or what's referred to by my LinkSys above as "Obtain an IP automatically". That's actually a tad misleading, since the router then gets not only the IP address, but all the other information I listed above, automatically, from your ISP.

You don't have to enter a thing.

Which, of course, is why it's the most common approach.

The opposite end of the spectrum is the "static" IP. When using a static IP, the IP address you should use, as well as all of the other information, is provided by your ISP. Be it in an email, some web instructions, or over the phone - this information is provided by the ISP so that you can then manually configure your router.

You don't have to "find it", you don't have to "figure it out", you just enter the information that's been provided by your ISP, or contact them if you've not received it.

The real problem, of course, is that when configuring a static IP to connect to the internet you can't figure it out on your own. All of these values are assigned and defined by your ISP.

If you find yourself in a position where you think you need to configure a static IP address, check with your ISP for what they expect you to do.

Related:

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

  • What is a "subnet mask"? A subnet mask is a way of telling your computer or router what network addresses it can consider local and which are remote.

  • What is DHCP? DHCP is the protocol computers use to request and receive a "dynamic" IP address.

  • How should I set up my home network? Once you add a second computer, you're faced with setting up a network, at least to share the internet connection. Here are some general guidelines.

Article C3753 - June 5, 2009

Recent Comments
3 Comments

This person might be asking something like this:

How can I find the default gateway (not subnet) of my router if DHCP is disabled on the local end? I can't be automatically assigned a LAN IP by my router so I have to manually do it. How do I find out the static information from an unknown router with an unknown default gateway? I can keep guessing using my browser and attempt to log in, but is there an easier way?

In something like this, I would suggest resetting the router which will then reenable DHCP on the local side by default. This will at least give you an automatic connection which you can use to write down the important info (most importantly the "default gateway", which you can then use to log into your router and get the DNS servers from your ISP).

The subnet mask simply tells the router what range of IP addresses it will relate to, usually 255.255.255.0

Posted by: Chris at June 7, 2009 12:16 PM

Try this.

From the Start button select Run
Enter cmd and press enter
In the window that opens type
ipconfig /all

This will provide all the information you are looking for.

Regards

Ken

Nope. That'll show you what you have once you're connected, but not what you should be configuring things to in order to connect.
- Leo
10-Jun-2009

Posted by: Ken at June 9, 2009 11:27 AM

Ken, the command screen 'flashes' with no chance to read. How to hold the screen on?

Posted by: LeRoy Laycock at June 10, 2009 9:33 AM

Post a comment on "How do I determine the subnet mask I'm supposed to use?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!