Before creating the network aarchitecture, wait until the instructor has
started the device that will interconnect all participants in the room.
These instructions apply to the instructor only.
However, to repeat this exercise outside the lab session,
it will be necessary to reproduce the setup described here.
The instructor must first prepare a switch named
9999 on their
workstation using
s7nsa_hub_switch.py s:9999.
They must then tell the participants the hostname of their workstation so
that they can connect their
D/
eth0 interface to it
(for example
laurier9:9999,
citron13:9999,
pomme25:9999,
thym25:9999...).
The instructor must also start a machine connected to this same switch
using
s7nsa_machine.py FFFF 9999 EXT.
On the host system, the file
teacher_setup.sh
should be downloaded and installed into the
SHARED directory.
Machine
FFFF must then run the command
sh SHARED/teacher_setup.sh.
The configuration of this workstation is by no means a normal
solution!
Each participant's router assumes it is connected to this workstation via a
point-to-point link, while the workstation itself assumes it belongs to a
subnet containing them all!
This is merely a crude workaround to give the impression that the
participant' routers are not directly connected to one another
through a switch
For the purposes of this tutorial, they are indeed connected through
a single switch in order to simplify the setup!
.
The instructor will then tell you the name of the physical host running
this device.
This name is represented by
teacher in the following diagram, which
you should follow:
First, start your three switches with
s7nsa_hub_switch.py s:9991 s:9992 s:9993
and keep this terminal open.
Once the switches are started, from another terminal, start your four
machines:
s7nsa_machine.py A 9991
s7nsa_machine.py B 9992
s7nsa_machine.py C 9993
s7nsa_machine.py D teacher:9999 9991 9992 9993 # substitute teacher
Note that for your machine
D, the symbolic name
teacher must be
replaced with the name of the physical host indicated by the instructor.
Record the number corresponding to your host system name
The host system name is probably already shown in the shell prompt;
it can also be obtained using the hostname command.
It may also be indicated on a label attached to the physical workstation.
:
7 for
laurier7,
12 for
citron12,
4 for
pomme4,
23 for
thym23...
This number is represented by
XX in the diagram, as part of the
addresses assigned to the
eth0 and
eth3 interface of machine
D and to the
eth0 interface of machine
C
This number must be different for each participant.
Indeed, the participants' networks will be interconnected by the
instructor's device, so it is necessary to distinguish
between participants.
.
On the host system, download and install the file
tuto_05_setup.sh into the
SHARED directory.
Then, on each of your machines
A,
B,
C and
D, run the
command
sh SHARED/tuto_05_setup.sh XX, replacing
XX
with the number you have just recorded from your host system.
This script assigns the addresses as shown in the diagram.
For each of machines
A,
B and
C, it specifies the default
route
via the address of the appropriate interface on router
D.
On router
D, the default route points to the instructor's device.
Use
ping -R to verify that:
- your A, B and C machines can all reach one another,
- your C machine can reach the C machine of several other
participants (coordinate with one another to carry out this
test together).