Comandi laboratorio 10/10/2008


Cronologico Percorso di conversazione 
  • From: Andrea Detti < >
  • To:
  • Subject: Comandi laboratorio 10/10/2008
  • Date: Fri, 10 Oct 2008 14:40:13 +0200

Ciao
-- 
---------------------------------------
 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
 email: 

---------------------------------------
---------Due reti A,B e un router R1

vstart PC1 --eth0=A
vstart PC2 --eth0=B
vstart R1 --eth0=A --eth1=B

PC1: ifconfig eth0 192.168.0.2/24
PC1: route add default gw 192.168.0.1
PC2: route add default gw 192.168.1.1
PC2: ifconfig eth0 192.168.1.2/24
R1: ifconfig eth0 192.168.0.1/24
R1: ifconfig eth1 192.168.1.1/24
R1: route -n
PC1: ping 192.168.1.2


--------- Aggiungiamo la rete C ed il router R2 tra C e B
vstart R2 --eth0=B --eth1=C
vstart PC3 --eth0=C
PC3: ifconfig eth0 192.168.2.2
PC3: route add default gw 192.168.2.1
R2: ifconfig eth1 192.168.2.1
R2: ifconfig eth0 192.168.1.3
R1: route add -net 192.168.2.0/24 gw 192.168.1.3 dev eth1
R2: route add -net 192.168.0.0/24 gw 192.168.1.1 dev eth0
PC1: traceroute 192.168.2.2 :~/Laboratorio/Test$
 octave
GNU Octave, version 2.9.12
Copyright (C) 2007 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "i486-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to 
< >
 (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

octave:1> pwd
ans = /home/andrea/Laboratorio/Test
octave:2> ls
4_class_same_pc_client_TP only  HTBscript     octave-core  udp.txt
4_class_same_pc_server          iperf2mat.pl  udp.out
octave:3> load udp.txt
octave:4> whos -variables

*** local user variables:

  Prot Name            Size                     Bytes  Class
  ==== ====            ====                     =====  =====
   rw- __nargin__      1x1                          8  double
   rwd ans             1x29                        29  char
   rwd udp            40x2                        640  double

Total is 110 elements using 677 bytes

octave:5> x=0:0.5:20;
octave:6> whos -variables

*** local user variables:

  Prot Name            Size                     Bytes  Class
  ==== ====            ====                     =====  =====
   rw- __nargin__      1x1                          8  double
   rwd ans             1x29                        29  char
   rwd udp            40x2                        640  double
   rwd x               1x41                        24  double

Total is 151 elements using 701 bytes

octave:7> x=0.5:0.5:20;
octave:8> plot(x,udp(:,1))
octave:9> grid on
octave:10> xlabel("time (sec)")
octave:11> ylabel("Bandwidth (kbps)")
octave:12> axis([0 20 0 6000])
octave:13>

  • Comandi laboratorio 10/10/2008, Andrea Detti

Archivio con motore MhonArc 2.6.16.

§