You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

3.0 KiB

connect

To communicate over a network, a computer must have an IP address.

The computer can choose its own IP address (static) or can ask a DHCP server to assign one (dynamic).

Generally, clients (smartphones, laptops, etc...) rely on DHCP servers to have a dynamic IP address and servers have a static IP address.

For this project you will need to add these 3 VM :

The VM are configured like this :

        N E T W O R K S                C O M P U T E R S
_______________________________     ________________________

.-----------------------------.
|          Internet           |
'-----------------------------'
               ^
               |
               v
.-----------------------------.
|        VirtualBox NAT       |
|                             |
|         DHCP server         |     .----------------------.
|          DNS server         |     |         box          |
|                             |     |                      |
|              (10.0.2.2) NIC |<--->| enp0s8 (10.0.2.15)   |
|                             |     |   ^                  |
'-----------------------------'     |   |                  |
.-----------------------------.     |   |                  |
| VirtualBox Internal Network |     |   | DHCP server      |
|                             |     |   v                  |
|                           |<----->| enp0s3 (192.168.0.1) |
|                           | |     |                      |
|                           | |     '----------------------'
|                           | |     .----------------------.
|                           | |     |       machine1       |
|                           | |     |                      |
|                           |<----->| enp0s3 (192.168.0.2) |
|                           | |     |                      |
|                           | |     '----------------------'
|                           | |     .----------------------.
|                           | |     |       machine2       |
|                           | |     |                      |
|                           |<----->| enp0s3 (192.168.0.2) |
|                             |     |                      |
'-----------------------------'     '----------------------'

You will only have control over "machine2". This computer have Internet access through the "box".

Start the 3 VM and test on machine2 the connectivity quality with this command :

timeout --signal SIGINT 1m ping google.com

After one minute the result shows the percentage of lost packets. It should be quite high (above 10%). machine1 and machine2 have the same IP address, which leads to connectivity problems.

Find how to :

  • change the IP address to avoid the conflict
  • make the IP address dynamic (attributed by the box DHCP server)