Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.