her er lidt omkring generel forståelse af ip og subnet
TCP/IP addresses are, as you probably noticed, numbers in the following form: 172.16.31.2 This is also known as "dotted-decimal notation" It's the way we represent (in decimal number form) the *true* IP address which is a binary number. For example, the number above, in binary form, is: 10101100.00010000.00011111.00000010 Notice - there are 32 bits in the number. This number represents two pieces of information (although you can't see it here yet) - the individual address of the computer and the network the computer is found in.
The subnet mask is what identifies (to the computer and to you) which part of the number belongs to the computer and which belongs to the network. For example, the number you were typing in (oh yeah, there is an easier way too. . .) 255.255.255.0 translates to a binary number just like the IP address does. It's value is: 11111111.11111111.11111111.00000000
Now, here's the good part - It's a *mask* (just like the name says) The mask is applied to the IP address to identify the network part and the computer part just like this:
In other words, the Network number is: 10101100.00010000.00011111 - which in decimal numbers is - 172.16.31
and the computer number is: 00000010 - which in decimal number is - 2
This computer is in network number "172.16.31" and it's individual identification in that network is "2". Had it not been for the subnet mask, there would have been no way to identify which part of the IP address was which.
thomashove: ok, fint...så er mit næste spørgsmål...hvis jeg har en pc med ip 10.0.2.54 og subnet 255.255.252.0, så vil den kunne kommunikere med 10.0.2.0 - 10.0.5.255. Men vi har jo lige fundet ud af at 10.0.0.54 også kan kommunikere med 10.0.2.54...hvad er forklaringen? Betyder at det at bruger men subnet der tillader mere end 255 ip så skal der en dhcp server til at styre det eller..?
thomas: ok, det forstår jeg bare ikke helt, da jeg på et netværk har ip 212.237.190.xxx, som også er en ekstern ip...netværket har ip'erne 212.237.188.0 - 212.237.191.255 og subnet 255.255.252.0
er det så fordi det er eksterne ip'er at det fungerer?
den sidste ip (212.237.191.255) beregnes ud fra den første (212.237.188.0) samt dennes subnetmaske ved at man sætter et 1 tal hver gang der står 1 under hinanden mens man til sidst sætter ene 1 taller for hver gang der står 0 i subnetmasken.
men det undrer mig egentlig lidt at I har et net med de ip-numre. Som hovedregel bør man holde sig fra at have offentlige ip. nr. på sit interne netværk men holde sig til dem der som standard er bestemt til at være private f.eks
thomas: ip adressen fungerer både internt og ekstern (internet, ægte eller havd det nu kaldes)...
mht intervaller så passer det vist også så med vores ip'er...takker
jeg går ud fra at har man subnet det hedder 255.255.253.0 så er intervaller 10.0.0.0 - 10.0.2.255 10.0.3.0 - 10.0.5.255 etc.
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.