LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-29-2014, 12:52 AM   #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, 01:00 AM   #2
notKlaatu
Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware
Posts: 902

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
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, 02: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, 03:37 AM   #4
notKlaatu
Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware
Posts: 902

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
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, 09: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, 10:07 AM   #6
kiss_freely
LQ Newbie
 
Registered: May 2013
Posts: 5

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

Rep: Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-12-2014 12:33 AM
How to use nmap to scan all the network if I know my IP and net mask? pradiptart Linux - Networking 3 08-06-2012 06:23 AM
network Address subnet mask kapilbajpai88 Linux - Newbie 4 04-28-2009 05:27 PM
iptables - network mask Metroid Linux - Security 4 11-09-2004 11:17 PM
All network/broadcast pairs for subnet mask? debbo Linux - Networking 1 06-14-2004 05:27 PM


All times are GMT -5. The time now is 12:00 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration