SLIDE 6 6
Giuseppe Bianchi
still
Solution Solution – – final final
Edificio A 110 hosts Edificio B 55 hosts Edificio C 10 hosts Edificio E 12 hosts Edificio D 11 hosts
network mask dest 64.2.1.128 /25 64.2.1.129 64.2.1.64 /26 64.2.1.65 64.2.1.0 /26 64.2.1.66 0.0.0.0 /0 64.2.100.1
Router R
È sufficiente uno /24, es: 64.2.1.0 /24 Una soluzione possibile, con massima aggregazione dei route, è illustrata in figura (si assume che il routing esterno alla rete avvenga tramite l’interfaccia remota 64.2.100.1)
64.2.1.65 64.2.1.66
64.2.1.64 /26 64.2.1.48 /28 64.2.1.0 /28 64.2.1.16 /28 64.2.1.128 /25
64.2.1.129 64.2.1.49 64.2.1.50 64.2.1.17 64.2.1.2 … 64.2.100.1
Giuseppe Bianchi
Complete example 2 Complete example 2
Acquistando uno spazio di indirizzi il piu’ piccolo possibile, da un provider che gestisce lo spazio 64.2.0.0 /16,
- Si subnetti la rete illustrata in figura in modo da soddisfare alle capacità richieste
- Si assegnino indirizzi IP alle interfacce dei router
- Si mostri la routing table del router R
Edificio A 10 hosts Edificio B 110 hosts Edificio C 55 hosts Edificio E 12 hosts Edificio D 11 hosts
network mask dest Router R
Edificio A 10 hosts Edificio B 110 hosts Edificio C 55 hosts Edificio E 12 hosts Edificio D 11 hosts
network mask dest
Edificio A 10 hosts Edificio B 110 hosts Edificio C 55 hosts Edificio E 12 hosts Edificio D 11 hosts
network mask dest Router R
Giuseppe Bianchi
Solution Solution – – no route aggregation no route aggregation
Edificio A 10 hosts Edificio B 110 hosts Edificio C 55 hosts Edificio E 12 hosts Edificio D 11 hosts
network mask dest 64.2.1.128 /25 64.2.1.129 64.2.1.64 /26 64.2.1.200 64.2.1.48 /28 64.2.1.49 64.2.1.0 /28 64.2.1.200 64.2.1.16 /28 64.2.1.200 0.0.0.0 /0 64.2.100.1
Router R
È sufficiente uno /24, es: 64.2.1.0 /24 Una soluzione possibile, con massima aggregazione dei route, è illustrata in figura (si assume che il routing esterno alla rete avvenga tramite l’interfaccia remota 64.2.100.1)
64.2.1.129 64.2.1.200
64.2.1.128 /25 64.2.1.64 /26 64.2.1.0 /28 64.2.1.16 /28 64.2.1.48 /28
64.2.1.49 64.2.1.77 64.2.1.66 64.2.1.22 64.2.1.2 … 64.2.100.1 now clear
no simple aggregation!
Giuseppe Bianchi
Requirements for VLSM support (2) Requirements for VLSM support (2)
“Longest Match” Forwarding Algorithm
IP packet Destination: 11.1.2.5 11.0.0.0 /8 Routing table Route 1 11.1.0.0 /16 Route 2 11.1.2.0 /24 Route 3 Three matches Best (longest) match Longest match = smaller network
Giuseppe Bianchi
Solution Solution -
final
Edificio A 10 hosts Edificio B 110 hosts Edificio C 55 hosts Edificio E 12 hosts Edificio D 11 hosts
network mask dest 64.2.1.128 /25 64.2.1.129 64.2.1.0 /25 64.2.1.200 64.2.1.48 /28 64.2.1.49 0.0.0.0 /0 64.2.100.1
Router R
E’ sufficiente uno /24, es: 64.2.1.0 /24 Una soluzione possibile, con massima aggregazione dei route, e’ illustrata in figura (si assume che Il routing esterno alla rete avvenga tramite l’interfaccia remota 64.2.100.1):
64.2.1.129 64.2.1.200
64.2.1.128 /25 64.2.1.64 /26 64.2.1.0 /28 64.2.1.16 /28 64.2.1.48 /28
64.2.1.49 64.2.1.77 64.2.1.66 64.2.1.22 64.2.1.2 … 64.2.100.1
Giuseppe Bianchi
VLSM subnetting of class A 11.0.0.0
11.0.0.0/8 11.254.0.0/19 11.254.32.0/19 11.254.64.0/19 11.254.192.0/19 11.254.224.0/19 11.0.0.0/16 11.1.0.0/16 11.2.0.0/16 11.253.0.0/16 11.254.0.0/16 11.255.0.0/16 11.1.0.0/24 11.1.1.0/24 11.1.255.0/24 11.1.254.0/24 11.1.254.0/28 11.1.254.16/28 11.1.254.32/28 11.1.254.240/28 11.1.254.224/28 11.1.254.208/28
Example Example: VLSM : VLSM engineering engineering