LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2014, 11:52 PM   #1
kiss_freely
LQ Newbie
 
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Network Mask


Hi all, I saw my IP address of WAN connection has a format 118.71.9.128/255.255.255.255. I have a little knowledge about subnet mask. so I don't know why my WAN IP address has all value of mask is 255 ?. I think that the ending value of mask is lower 255.

Thank you!
 
Old 07-29-2014, 12:00 AM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Where do you see this?

The mask of you computer itself would be 255.255.255.255, because it only has one IP address, yes?

If that really is you subnet mask then...yes, that is awfully restricted and means that your network essentially consists of one node. But I don't think that is what it is saying. Context would help, though.
 
Old 07-29-2014, 01:19 AM   #3
kiss_freely
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank notKlaatu, but I really don't understand about network mask. I know that IP version 4 includes 32 bits and was divided into 2 parts (network and host). IP Address 118.71.9.128 belong to Class A with default mask is 255.0.0.0. The first 8 bits for network ID, the remaining 24 bits for host ID. If its mask is 255.255.255.255, all 32 bits for network. so which bit for host part?.
 
Old 07-29-2014, 02:37 AM   #4
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Wull, the first set of numbers would be for the Class A, as you said. So that would be the 255 in the 255.x.x.x part. So if you're on some ISP's network of 118.x.x.x then a mask of '255' means that there's only ONE slot open (because out of 256, 255 are masked out; there is one left, and that one is, in your case, 118. In my case, since my IP address starts with 78, that's where I am).

The next part is the same; x.255.x.x simply says listen on ONE network slot. In your case, it's listening to 71.

The third is the same...255 means one slot is NOT masked, so your computer is listening to 9. That's usually what people are talking about when it comes to subnets. Because in a local network, you might have 487 computers but only 256 addresses. What do you do? you break your network into two subnets, like
192.168.0.x
and
192.168.1.x

If 192.168.0.x is being told to listen in only ONE slot, however, it will never hear any computer living on 192.168.1.x, right? So you would need to open up the mask from something like 255.255.255.x to, say, 255.255.254.x

Does that make sense? It gets confusing because there are a LOT of numbers involved, but you have to believe that most of them are arbitrary; if something has a "mask" of 255 out of 256, then no matter what, it's going to listen to ONE number. If you tell it that that number is 118, then it will listen to traffic on 118.. If you tell it that it's 14, then it'll listen to traffic on 14. It doesn't care WHAT the number is, it only knows that it only listenss to ONE number. If you open the mask to 254 out of 256, then it will listen to TWO numbers, and you can tell it ANY two numbers and it will listen.

Sys admin'ing is fun!
 
Old 07-29-2014, 08:27 AM   #5
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Quote:
Originally Posted by kiss_freely View Post
Hi all, I saw my IP address of WAN connection has a format 118.71.9.128/255.255.255.255. I have a little knowledge about subnet mask. so I don't know why my WAN IP address has all value of mask is 255 ?. I think that the ending value of mask is lower 255.
This is completely normal. It means that you are on a Point-To-Point link. There is no "subnet", there is no "local network". All communication from your address will be sent directly to the other end of the link - your ISP I assume - and they will take care of routing it further.
 
Old 07-30-2014, 09:07 AM   #6
kiss_freely
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank r0b0 & notKlaatu.
 
Old 07-30-2014, 09:15 AM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
PPP links don't need subnets. Heck, they don't even need IP addresses.

There is a computer on either end of the link, that is it. So there is nowhere else for the traffic to go, but to the other end.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ip , network address , subnet mask basics sumeet inani Linux - Newbie 3 05-11-2014 11:33 PM
How to use nmap to scan all the network if I know my IP and net mask? pradiptart Linux - Networking 3 08-06-2012 05:23 AM
network Address subnet mask kapilbajpai88 Linux - Newbie 4 04-28-2009 04:27 PM
iptables - network mask Metroid Linux - Security 4 11-09-2004 10:17 PM
All network/broadcast pairs for subnet mask? debbo Linux - Networking 1 06-14-2004 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration