Toon posts:

Vreemd subnetmask van mijn ISP

Pagina: 1
Acties:
  • 142 views sinds 30-01-2008
  • Reageer

Verwijderd

Topicstarter
Ik heb een ip adres gekregen van mijn internet provider beginnende met 212. Dit betekent dat mijn ip dus in een classe C netwerk zit. Maar mijn subnet die ik gekregen heb van mijn provider via DHCP is namelijk 255.255.252.0. Hoe komt het dat mijn netmask een netmask is uit een classe B netwerk?
Hoe ik dacht dat het zit is dat van de hostbits netwerkbits ingeruild wordt en dus heb je te maken met een supernet en gaat de ISP het netwerk in subnets indelen.

Of zie ik het nu helemaal verkeerd? Heeft iemand er nu een goede uitleg hierover wat de provider precies aan het doen is?

Ik vroeg me dit af omdat ik binnenkort examen heb over CCNA en ik klink misschien als een newbie maar dit is toch iets wat ik wil weten :)

Weet iemand precies hoe dit zit?

  • zion
  • Registratie: Augustus 1999
  • Niet online

zion

I GoT my I on U

(overleden)
Supernetting allows the use of multiple IP networks on the same interface. It is the reverse of subnetting, which allows the use of a single IP network on multiple interfaces. Another document in the REDNET Resource Centre describes subnetting.
Officially, supernetting is the term used when multiple network addresses of the same Class are combined into blocks. If the IP networks are contiguous, you may be able to use a supernet. If the IP networks are not contiguous, you would need to use sub-interfaces. These are not currently supported on Compatible Systems routers but are supported on routers from Cisco Systems.

A prerequisite for supernetting is that the network addresses be consecutive and that they fall on the correct boundaries. To combine two Class C networks, the first address' third octet must be evenly divisible by 2. If you would like to supernet 8 networks, the mask would be 255.255.248.0 and the first address' third octet needs to be evenly divisible by 8. For example, 198.41.15.0 and 198.41.16.0 could NOT be combined into a supernet, but you would be able to combine 198.41.18.0 and 198.41.19.0 into a supernet.

An IP address is a 32-bit number (4 bytes, called "octets", separated by periods, commonly called "dots.") Supernetting is most often used to combine Class C addresses (the first octet has values from 192 through 223). A single Class C IP network has 24 bits for the network portion of the IP address, and 8 bits for the host portion of the IP address. This gives a possibility of 256 hosts within a Class C IP network (2^8=256).

The subnet mask for a Class C IP network is normally 255.255.255.0. To use a supernet, the number of bits used for the subnet mask is REDUCED. For example, by using a 23 bit mask (255.255.254.0 -- 23 bits for the network portion of the IP network, and 9 bits for the host portion), you effectively create a single IP network with 512 addresses. Supernetting, or combining blocks of IP networks, is the basis for most routing protocols currently used on the Internet.

For Example: Two Class "C" network numbers of 198.41.78.0 and 198.41.79.0

The addresses pass the prerequisites. They are consecutive and the third octet of the first address is divisible by 2 (78 Mod 2 = 0). To further illustrate what is being done, let's look at the addresses in binary. The third octet of the first address (78) is 01001110. The second (79) is 01001111. The binaries are the same except for the last bit of the address (the 24th bit of the IP address). The 78 network is supernet 0 and the 79 network is supernet 1.

The subnet mask for this example supernet is 23 bits, or 255.255.254.0. ALL devices on the network MUST be using this subnet mask. Any device that is not using this subnet mask would be unreachable.

The broadcast address for ALL devices on the example supernet is 198.41.79.255. Most modern devices don't require you to fill out the broadcast address, as it can be deduced from the IP address and the subnet mask. The broadcast address is used as a special destination signifying ALL hosts on the network.

As with any IP network, the first number in the range (.0 in a class "C") has special significance, and can't be assigned to any hosts on the network. The first number in the range is referred to as the "network number". Conversely, the last, or highest number in the range (.255 in a class "C") is called the broadcast address, and also can't be used by any host on the network.

Because of these unique addresses, it would probably be wise not to use the 198.41.78.255 and 198.41.79.0 addresses (in the above example), even though these SHOULD be perfectly legal addresses for hosts when using a supernet.

There is one additional prerequisite for supernetting, you MUST EITHER be running static routing EVERYWHERE or be using a classless routing protocol such as RIP2 (or OSPF) which include subnet mask information and can pass supernetting information in order for this to work. Standard RIP does not transmit the subnet mask information.

If you are using Compatible Systems Routers then you should check that you are running a router ROM version later than 3.0.7 to have the supernetting feature fully implemented.

Introduction to supernetting

[ Voor 3% gewijzigd door zion op 05-12-2003 15:37 ]

10-08-1999 - 10-08-2022, 23 jaar zion @ Tweakers.net
systeem


  • Dawai
  • Registratie: December 2000
  • Laatst online: 08-07 23:56

Dawai

HERiTAGE CHESS CREW

Nou, precies weet ik het niet maar ik kan wel een gokje wagen ;)

Mijn IP-adres is nu 81.164.219.x en mijn subnet mask is 255.255.240.0. Even een whois doen in de RIPE whois db:

code:
1
2
3
inetnum:      81.164.0.0 - 81.164.255.255
netname:      TELENET
descr:        Telenet Operaties N.V.


Heel dat blok is dus van mijn ISP, en dat wordt dan opgedeeld in kleinere subnets voor specifieke doeleinden (vb. dit deel voor dialup, dat deel voor kabel etc).

240 is 11110000 binair. Dus elk IP-adres tussen 81.164.208.0 en 81.164.223.255 zit in op mijn subnet (want 219 is 11011011 en 11010000 is 208 en 11011111 is 223). Dit komt aardig overeen met mijn gateway (81.164.208.1). Er zijn dus ongeveer 4000 IP-adressen in dit subnet. Voor de ISP is dit waarschijnlijk een handigere grootte om abonnees op te steken dan de 256 in een gewoon klasse C subnet.

Correct me if I'm wrong ;) Of wist je dit allemaal al :X

Programmer: red-eyed, mumbling mammal capable of conversing with inanimate objects.


  • zion
  • Registratie: Augustus 1999
  • Niet online

zion

I GoT my I on U

(overleden)
Dawai schreef op 05 december 2003 @ 15:30:
Mijn IP-adres is nu 81.164.219.x en mijn subnet mask is 255.255.240.0. Even een whois doen in de RIPE whois db:
Dat is dus ook een klasse A ip range, die is standaard 255.0.0.0, en is dus gewoon gesubnet

10-08-1999 - 10-08-2022, 23 jaar zion @ Tweakers.net
systeem


Verwijderd

tja dat maakt eigenlijk niet uit. zolang je alle ip's maar bezit in de range.

maar idd een c-klasse samenvoegen heet supernetten, terwijl als je een A klasse hetzelfde subnetmask meegeeft (255.255.252.0) heet het subnetten. de werking is verder hetzelfde.

  • Dawai
  • Registratie: December 2000
  • Laatst online: 08-07 23:56

Dawai

HERiTAGE CHESS CREW

Waarom zijn IP-adressen beginnende met 212 dan klasse C en die beginnend met 81 klasse A? Wordt dit zo gedefiniëerd in een RFC?

Programmer: red-eyed, mumbling mammal capable of conversing with inanimate objects.


  • Super_ik
  • Registratie: Maart 2001
  • Laatst online: 08:13

Super_ik

haklust!

klasse a is toch 10.x.x.x\255.0.0.0

en c is toch 192.168.0.x\255.255.255.0

b bennik ff vergete, maar dit zijn meer richtlijnen dan regels volgens mij

8<------------------------------------------------------------------------------------
Als ik zo door ga haal ik m'n dood niet. | ik hou van goeie muziek


  • Sendy
  • Registratie: September 2001
  • Niet online
Dawai >
Juist, dat is het antwoord. In de eerste RFC's waren sommige ranges bestemd om uit te delen in klasse-C's, klasse-B's en klasse-A blokken. Ik kan helaas niet snel vinden welke blokken het waren. Ik geloof dat de netwerken 0.0.0.0 tot 126.0.0.0 als A-blokken werden uitgedeeld (127 A blokken) en de rest was gesplits in B- en C-blokken. Er was/is ook nog wat gereseveerd voor bijvoorbeeld multicast.

Tegenwoordig worden IP adressen niet meer volgens dit systeem uitgegeven. Dat heet CIDR (Classless Inter-Domain Routing): IP adressen worden uitgedeeld zonder klasse-stelsel.

In RFC1918 kan je hier veel over vinden, en anders vind je daar weer links.

[ Voor 3% gewijzigd door Sendy op 05-12-2003 17:24 ]


Verwijderd

Topicstarter
Dat klopt. Volgens mijn CCNA boek zitten er ranges gedefinieerd in het eerste octed:

Class A: 1 tot 126
Class B: 128 tot 191
Class C: 192 tot 223

Dat laatste voorbeeld is inderdaad gewoon gesubnet. Dus dat vind ik wel duidelijk. Bij supernetting wordt het dus net andersom gedaan. Van de netwerkbits worden bits geleend die gebruikt worden voor hostbits. Ze noemen dit ook wel CIDR oftwel Classless InterDomain Routing. Nu snap ik het na de goede uitleg van de mensen die op mijn postings gereageerd hebben :)

Verwijderd

Topicstarter
Even een reactie op Dawai. Die range die je bedoeld zijn private address space ranges ;)
Daar bedoel ik dus mee ranges die niet kunnen worden toegekend aan hosts die rechtstreeks geconnected zijn met het internet. Die ranges zijn als volgt:

10.0.0.0 - 10.255.255.255.255 voor Class A
172.16.0.0 - 172.31.255.255 voor Class B
192.168.0.0 - 192.168.255.255 voor Class C

Maar dit staat los van de ranges die ik bedoel voor internet connectivity.
mocht je hier meer over willen weten Dawai moet je RFC 1918 maar eens lezen.

Verwijderd

Topicstarter
Eh mijn fout. Ik bedoelde die laatste persoon Super_ik
Foutje van me sorry :zd
Pagina: 1