[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [riminilug-general] Laboratorio con Netkit



Configurazione completa laboratorio:



#lab.conf

doc.edu.net[eth0]="CD1"

mio.root[eth0]="CD1"

NS-edu.net[eth0]="CD2"

NS-root[eth0]="CD1"

NS-net[eth0]="CD5"

NS-org[eth0]="CD5"

R1[eth0]="CD1"
R1[eth1]="CD2"

R2[eth0]="CD2"
R2[eth1]="CD3"

R3[eth0]="CD3"
R3[eth1]="CD5"

luca.org[eth0]="CD3"

workstation.edu.net[eth0]="CD2"

gov.net[eth0]="CD5"

mario.net[eth0]="CD3"



#R1.sturtup
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
ifconfig eth1 10.0.0.2 netmask 255.255.255.0 up
route add -net 100.10.0.0/24 gw 10.0.0.1 dev eth1


#R2.sturtup
ifconfig eth0 10.0.0.1 netmask 255.255.255.0 up
ifconfig eth1 100.10.0.2 netmask 255.255.255.0 up
route add -net 192.168.0.0/24 gw 10.0.0.2 dev eth0
route add -net 192.168.1.0/25 gw 100.10.0.1 dev eth1


#R3.sturtup
ifconfig eth0 100.10.0.1 netmask 255.255.255.0 up
ifconfig eth1 192.168.1.1 netmask 255.255.255.128 up
route add -net 10.0.0.0/24 gw 100.10.0.2 dev eth0

                                                   
#mario.net.sturtup                                                   
ifconfig eth0 10.0.0.10 netmask 255.255.255.0 up
route add -net 100.10.0.0/24 gw 10.0.0.1 dev eth0
route add -net 192.168.0.0/24 gw 10.0.0.2 dev eth0               


#workstation.edu.net.sturtup
ifconfig eth0 10.0.0.10 netmask 255.255.255.0 up
route add -net 100.10.0.0/24 gw 10.0.0.1 dev eth0
route add -net 192.168.0.0/24 gw 10.0.0.2 dev eth0


#NS-root.sturtup
ifconfig eth0 192.168.0.20 netmask 255.255.255.0 up
route add default gw 192.168.0.1 dev eth0


#NS-org.sturtup
ifconfig eth0 192.168.1.21 netmask 255.255.255.128 up
route add default gw 192.168.1.1 dev eth0


#NS-net.sturtup
ifconfig eth0 192.168.1.20 netmask 255.255.255.128 up
route add default gw 192.168.1.1 dev eth0


#NS-edu.net.sturtup
ifconfig eth0 10.0.0.20 netmask 255.255.255.0 up
route add -net 192.168.0.0/24 gw 10.0.0.2 dev eth0
route add -net 100.10.0.0/24 gw 10.0.0.1 dev eth0


#mio.root.sturtup
ifconfig eth0 192.168.0.11 netmask 255.255.255.0 up
route add default gw 192.168.0.1 dev eth0


#luca.org.sturtup
ifconfig eth0 100.10.0.10 netmask 255.255.255.0 up
route add -net 192.168.1.0/25 gw 100.10.0.1 dev eth0
route add -net 10.0.0.0/24 gw 100.10.0.2 dev eth0


#gov.net.sturtup
ifconfig eth0 192.168.1.10 netmask 255.255.255.128 up
route add default gw 192.168.1.1 dev eth0


#doc.edu.net.sturtup
ifconfig eth0 192.168.0.10 netmask 255.255.255.0 up
route add default gw 192.168.0.1 dev eth0



Il Sabato 29 Marzo 2014 10:20, Samuele Battarra <battarsa@xxxxxxxxxxxx> ha scritto:
In data venerdì 28 marzo 2014 18:54:46, Simeone Marini ha scritto:

> Sto sperimentando con Netkit dei laboratoro virtuali,  e in questo volevo
> implementare dei DNS. Tuttavia mi sono bloccato alla configurazione statica
> della rete. Tutte le impostazione aggiuntive per il mio laboraorio per i
> DNS non ho cominciato neanche a inserirle.
>
> Ho creato un laboratorio virtuale con netkit, con IP fissi e mi funziona
> solo in parte. A questo indirizzo trovate il disegno dettagliato del mio
> laboratorio virtuale:
>
> https://www.dropbox.com/s/u4hu328jfpdihqx/myLab.png
>
> Stessi risultati se provo a pingare da un altro nodo della rete: raggiungo
> la rete adiacente, ma le reti successive no! Qui il mio laboratorio:
>
> https://www.dropbox.com/sh/zeyggw3dtroc08s/bBtqmq7o2D


A occhio sembra che manchino le regole di route nelle macchine intermedie.

--
Samuele Battarra
battarsa@xxxxxxxx