diff --git a/meres.md b/meres.md index 9abff3457271416d6b5c4d074db69fa54b8ed5fc..8c8298e4d4b294deee181ffdf9dee1b3fb30aa68 100644 --- a/meres.md +++ b/meres.md @@ -289,3 +289,97 @@ root@labor-vm-01:~# --- +## 4. Feladat + +### 4.1. Indítson egy második VM-et. + +### 4.2. Hozzon létre egy Docker image-et lab néven. +A szükséges Dockerfile-t az `sriov_lab` könyvtárban találja. + +```bash +cd sriov_lab +docker build -t lab . +``` + +### 4.3. Mindkét VM-ben állítson be egy-egy címet a 10.1.1.0/24 hálózatból az enp0s8 interfészre! + +```bash +VM1 -> ifconfig enp0s8 10.1.1.1/24 + +VM2 -> ifconfig enp0s8 10.1.1.2/24 +``` + +### 4.4. Pingelje meg az egyik virtuális gépről a másikat. + +```bash +ping 10.1.1.2 -c 1 +``` + +```bash +root@labor-vm-01:~# ping 10.1.1.2 -c 1 +PING 10.1.1.2 (10.1.1.2) 56(84) bytes of data. +64 bytes from 10.1.1.2: icmp_seq=1 ttl=64 time=1.50 ms + +--- 10.1.1.2 ping statistics --- +1 packets transmitted, 1 received, 0% packet loss, time 0ms +rtt min/avg/max/mdev = 1.502/1.502/1.502/0.000 ms +root@labor-vm-01:~# +``` + +```bash +root@labor-vm-02:~# ping 10.1.1.1 -c 1 +PING 10.1.1.1 (10.1.1.1) 56(84) bytes of data. +64 bytes from 10.1.1.1: icmp_seq=1 ttl=64 time=0.872 ms + +--- 10.1.1.1 ping statistics --- +1 packets transmitted, 1 received, 0% packet loss, time 0ms +rtt min/avg/max/mdev = 0.872/0.872/0.872/0.000 ms +root@labor-vm-02:~# +``` + +### 4.5. Mindkét VM-ben hozzon létre egy konténert mely a host hálózatot használja. + +```bash +root@labor-vm-01:~# docker run -itd --name lab11 --network host lab bash +``` + +```bash +root@labor-vm-02:~# docker run -itd --name lab22 --network host lab bash +``` + +### 4.6. Az újonnan létrehozott konténeren indítson `qperf` szervert. + +```bash +docker exec -it lab11 qperf +``` + +### 4.7. A másik újonnan létrehozott konténerben indítson egy `qperf` klienst, amely a szerverhez csatlakozik. +Végezzen méréseket a TCP kommunikáció késleltetésére és sávszélességére vonatkozóan! + +```bash +docker exec -it lab22 qperf 10.1.1.1 tcp_lat tcp_bw +``` + +```bash +root@labor-vm-02:~# docker exec -it lab22 qperf 10.1.1.1 tcp_lat tcp_bw +tcp_lat: + latency = 36 us +tcp_bw: + bw = 2.58 GB/sec +root@labor-vm-02:~# +``` + +### 4.8. A használt parancsokat és a mérések eredményeit dokumentálja! + + + + +### 4.9. Törölje a feladatban létrehozott konténereket! + +```bash +VM1 -> docker rm -f lab11 +VM2 -> docker rm -f lab22 +``` + +--- + diff --git a/pics/04_1.png b/pics/04_1.png new file mode 100644 index 0000000000000000000000000000000000000000..4f10b34572a36d539948bd075b6e58d522a79511 Binary files /dev/null and b/pics/04_1.png differ diff --git a/pics/04_2.png b/pics/04_2.png new file mode 100644 index 0000000000000000000000000000000000000000..466f254903e528a6834a9938d2506d04a3760bd9 Binary files /dev/null and b/pics/04_2.png differ