Hstory laboratrio 201010


Cronologico Percorso di conversazione 
  • From: Andrea Detti < >
  • To:
  • Subject: Hstory laboratrio 201010
  • Date: Wed, 20 Oct 2010 16:32:45 +0200
  • Organization: University of Rome Tor Vergata


-- 
---------------------------------------
 Andrea Detti, PhD                                           
 Dip. Ingegneria Elettronica
 Universita' di Roma "Tor Vergata" 
 Via del Politecnico 1, 00133 Roma, Italy                               
 Tel.: +39-06-7259-7285
 Fax : +39-06-7259-7435
 Mobile: +39-320-4391909
 email: 

---------------------------------------
PC1


ifconfig eth0 180.85.80.1/24
route add default gw 180.85.80.254
ping 160.85.80.2
ping 160.85.80.3
ping 160.85.80.4
ping 160.85.80.2
ping 160.85.80.2
ping 160.85.80.2


R1
ifconfig eth0 180.85.80.254/24
ifconfig eth0 180.85.80.254/24
ifconfig eth1 170.85.80.253/24
ifconfig
route add default gw 170.85.80.254
route -n

GW
ifconfig eth0 170.85.80.254/24
ifconfig eth1 160.85.80.1/24
route -n
route add -net 180.85.80.0/24 gw 170.85.80.253
route -n
iptables -t nat -a POSTROUTING -o eth1 -j MASQUERADE
iptables -t nat -append POSTROUTING -o eth1 -j MASQUERADE
iptables -h
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
tcpdump -i any

PC2
ifconfig eth0 160.85.80.2/24
route -n
route add -net 180.85.80.0/24 gw 160.85.80.1
route add -net 170.85.80.0/24 gw 160.85.80.1
tcpdump -i eth0
route -n
# NAt attivo
route del -net 170.85.80.0/24
route del -net 180.85.80.0/24
route -n

PC3
ifconfig eth0 160.85.80.3
route add -net 180.85.80.0/24 gw 160.85.80.1
route add -net 170.85.80.0/24 gw 160.85.80.1

PC4
ifconfig eth0 160.85.80.4
route add -net 180.85.80.0/24 gw 160.85.80.1
route add -net 170.85.80.0/24 gw 160.85.80.1


  • Hstory laboratrio 201010, Andrea Detti

Archivio con motore MhonArc 2.6.16.

§