You are in Home page » Documentation » Netmask for childs |
The netmask explained to my daughter.
Abstract. Between all the parameters for the formulation of the access to the net, the netmask it is between the elements mainly encircled from a aura mystery and that, of usual, it comes left 255.255.255.0 without not to know why. This document tries to explain with a comprehensible language, what the netmask is and in which way computer uses such information for sending data over the net. The ill-famed one triade: IP, gateway and netmask.Nearly all are capitato, at least once, of imbattersi in the cosi said IP address that is in that one quaterna of numbers, comprised between 0 and 255, separate to you from a point. Even made curious then from this object a po' has been searched on on the net meant its until discovering that the IP others is not if not the address univoco of every public machine on Internet. IP address is therefore, in the virtual world of Internet, what the address mails them is in the life every day. In the real world the address mails univocamente identifies them an adressee (and sender) of a way letter that this can reach the only real adressee between all the billions of possible adressees. In the virtual world IP address univocamente identifies the sender and the adressee of a particular called object package TCP/IP. Therefore as a letter contains, on the envelope, the address mails them of the sender and of the adressee, in the world of the TCP/IP, every package it contains on the envelope, call in this case "header", IP address of the sender and the adressee. The information that the two computers want to be exchanged and that, nel real world, would make the veci del contained della letter, is called, nel world goddesses computer "payload". Therefore two computers in order to communicate exchange packages TCP/IP containing in the header their respect IP addresses to you and in payload the true and own information. So that all these functions without ambiguity are necessary that the allocation of the addresses publics of Internet is univoca and is not therefore possible gives an IP address arbitrarily. In fact, like in the real life, also in that virtual one we cannot invent an address but it comes assigned to us. Once in possession of IP address to assign to our calculating we can open the relative shielded one to the configuration of the net. But any is our operating system will always find of forehead at least three parameters: already cited IP address, netmask and the gateway of default and until the configuration of these parameters it is not correct and coherent we will not be in degrees to approach the net resources. But if in the real life, the address mails them enough for being able to send and to receive a letter, why on Internet IP address is not sufficient? As the computer to the shipment of a package reasons on the net.In order to understand why single IP address is not a sufficient information for being able to interact with other computers of the net we must follow the logical process that door to the creation of a package. We consider therefore that our S computer (source) with IP address, as an example, 195.32.69.2 must send to a information to a D computer (adressee) that for hour we identify with a generic IP address AAA.BBB.CCC.DDD. Like saying, the information becomes therefore "payload" of a package TCP/IP and comes therefore inserted in one particular envelope TCP/IP. On the envelope it comes put the address of the sender, 195.32.69.2 and that one of the adressee. We imagine, to this point, the calculating with the envelope in hand that os in the cassette mails them more neighbor. That that we would see, to this point, and that it finds itself to having to make one chosen. In the real case the cassette has two fissures, one for the destined mail to the own city and the other for all the other destinations. The same thing happens in the net. The computer must decide if the letter is destined to a calculating of the own local net or if the adressee is "more far away". Moreover, while in the real case the choice can also be committed an error and be hoped that the letter comes equally recapitata, in the computer science case must be exact. But why it must make this choice? Why the package goes dealt in different way to second of the various destination. In fact if the package is destined to the local net it can already be thrown cosi com' is on the net in how much the D computer, ivi in listens, will see the package to R-in.transito destined he and it will recover it. In the case in which the adressee it is remote, the package cannot be thrown cosi com' is on the net in how much D is not in listens on it. The package, in this last case, goes modified for being given in meal to a particular calculating of the local net, the gateway of default. And here therefore that ago its appearance the second fundamental parameter of the configuration of the net. The gateway identifies the access to the external world and is to knowing like catching up the rest of Internet and is therefore to it that we must send the package so that comes correctly forwarded to D. Allora without one corrected configuration of the gateway of default could even catch up correctly our local computers but the rest of the world would be interdetto. Once cleared therefore why of the necessity of the choice, it must clear like. How ago our PC to understand if the adressee is local or is remote? In the real world the deductive process would be simple: S lives in the city X. D lives in city X? If the answer to this question is positive then the letter it goes sended in the fissure for the same city otherwise goes imbucata in the other. In the virtual case the question is similar: S is found in the net X. D is found in net X? The positive result or negative of this question decides the way with which the package it goes sended, if to a local computer or the gateway of default. The netmask it resolves the problem of what is local and what is remote.The question to which we must therefore know to answer still contains but one incognito. S has IP address 195.32.69.2 but what agrees for net X? In order to calculate net X not enough the acquaintance of single IP address. Even if more scaltri they could answer that the net to which IP address 195.32.69.2 belongs is net 195.32.69.0 and this answer is often that right one, in the world of the computers enough not to often guess to us, must always guess to us. You will sure have understood that in order to gain the net address to which an IP address it belongs there is need to know the netmask. The netmask, identifying the net to which an IP address it belongs, it identifies what is local and what is remote. Moreover the identification of what is local from also a visualization of qual' is the interval of local IP addresses and therefore of how much it is or it can be large our net in the sense of the number of computers that it can contain. A little binary mathematics.Hour we do not have to be scared but in order to understand in that way from the acquaintance of IP address and netmask the drifts the address of the net we must penetrate a po' in a world formed from zeri and uni, the world of the binary mathematics. We begin to know this world making the acquaintance with the two main actors, Mr. ONE and Mr. ZERO. Thanks to these two symbols are possible to define whichever number and what we get ready to ourselves to make hour is to see like this thing, cosi from the first moment strange, it can work. In the numeration system that we all know ten symbols enter in game with which we write all the numbers. These ten symbols are:
that it arranges with with one logical said posizionale to you they allow us to write a whichever number. For what it is "the posizionale" adjective? We try to understand it with an example. When we want to write the year of birth of following undersigned we the put one of flank to the other symbols
Our perception of this sequence of figures is a posizionale perception nel sense that this way to write from a different weight alle single been involved figures cosi that number 9 in second position from left does not have the same value dell' other 9. Every position to the left of an other "hung" ten times more than that one to right and therefore taken the numbers over from right will be had that that number indicates nine times more once one more six times ten more nine times hundreds thousands. E' this and only this that we indicate when we write "1969".
Ten symbols, posizionale increment of powers of ten, all this to repeat itself of value ten from the name to our called numerical system "decimates them". Usually one says that the fact to have a system decimates them drift from the fact that we have ten fingers and therefore I use it of ten symbols it is only a convention and it is in truth possible to use an arbitrary number of symbols in order to write the numbers. In truth, the cosi said formed binary system exactly from the single symbols
the calculating covers a fundamental importance in the world of the computers in how much, working with currents or lives magnetic is alone in a position to less finding the presence or the absence of one of these fields in a memory element and the survey or than such fields it comes associated to the reading in the cell of memory of one or one zero. But inasmuch as our brain is accustomed to the system decimates them, we see in the first place as a correspondence between the first numbers of the system is constructed decimates them and of that railroad. Zero and one is obviously equal in all and the two systems. With the two we have the first difficulty. While in the system it decimates them exists an only symbol that identifies such value univocamente, in the binary system we have already exausted all the esprimibili numbers with a single figure and therefore we must pass to two figures. As in the case it decimates them in which after the nine it comes the ten, also in the binary case, after the 1, it is passed having to use two figures and therefore the binary corrispettivo of the two decimates them e' the 10. The three railroad decimates them will be the 11 and with the four we have ended also all the ways to express in railroad a number with two figures and therefore we pass to three and therefore the the 100 four decimates them e' railroad. Reassuming and extending these associations, indicating with the pedice the type of relative numeration, will be had that 010 = > 02, 110 = > 12, 210 = > 102, 310 = > 112, 410 = > 1002, 510 = > 1012, 610 = > 1102, 710 = > 1112, 810 = > 10002, 910 = > 10012, 1010 = > 10102, 1110 = > 10112, 1210 = > 11002, 1310 = > 11012, 1410 = > 11102, 1510 = > 11112, Obviously also the binary system is posizionale and, as in the numeration it decimates them a position on the left is ten times greater of that one to right, analogous in the binary system, a position on the left is two times greater of that one to right for which, as an example, 1001112 means, leaving from right, once one more once two more once four more once trentadue and therefore 3910.
Well, hour that we know the point of view of the calculating R-with regard to the numbers, we are in a position to watching IP address from a new point of view putting to us in the cloth of a computer. When we human beings say that a calculating has address 195.32.69.2 which the computer sees is four sequences of eight binary symbols separates to you from a point. Every binary symbol 0.1 comes called in jargon "bit" and eight bit goes to form a new called element "byte". Therefore IP address can be seen like a sequence of 4 byte or, that it is the same thing, of 32 bit. Why we have said that every element of the sequence is formed just from 8 bit? Why we have already said that the numbers separate you from the point can go from 0 to 255 and 255 in railroad are
That this is just the value that represents 255 in railroad sees without having to add all the terms over with a simple one trucchetto. Taken the number
that it is the successive one of the number over has that this is 28 = 256 in decimates them and therefore the number over is 28-1 that is just 255. To this point, for pure delight we show our IP address used in the example from the point of view of the binary system
Gia that there are, we write also netmask the 255.255.255.0 in binary format. This is much simple one inasmuch as we have as soon as seen qual' it is the binary rappresentazione of number 255 for which
But why there are threads in all these to you sfilze of uni and kilometric zeri? Why thanks to these we are hour in a position to introducing the operator who will allow to calculate us the net knowing the IP address and the netmask. We make therefore the acquaintance with operator "AND". What we can say of this operator? Beh, in the first place that it is a binary operator that is is a mathematical operation that goes applied to binary numbers and that some transformation executes one on the binary figures of the number transforming them in qualcos' other. The type of transformation comes in this way defined to words: the AND between two binary figures from like result 1 if and if all and the two figures are 1 otherwise the result is only 0. Inasmuch as the possible combinations of two binary figures are only four are possible to write the operation of operator AND listing all the possible cases and therefore writing that: 0 AND 0 = 0 0 AND 1 = 0 1 AND 0 = 0 1 AND 1 = 1 A way equivalent in order to express the operation of operator AND is to say that applying it to a whichever binary figure and the 0 from like result 0 while applying it with number 1 from the same binary figure. Well, hour we have all the instruments in order to define and to calculate the net to which a data belongs IP address. The net of an IP address is the result of operator AND applied to the same address and its netmask therefore, in the specific case, expressing for brevity, for hour the two elements still in binary notation will be the result of the operation net X = 195.32.69.2 AND 255.255.255.0 It is looked at endured that, in this case, the calculation is much simple one. We begin in fact to apply operator AND on the first byte of IP address and the netmask in order to obtain the first byte of the net address 19510 AND 25510= 110000112 AND 111111112 But, for said how much over, operator AND between a whichever binary number and 1 are the same binary number and therefore 19510 AND 25510= 110000112 AND 111111112= 110000112 = 19510 and it is looked at therefore endured that the result of the AND on the first three byte of same the 3 IP address is byte begins them. Going to calculate the fourth byte of the net whose value is the result of the operation 210 AND 010= 000000102 AND 000000002 that, for how much before said that is that the operation of AND between a whichever number and zero from always zero us door to conclude that 210 AND 010= 000000102 AND 000000002= 000000002= 010 Therefore we are joints to the definitive result. The net to which IP address 195.32.69.2 with netmask 255.255.255.0 belongs is net 195.32.69.0. Which are therefore local IP addresses to our S computer? For as we have made the accounts over are looked at endured that the addresses of the shape 195.32.69.x in how much are all, for every x its AND with zero will be always zero and therefore the net will be always that one over and therefore the same one of S. Then we are hour in a position to deciding if our package between S and D goes forwarded through the gateway of default or is for a local IP. If AAA.BBB.CCC.DDD is of the shape 195.32.69.x then the envelope is destined to a computer to search directly on the local net, otherwise it goes sended to the gateway of default for the instradamento on Internet. Next to this point someone could think that the calculation of the net address banally is made placing zero the last byte of IP address. But this is not true and it it is alone and only if the netmask it is that one up to now used as an example. We see to clear this with an ulterior example. We take a communication that is involved two computers with 195.32.69.2 address 195.32.68.2 and. These belong or not to the same net? Pensateci well a moment before answering.... The answer is that... dipende. It depends on the netmask assigned. If the netmask it is that one considered up to now then you will have guessed the answer that, for said how much over, is obviously not. But I make you to see that often it convene to make the accounts until has at least not taken a little familiarity and of manualità with the IP and the netmask. We consider the two IP over but we also consider that she has been they assigned an other netmask: 255.255.254.0 and we calculate of new the net to which the two IP they belong. For the first address it is had that 195.32.68.2 AND 255.255.254.0 = 195.32.xxx.0 in how much, being to us never capitato the calculation 68 AND 254 we do not know how much face a priori. Executing it is had that 6810 = 110000102 , 25410 = 111111102 and therefore
and therefore the result is of new 6810 and therefore the net to which address 195.32.68.2 with netmask 255.255.254.0 belongs seems to still verify the rule empiricist seen over that is from like result net 195.32.68.0. We see hour the net of the other address. Of new, the only calculation that we have not never executed e' 69 AND 254 and being 6910 = 110000112 are had that
and here the surprise 6910 AND 25410 = 6810!!! For which both IP addresses belong to same net 195.32.68.0 and therefore they are addresses that belong to two computers of the same local net. If the netmask it is 255.255.255.0 then 195.32.68.2 and 195.32.69.2 they belong to two different nets and the computers will send the packages of communication between the two blot some to their respect gateway to you but if the netmask it is 255.255.254.0 then the calculating will directly send the envelope on the local net expecting that the other computer directly is connected to it. As it has been looked at, the netmask it is therefore a discriminating element in order to decide what is local and what is remote and the question which net belongs an IP address is badly specific mail if not also the netmask to assigned it. We list to hour some remarkable cases. Netmask the 255.255.255.0 said class C, that sight over, that it has addresses available for 28-2 computers (8 are the bit to zero) that is 253 usable addresses in order to assign to the computers of the net Netmask the 255.255.255.192 that divides one class C in four sottoreti of 26-2 = 62 computers Netmask the 255.255.255.128 that divides one net of 256 addresses in four sottoreti of 27-2 = 126 computers Netmask the 255.255.255.253 2 addresses available are the smallest usablenetwith 2 2 -2 =, often used in the point-point where an address is the IP of a side of the logon and the other is the address of the other point (the third party is the net address and the quarter over is cited address of broadcast) Netmask the 255.255.255.254 are inusabile in how much also not are an IP available 2 1-2= 0 here (embezzle two why one is the address of inusabile net and the other is an other particular address that all the nets must have called address of broadcast). Netmask the 255.255.255.255 represent the single host in how much, being all the bit to 1 from like result the single same IP. Al speech IP relatively available this is a degenerate case with which one is not identified net but the address del same computer. Netmask the 255.255.0.0 said B class that it has local addresses available for 216-2 computers formed therefore from 255 classes C. Netmask the 255.0.0.0 said also class To computers formed from 255 B classeshavelocal addresses available for 2 24 -2. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright© 1997-2006 Emiliano Bruni | Online from 16/08/1998 with visitors | Write me to: |
complimenti ha spiegato molto bene, tranne la parte subnetting che non si capisce prorpio, ma questo errore lo fanno quasi tutti quelli che cercano di spiegarla.
Ciao
esiste un programma per calcolare la netmask? perche nn ci ho capito niente
Guarda, ce ne sono tanti online: te ne riporto qui alcuni:
http://jodies.de/ipcalc
http://www.faqintosh.com/risorse/en/othutil/webapps/ipcalc/
Ottimo! Mi è stato molto utile a rinfrescarmi la memoria! :)
grazie per il suo lavoro, io non sono Sua figlia ma ho apprezzato molto!!!
mi è molto servito leggere tutto qst! tra una settimana ho l'esame di reti di calcolatori, saprebbe consigliarmi qualke sito dove trovare dei casi di studio sull'interazione web e sull'invio di una mail? grazie davvero!!!
bellissima spiegazione!io ho cambiato 2 professori di sistemi nella mia scuola(itis)ma nesuno mi ha fatto capire così bene il subnetting!
mica potresti darmi spiegazioni sul routing statico e dinamico ?
ottimo lavoro, ha spiegato proprio bene, mi è servita tantissimo e la ringrazio
Grazie ad Antonio, Stefania, Gabriella, Livio e Stefano e a tutti gli altri che non hanno potuto lasciare un messaggio, ma a cui spero di essere stato utile.
Fà piacere ricevere dei complimenti, ma fà sicuramente ancora più piacere, quello di essere stato d'aiuto a qualcuno.
Grazie di nuovo a tutti
Qual'è l'indirizzo di un gateway valido per l'host 142.123.235.94 avente netmask 255.255.255.224?
Un qualsiasi indirizzo compreso tra 192.123.235.65 - 192.123.235.94.
L'ip del gateway di default e' un IP assegnato, nel range dall'amministratore.
Di solito è il primo o l'ultimo della rete ma è solo una consuetudine e non è una regola. Il gateway, è un normalissimo host con un IP quindi all'interno della rete ma non necessariamente il primo o l'ultimo o il quinto,o...
L'unica differenza rispetto a altri host è che di solito ha più interfacce di rete di cui una collegata alla rete locale e una che, in qualche modo, raggiunge un'altra rete (di solito INTERNET).
Grazie, ma credo che nella Sua risposta ci sia un errore: il 192 dovrebbe essere un 142.grazie sempre per la Sua immensa disponibilità e professionalità.
Complimenti per la chiara esposizione, quello che non capisco è come "tenere a mente tante informazioni" .... mi piacerebbe qualcosa di più intuitivo chiedo troppo ?
Grazie selvin
Grazie, finalmente ho capito qualcosa!
(Mi sono permessa di mettere il link a questa pagina nel forum degli studenti dell'università di Reggio Emilia)
Per Francesca: è un onore, oltre che un piacere essere linkato :-D
Io non ho capito bene la differenza tra : NETMASK e SUNBNET MASK
Sono sinonimi? Se sì perchè la traduzione è diversa?
Se no, potresti spiegarmi la differenza?
GRAZIE per il tuo lavoro!!!
Sono sinonimi
Io sto studiando queste cose e ho trovato la parte sulla subnetting davvero semplice e lineare!
Grazie grazie! lei non ha aiutato solo sua figlia ma centinaia di migliaia di persone!!
Salve Emiliano,
sei stato chiaro e hai utilizzato un linguaggio talmente 'elementare' che mi farebbe piacere se tu spiegassi cosa è un filesystem e che compito svolge e come ,nella stessa maniera con cui hai fatto col netmask.Ho scoperto per caso il tu sito ed adesso ho passato la voce ......mi aspetto il resto .Io sono quasi nelle condizioni di Benedetta.Spero tanto che tu possa trovare il tempo necessario a ciò Grazie
Grazie mille :D
finalmente ho capito per bene il netmasking :P
Caro Emiliano, lei mi è stato davvero molto utile e ho finalmente le idee chiare. La ringranzio... continui così!
Grandissimo Emiliano!!! Mi chiedo come tu faccia ad aver in mente tutti questi concetti (non semplici) e spiegarli con estrema facilità ed in concetti semplici e soprattutto chiari!!! Mitico :D
Ciao per prima cosa mi aggiungo hai complimenti degli altri è la prima volta che visito il tuo sito e ho letto questo articolo con leggerezza, perchè sono stanchissimo ma ti dico soltanto che da oggi devo occuparmi della gestione della rete del mio ufficio quindi credo che non ti darò pace perchè ..ne soò proprio poco...intanto grazie Mario
Emiliano ,sono sempre quello del commento di poco fà :-) sono stato appena adesso a leggere il tuo curriculum e volevofarti i complimenti e scusarmi se magari ho usato un tono un pò sarcastico ma avevo scambiato il tuo sito per un" classico Forum ,comunque tutto il resto che ti dicevo è vero , forse ti domanderai perchè mi hanno messo ha fare il gestore ...ti faccio fare due risate... perchè tra tutti quelli che non ci capiscono niente forse sono l'unico che può attivarsi per arrivarci....purtroppo sono i bug delle pubbliche amministrazioni.
Articolo utilissimo e magnifico sito! Mi complimento con lei e la ringrazio.
Grazie davvero Emiliano,
utilissimo, e davvero molto chiaro, finalmente c'ho capito qualcosa :)
Qualcuno sarebbe così gentile da dirmi: Qual'è l'indirizzo di un gateway valido per l'host 217.9.64.88 avente netmask 255.255.255.224? Non lo riesco proprio a calcolare, ma c'è un modo standard per calcolare il gateway o no??Grazie
@Raffaele
Nella rete a cui appartiene l'host 217.9.64.88 con netmask 255.255.255.224 fanno parte tutti gli host con indirizzi compresi tra 217.9.64.64 e 217.9.64.95, dove il primo e' l'indirizzo di rete e l'ultimo, quello di broadcast. Purtroppo, anche cosi, non si può dire a priori quale sia il gateway di questa o di qualsiasi altra rete in quanto questo è a discrezione dell'amministratore della rete. Quindi, nel tuo caso, qualsiasi host tra 217.9.64.65 e 217.9.64.94 può essere un gateway. Se ti può essere di aiuto, di solito si usa il primo o l'ultimo IP disponibile, per cui prova con questi ultimi due IP che ho scritto ma ripeto, non c'è uno standard. Per farti un ulteriore esempio, a casa mia, la mia rete interna è 192.168.0.0/24 e quindi si potrebbe sperare che il gateway sia il 192.168.0.1 mentre invece l'ho configurato come 192.168.0.10 perchè il .1 è da tempi immemorabili il mio PC principale su cui lavoro.
Grazie per la gentile risposta, il mio Prof. ha detto che il gateway valido per quell' host è 217.9.64.94. Scelto tra 217.9.64.94__217.9.64.61__217.9.64.126__217.9.64.64__217.9.64.95 quindi perchè gli altri non possono essere gateway per quell'host? Inoltre tra una settimana ho l'esame di reti e questa domanda o simile uscirà di sicuro. Quale differenza c'è tra il mio quesito e quello n.10 di sasy del 25/09/2007?? Grazie di tutto e scusi per le troppe domande ma non riesco proprio a prendere informazioni sui gateway. Distinti saluti
@Raffaele
Ecco, vedi che bisogna sempre spiegare il contesto quando si fa una domanda :-D
Adesso la tua domanda #27 ha un senso ben definito e non ambiguo. E' un quiz a risposta multipla e, in questo contesto la risposta che ha dato il tuo professore è perfettamente giusta. Le altre risposte multiple non possono essere un gateway perche':
Rimane quindi 217.9.64.94 che è un indirizzo usabile della rete in questione e quindi può essere l'indirizzo del gateway. Visto che non ci sono ambiguità 217.9.64.94 E' l'indirizzo del gateway.
Riguardo al quesito #10 di says, anche li non è spiegato alcun contesto e' quindi la risposta giusta, in questo caso è "non si sà, puo' essere uno qualsiasi tra gli indirizzi IP validi per la rete" come ho risposto a lui in #11 e a te, quando non avevi specificato il contesto, in #28.
Spero di essere stato chiaro, altrimenti sono qui a rispondere ai tuoi ulteriori dubbi e a quelli degli altri.
Grazie è stato chiarissimo e ora le cose sono molto più chiare, a questo punto mi servirebbe capire solo la tecnica con cui viene calcolato l'indirizzo di broadcast. Distinti saluti
Dopo una ricerca sono riuscito a calcolare un broadcast, praticamente si fa una XOR NOT tra la subnet mask e l'indirizzo di rete, dico bene? Grazie di tutto.
Bellissimo! non solo l'ho capito tutto, ma scorre pure che è una meraviglia per gli esempi e la successione.
Finalmente so a cosa diamine serve il gateway e la netmask!
da come me l'avevano spiegato l'argomento all'università (o meglio NON spiegato, dato che l'insegnante pretendeva che imparassimo in sole 6 lezioni tutto quello che riguarda le reti di calcolatori!) mi sembrava una cosa dell'altro mondo.....grazie mille, mi hai tolto parecchi dubbi :)
La Netmask.. questa grande incognita fino a che non ho letto la vostra descrizione..
Grazie del bel lavoro!
Ciao
Frank
Ciao.
Ho un problema particolare legato alla rete IP.
Sto lavorando con alcuni PLC in rete, nei quali posso definire delle variabili che vengono condivise in rete da tutti i dispositivi.
Quando definisco la connessione di reteUDP per le variabili, mi viene chiesto di immettere l'indirizzo di broadcast. Non posso immettere l'indirizzo destinazione, in quanto più dispositivi restano in ascolto contemporaneamente sulla stessa porta.
Nella pratica, in una rete classe C con range 192.168.0.0 - 192.168.0.255, quale broadcast address potrei mettere per limitare il broadcast (che fa un sacco di traffico) ad un numero di macchine limitato, non più di una decina?
Finora nessuno mi ha saputo rispondere...
wow fai paura!l'hai spiegato benissimo e pensare che io cn 3 anni di sistemi nn ci ho mai capito niente...cmq adesso ho finito...domani ho la terza prova per l'esame di stato e quindi nn so se un domani mi servirà...cmq davvero COMPLIMENTI!!!!!
grazie !
E' tutto descritto in modo chiaro e semplice.
Semplicemente fantastico! Grazie 1000!!
Salve =D Prima di tutto grazie per la spiegazione... mi è stata molto utile. Grazie davvero =D
Arriviamo a noi... ho bisogno di chiederle un chiarimento su di una domanda a risposta multipla :
Data la rete di classe B, con indirizzo 144.227.0.0, cui sia associata la netmask
255.255.248.0, quante delle seguenti affermazioni sono vere?
Affermazione 1: L’indirizzo 144.227.248.255 corrisponde al broadcast sulla sottorete
144.227.248.0
Affermazione 2: L’indirizzo 144.227.248.255 corrisponde all’host 255 sulla sottorete 144.227.248.0
Affermazione 3: Si possono avere al massimo 32 sottoreti distinte
Affermazione 4: L’indirizzo 144.227.248.255 non è un indirizzo valido, in quanto contiene tutti 1
nel campo host
a) due affermazioni sono vere
b) una sola affermazione è vera
c) nessuna affermazione è vera
d) tre affermazioni sono vere
Secondo lei, qual è la risposta corretta?
La ringrazio già da ora per un eventuale chiarimento =D
Direi la b, una sola affermazione è vera, ossia la terza. Infatti dall'informazione che esiste una rete 144.227.0.0/21 ossia da 144.227.0.0 a 144.227.7.255 non consegue nessuna affermazione possibile sull'indirizzo 144.227.248.255 che appartiene ovviamente ad un altra rete di cui non viene data alcuna informazione. Quindi l'affermazione 1,2 e 4 non sono definibili in questo contesto. La 3 è invece valida perchè la netmask /21 indica appunto 32 sottoreti realizzabili
Ho ancora un dubbio ... mi spiego meglio : mi è sembrato di capire che ci sono due RFC che trattano il comportamento da avere di fronte la subnet ...
l' RFC 950 ( sottolinea che i bit S della subnet non possono essere tutti 1 o tutti 0 e le sottoreti
sono 2^S - 2 ) e l'RFC 1812 ( prevede che i bit S della subnet siano tutti 1 o tutti 0 e le sottoreti
sono 2^S ). Nel caso della domanda a risposta multipla, allora, io avrei due situazioni :
- Se si usa l'RFC 950 la risposta è la c : " nessuna delle affermazioni è vera " .
_ Se si usa l'RFC 1812 la risposta è la a : " due affermazioni sono vere " perchè il terzo ottetto con tutti 1 nella subnet ( 11111000 )
dà 248 in decimale .
La prego di spiegarmi dov'è che il mio ragionamento fà acqua :/
La ringrazio =D
grazie, bella guida
Fantastico! In un'ora ho trovato modo di capire i numeri binare e le netmask!
Questo è puro oro per un autodidatta come me che non sa come districarsi, tra guide e concetti mai sentiti prima.
ottimo lavoro :D :D
potrebb' essere così gentile da spiegare matematicamente, come applicare le access- list. L'insegnante l' ha spiegato con un calcolo ( partendo da 1 a 127), ma non ho capito granché
chiarissimo
grazie
Scusate una domanda,
ma la differenza nell'utilizzo di una notazione CIDR rispetto alla relativa netmask dove sta??
Se io scrivo un indirizzo ip in notazione CIDR con classe /23 o se lo scrivo con netmask 255.255.252.0 non vedo le differenze.
Sbaglio?
@Marco: infatti non ci sono differenti. Sono due modi differenti di dire la stessa cosa ossia quanti bit sono accesi (1) e quanti spenti (0)
Complimenti! Se anche nelle scuole si trovassero professori così bravi saremmo tutti migliori!
Bottaro lo spiega molto meglio!!!
Mi sto preparando per il CCNA della Cisco e devo dire che, magari, tutte le dispense fossero cosi chiare.
Dunque, dunque.
Vediamo se ho capito davvero bene:
il pacchetto informativo payload viene inviato al gateway che è l'accesso verso l'esterno della rete locale.
Il gateway prende il pacchetto informativo e fa queste operazioni:
1) confronto tra ip mittente e subnet mask per trovare la rete del mittente.
2) confronto tra ip destinatario e subnet per trovare la rete del destinatario.
Se coinvicono, vuol dire che l'informazione viaggerà su rete locale verso un altro pc della medesima. Se non coincidono, ovvero se risultano 2 reti differenti, vuol dire che il gateway dovrà far uscire l'informazione verso l'esterno, in internet quindi.
Mi ci sono avvicinato un pò?
Saluti.
@Fab. Non proprio. Il ragionamento da te esposto viene fatto direttamente dallo stack TCP/IP presente sul PC. Se il pacchetto è per la rete locale, il PC lo butta sulla LAN, se è per una rete esterna, lo da al gateway.
Poi, se vogliamo andare oltre, il gateway confronta il destinatario con la sua tabella di routing, se trova un riscontro fa quello che dice la tabella di routing, altrimenti, se esiste una rotta di default, la classica 0.0.0.0/0, usa quest'ultima come ultima scelta.
Dunque...stack tcp/ip consiste nel prendere l'info...imbustarla con header di mittente e destinazione? Quindi è già insito nei protocolli il fare il confronto tra l'ip del mittente e la subnet mask per vedere a che rete appartenga il pc che manda l'info e quello che la deve ricevere?
E cos'è la tabella di routing?
Dal suo articolo non mi è chiaro come si possa evincere l'indirizzo della subnet mask. Dove andiamo a pescare quel 255.255.255.0 o 255.255.248.0?
Grazie mille e buona domenica :D
@Fab
Si, è insito già nel protocollo.
La tabella di routing è, nel caso dell'IP, un "posto" all'interno del PC/Router dove c'è scritto: "per inviare i pacchetti alla rete X usa il gateway Y o l'interfaccia Z". Questa tabella di routing può essere statica oppure dinamicamente modificata/generata da protocolli di routing dinamici quali il RIP, OSPF, BGP e altri.
In che senso: "evincere la netmask"? Sul PC stà nella configurazione dei parametri del TCP/IP. Se invece intendi: "come faccio a sapere la netmask di una rete" non lo puoi sapere. Solo chi ha configurato la rete può dirti qual'è la sua netmask oppure puoi guardare la configurazione di uno dei PC della rete. La scelta della netmask dipende da scelte eseguite dall'amministratore della rete e si basano sul numero di apparati che si suppone conterrà la rete o sulle informazioni fornite a monte dal provider di accesso alla rete.
Nel 99.999% dei casa il gateway è un router. Comunque la tabella di routing c'è l'hanno tutti gli apparati TCP/IP quindi il router ma anche i PC. Comunque quella significatica è quella del gateway/router in quanto è lui quello preposto a smistare (fare il routing) dei pacchetti di una rete.
Non mi ci mandi ma...conosce qualche trucchetto per memorizzare tutti i dati che si incontrano nello studio della CCNA?
Esempio...la larghezza di banda varia per mezzi e tecnologie usate...
E quindi l'elenco di Cavi coassiali, utp, fibra ottica multi e monocanale (con lunghezza ed ampiezza di banda) e poi l'elenco di modem, isdn, adsl, t1, t3 (e relative velocità).
Che espediente mnemonico si può usare?
complimenti era proprio quello che cercavo una domanda.come posso stabilire il numero di netmask se so che ho in una rete 25 nodi?
@Dani se ho capito la domanda, non puoi. Nel senso che puoi mettere un limite inferiore ma non superiore. Ad esempio, nel tuo caso, la rete è sicuramente almeno una /27 ossia una rete che contiene 32 ip liberi. Non può essere una /28 che avrebbe max 16 indirizzi disponibili (anzi 14 :-D ). Quindi è almeno una /27 ma potrebbe anche essere una /8 :-D.
Comunque, e forse qui incasino ancora più le menti, se lo scopo è accedere al gateway per andare all'esterno e non importa degli altri pc, praticamente puoi mettere una qualsiasi netmask che contenga almeno te e il tuo gateway.
Risolto :D
Ho trovato un volume molto basic di un Cysco Guru che spiega come capire e ricordare il mondo delle reti:
Le reti : nozioni di base : primi passi nel mondo delle reti informatiche / Wendell Odom
Dopo si può passare a qualcosa di più serio e, forse, tentare la certificazione :D
Cos'è una route?
Nel capitolo sul routing di un testo, ho trovato questo termine a proposito delle tabelle di routing ma non viene spiegato cosa sia. E' dato per scontato che se ne sia capita la natura.
Magari con qualche esempio?
Grazie.
GRAZIE!
Anche se i numeri mi restano indigesti sotto ogni forma ^_^
mi potrebbe togliere due dubbi? il primo è : se ho un host 10.16.65.203 con netmask 255.255.255.224 posso considerare 10.16.65.192 un gateway valido o essendo l'indirizzo della sottorete bisogna sceglierne un altro?
il secondo dubbio è: ho un host 10.0.1.53, netmask 255.255.255.252, allora appartengono alla sottorete tutti gli indirizzi da 10.0.1.48 a 10.0.1.51? la ringrazio. ps: complimenti per gli appunti, sono davvero illuminanti.
Cara antonella. L'indirizzo di rete (il primo) e quello di broadcast (l'ultimo) non possono essere assegnati ad alcun host. 10.16.65.192/255.255.255.224 fa parte del range 10.16.65.192-10.16.65.223 e quindi, essendo il primo, non può essere nulla nella rete, tantomeno il gateway. Riguardo al secondo quesito devi aver fatto un po' di confusione perchè 10.0.1.53 è fuori dal range che dici tu. 10.0.1.53/30 fa parte del range 10.0.1.52-10.0.1.55 ma, anche qui, ovviamente, il .52 e il .55 non sono usabili. Quindi va bene il .53 e il .54. La /30 viene infatti usata per fare le punto-punto in cui, dei due soli indirizzi usabili, il primo viene usato per un lato e il secondo per l'altro lato della punto-punto. Spero di essere stato chiaro e di aver dissipato i tuoi dubbi. Grazie per i complimenti.
la ringrazio per la risposta, ha appunto chiarito il mio dubbio, il primo indirizzo dell'intervallo di indirizzi derivanti da un'operazione di subnetting è riservato alla sottorete e quindi non è un host ordinario. Le sarei grata se volesse togliermi un altro dubbio: ho un indirizzo di classe B 143.225.0.0 con netmask 225.255.255.240; l'operazione di subnetting prende in questo caso 4 bit in prestito dal suffisso per creare 16 sottoreti da 14 host ciascuna? allora, come trovo gli indirizzi delle 16 sottoreti?e che ruolo ha l'indirizzo di rete?le sono grata se vorrà rispondermi
Ciao,
c'è qualcosa che non mi quadra.
Sul punto in cui dici:
/30 è una rete formata da 4 host (22=4) di cui due usabili
come fanno ad essere solo 2 usabili, se sono 3 host, uno è quello di broadcast e 3 sono qualli usabili.
Sbaglio?
In una rete /30 ci sono quattro IP. Esempio 192.168.10.0/30. Solo che il primo, il 192.168.10.0, in questo caso, indica la rete e non può essere usato. L'ultimo, il 192.168.10.3, è quello di broadcast, quindi si possono usare solo il .1 e il .2. Spero di essere stato chiaro
grazie grazie grazie
MOLTO CARINO E SOPRATTUTTO CHIARO
Grazie, utilissimo, chiaro per essere un argomento ostico come questo!! Grazie ancora
Complimenti, lo sforzo profuso è andato a buon fine.
Grazie
Complimenti per la spiegazione. Ottima! Mi potrebbe fare da tutor in questi mesi per l'esame di informatica di maturita'? Grazie
sei stato un grande!! Ti ringrazio davvero...abbiamo goduto tutti indirettamente. Ora ho capito
Un bell'articolo, piacevole e chiaro. Bravo.
Grazie,
ho configurato 192.168.1.1 reti ma la netmask era solo un campo da riempire... poveri clienti.
non capisco queste due righe:
La netmask 255.255.0.0 detta classe B che ha indirizzi locali disponibili per 2^16-2 calcolatori formata quindi da 256 classi C.
La netmask 255.0.0.0 detta anche classe A ha indirizzi locali disponibili per 2^24-2 calcolatori formata da 256 classi B.
Da dove scaturisce 256?
Ciao complimenti per tutte le cose che fai.
Ai fini perfezionistici ;-) ti ricordo che si scrive qual è e non qual'è ma ripeto è solo una chicca di italiano!
ciao e complimenti ancora!
Nicola
Buon giorno
ho trovato questo articolo davvero esaustivo, ha fatto parecchia chiarezza nella mia zucca...grazie 1000
Grazie!!! Chiaro e ben fatto... (Complimenti)
Mi spiace, ma si è cercato di spiegare come il sistema riconosca l'appartenenza di un indirizzo alla rete X o meno, senza riuscirci. Non si capisce a cosa serva il gateway e la sua differenza con la netmask.
We uagliò
Nun se capiscie molto! Ma apprezzo la guida.
Grazie molte uagliò
Articolo utile ma pieno di assunzioni che non credo un figlio potrebbe capire se non conosce nulla di informatica.
Subnetting, classi, le "gN"..tutte queste cose vengono vomitate nel testo senza alcuna spiegazione di cosa siano, da dove vengono e perchè.
Ciao, grazie della facile descrizione.
Grazie a te ho iniziato a capire qualcosa nelle reti.
Peró pemettimi di darti il mio punto di vista su una intuitiva metafora.
Immaginiamo di descrivere a nostra figlia come funziona la netmask.
Immaginiamo di vivere in una casa con quattro stanze, stanza di mamma, stanza di papá, stanza di sorellina, stanza di fratellino.
Immaginiamo di avere un maggiordomo che si chiama Router ed ha un pregio, lui é molto preciso.
Quando insegniamo a nostra figlia a scrivere un messaggio a qualcuno, prendiamo un foglio di carta, scriviamo il messaggio, e mettiamo il messaggio in una busta.
Sopra la busta scriviamo il destinatario (indirizzo IP).
inoltre con il nostro maggiordomo Router, abbiamo stabilito un nostro 'codice' per descrivere il destinatario.
Abbiamo deciso di usare una 'parola d'ordine' che chiamiamo 'Netmask'.
La parola d'ordine Netmask puó avere solo poche opzioni.
A seconda del valore della parola d'ordine 'Netmask', Router, che é un maggiordomo molto preciso, seguirá il nostro accordo e porterá la lettera dove é indicato nella prima, nella seconda o nelle altre parti dell'indirizzo IP.
A seconda del valore della Netmask, Router sceglierá di provare a consegnare la nostra lettera.
Quando nostra figlia ha 4 anni, le insegniamo che puó scrivere una lettera, e nella busta puó indirizzarla a mamma, papá, fratellino o la puó anche indirizzare a lei, per provare a vedere se il maggiordomo Router é proprio preciso.
Quindi sulla busta, scriverá Netmask =tenta di consegnare la lettera in casa.
Se quindi sulla busta ci sará il nome IP = 'papá, in casa, nel mondo ecc. ecc.
E nella parola d'ordine Netmask ci sará scritto 'consegna in casa', Router si recherá davanti a tutte le porte delle camere in casa e cercherá la targa 'papá', perché nella parola d'ordine 'Netmask' c'era il codice che indicava, di tentare di consegnare la lettera in casa.
Quando avrá trovato la porta della camera con scrtitto 'papá', Router busserá.
Papá che é in camera, riceverá la lettera, e sempre dato che Router é un maggiordomo molto preciso, papá scriverá un messaggio di ritorno e lo affiderá a Router.
A quel punto Router recapiterá a nostra figlia, il messaggio di ritorno 'messaggio ricevuto!'.
Ma quando nostra figlia crescerá, e comincerá a giocare in cortile, conoscerá una nuova amica chiamata Beatrice.
A questo punto ,quando nostra figlia vorrá scrivere una lettera per Beatrice, scriverá il messaggio (payload) e nel'intestazione della busta (header) scriverá l'IP 'Beatrice ...ecc. ecc..
Ma se nostra figlia non sará precisa nel descrivere la parola d'ordine che spiega a Router dove portare la lettera, Router, che é un maggiordomo molto preciso, potrebbe non riuscire a consegnare la lettera.
Se ad esempio nella busta, nostra figlia usa la parola d'ordine (Netmask) 'cerca in casa', anziché 'cerca nelle case del quartiere', Router si recherá davanti a tutte le porte delle camere di casa nostra e cercherá la targa 'Beatrice', e non trovandola, tornerá da nostra figlia e ci comunicherá che nella nostra casa non é stato possibile trovare il destinatario 'Beatrice'.
Allo stesso modo, se nostra figlia proverá a scrivere una lettera a 'fratellino di Chiara, nel mio quartiere, nella mia cittá, ecc.) e nella Netmask, si sbaglierá indicando a Router di guardare nella seconda parte dell'indirizzo, Router che é molto preciso, tenterá di consegnare la lettera nelle case del quartiere, ma non trovando nessuna targa con il nome 'fratellino di Chiara', tornerá da nostra figlia e le risponderá 'non é stato possibile trovare il destinatario 'fratellno di Chiara' nel percorso indicato nella Netmask (nel mio quartiere).
Insomma, mentre nell'indirizzo IP viene descritto il destinatario, nella Netmask, viene indicato al nostro maggiordomo tuttofare Router, quale parte dell'indirizzo IP deve considerare per tentare la consegna.
Come ti sembra?
Ciao e grazie!
Buongiorno, chiarimento: ai fini pratici, cosa cambia avere un sm 255.255.255.0 e una 255.255.252.0?
Mi è chiaro il calcolo, meno l'utilizzo ai fini pratici.
Inoltre, cosa significa /22 /24 /26...?
Grazie mille
Permette di avere più dispositivi sulla stessa rete se con 255.255.255.0 puoi avere al max 254 dispositivi, con 255.255.255.252 ne puoi avere 1022. /24 è un altro modo di dire 255.255.255.0, /23 un altro per dire 255.255.254.0 /22 un altro per dire 255.255.252.0 e cosi via
Buongiorno Emiliano,
mi sono imbattuto in un'interfaccia pptp (quindi un modem) a cui viene rilasciato dal provider un indirizzo privato (10.16.x.x) con netmask 255.255.255.255 e nessun gateway.
L'interfaccia così configurata è perfettamente funzionante e scambia dati con il backend senza problemi.
Mi chiedevo se potessi spiegarmi questa tipologia di configurazione. E' fatta per isolare l'host?
Continuo a non capire come possa indirizzare traffico..