Two questions that I had on my mind about linux...
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.
Two questions that I had on my mind about linux...
1. I've been rebuilding my kernel and trying different options. I have a intel Q6700, which is obviously a quad core processor. It is my understanding that SMP which stands for Symmetric Multi-Processor is an option in the config of the kernel. So since I have a 1 single processor that is a quad core, I would be unable to benefit from that option. However, I get the weird feeling that even ppl with dual and quad cores select this option. I have selected it, and my computer seems to run quite nicely. So my question is, can quad or dual cores, even though they are only 1 processor, take advantage of the SMP kernel?
2. I don't completely understand when people say their ip range is
192.168.1.0/24. I know that 0/24 stands for 1-254 right? 255 would be reserved for broadcast. Could somebody explain this part better. I'm thinking it has something to do with 24 bits.
1. Modern consumer multicore chips [I]do[I] in fact take advantage of SMP!! Leave it on!
2. The /24 part of the ip address is what's called a 'netmask', which determines the ip range of a subnet. There's some somewhat complicated math involved--not bad once you do it a few times--that converts that 24 into octets, and is 'and'ed or 'or'ed, or both, can't remember, with the ip address. A subnet makes a network within a network.
You need SMP-support to have all your cores working.
The MP in SMP may mean Multi-Processor, what else is a Multi-Core-CPU of not actually multiple CPUs glued together (and sharing cache instead of each having their own)?
I guess that for the OS it's no difference if you have a couple of different CPUs or just one CPU with multiple cores, thus: Yes, you benefit from the SMP-option, because otherwise you'll be only using one core.
Just try this:
1. cat /proc/cpuinfo | grep vendor_id | wc -l
2. Then build and boot a kernel without SMP-support.
3. Try #1 again.
So in 192.168.1.0/24, the 192.168.1 are the network ID and the 0-255 would be the host ID, which consists of the network within the 192.168.1 network.
So in 192.168.0.0/16, the 192.168 are the network ID and the 0-255,0-255 would the host ID, network within the 192.168 network.
This about right?
So let's say there's a box running a IP of 192.168.1.12, he would not be able to communicate with a box running a IP of 192.168.0.12, because the first is on a 0/24 or 255.255.255.0 subnet while the latter is on a 0/16 or 255.255.0.0 subnet.
So in 192.168.1.0/24, the 192.168.1 are the network ID and the 0-255 would be the host ID, which consists of the network within the 192.168.1 network.
192.168.1.0 is the network. There is also an IP address reserved for the broadcast, 192.168.1.255. You can assign IPs for hosts in the range, excluding the network and broadcast.
Quote:
Originally Posted by trist007
So in 192.168.0.0/16, the 192.168 are the network ID and the 0-255,0-255 would the host ID, network within the 192.168 network.
This about right?
In a 192.168.0.0/16 network you have 65534 usable IP's. Your first usable IP is 192.168.0.1 and your last usable IP is 192.168.255.254. The broadcast address is 192.168.255.255. Conventionally, people use 192.168.*.* address for private class C networks. Hence 192.168.0.0/16 is hardly ever seen.
Quote:
Originally Posted by trist007
So let's say there's a box running a IP of 192.168.1.12, he would not be able to communicate with a box running a IP of 192.168.0.12, because the first is on a 0/24 or 255.255.255.0 subnet while the latter is on a 0/16 or 255.255.0.0 subnet.
This about right?
In theory the two boxes should be able to communicate. 192.168.1.0/24 is a what you call a VLAN of 192.168.0.0/16. Though you might have to put a route in there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.