summaryrefslogtreecommitdiff
path: root/tasks/set_ip_static_dhcp/howtos
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/set_ip_static_dhcp/howtos')
-rw-r--r--tasks/set_ip_static_dhcp/howtos/en/index.html73
-rw-r--r--tasks/set_ip_static_dhcp/howtos/images/04.pngbin0 -> 11706 bytes
-rw-r--r--tasks/set_ip_static_dhcp/howtos/images/09.pngbin0 -> 187608 bytes
-rw-r--r--tasks/set_ip_static_dhcp/howtos/images/10.pngbin0 -> 193147 bytes
-rw-r--r--tasks/set_ip_static_dhcp/howtos/images/11.pngbin0 -> 189272 bytes
-rw-r--r--tasks/set_ip_static_dhcp/howtos/images/12.pngbin0 -> 163954 bytes
-rw-r--r--tasks/set_ip_static_dhcp/howtos/images/13.pngbin0 -> 175600 bytes
-rw-r--r--tasks/set_ip_static_dhcp/howtos/images/17.pngbin0 -> 7062 bytes
-rw-r--r--tasks/set_ip_static_dhcp/howtos/si/index.html74
9 files changed, 147 insertions, 0 deletions
diff --git a/tasks/set_ip_static_dhcp/howtos/en/index.html b/tasks/set_ip_static_dhcp/howtos/en/index.html
new file mode 100644
index 0000000..74dfeea
--- /dev/null
+++ b/tasks/set_ip_static_dhcp/howtos/en/index.html
@@ -0,0 +1,73 @@
+<p>
+<h2>Purpose of the assignment</h2>
+Learn how to setup network interfaces in most modern Linux distributions (NetworkManager).
+</p>
+<p>
+<h2>Quick instructions</h2>
+Set a static IP in NetworkManager, set a static IP and DNS server in /etc/network/interfaces. You'll get both IP's when you execute script run_test.py.
+</p>
+<p>
+<h2>Instructions</p>
+<ol>
+<li>From the directory with images of virtual computers, download the following:<br/> maliNetworkManager, maliBrezNetworkManager, SimpleArbiterDhcp.</li>
+
+<li>Set the network for virtual computers, so that SimpleArbiterDhcp's 1. nework interface is connected to the same network, as the only network interface for maliNetworkManager and maliBrezNetworkManager,<br/>
+ SimpleArbiterDhcp's 2. network interface will be connected to a NAT or a physical network, where the address and route (gateway) to the internet is obtained via DHCP.</li>
+
+<li>Start SimpleArbiterDhcp. Sign in as user "tester" with password "SedemKrogovPekla".</li>
+<li>
+<img alt="slika-04" src="https://lusy.fri.uni-lj.si/kpov-public-svn/kpov-public/kpov_judge/tasks/set_ip_static_dhcp/howtos/images/04.png" style="width: 800px; height: 600px;" /><br/>
+Use command <pre>ping 193.2.1.66</pre> to check if SimpleArbiterDhcp is connected to internet. If you get ping reply, you're connected to the internet. Cancel the ping with combination CTRL+C.<br/>
+ If SimpleArbiterDhcp doesn't have internet access, change the network settings in Virtual box for 1. and 2. network interface, then restart the virtual computer.
+
+</li>
+<li>Run the script run_test.py.</li>
+
+<li>Enter "03.predvaja" as assignment name.</li>
+
+<li>Read the maliNetworkManager's static IP . Leave SimpleArbiterDhcp running in the background until you have setup the maliNetworkManager.</li>
+
+<li>Start maliNetworkManager.</li>
+
+<li>
+Sign in the GUI(graphical user interface) using username "student" and password "vaje".</li>
+<li><img alt="ikona network manager" src="https://lusy.fri.uni-lj.si/kpov-public-svn/kpov-public/kpov_judge/tasks/set_ip_static_dhcp/howtos/images/10.png" style="width: 800px; height: 600px;" /><br/>
+Right click on the icon for network settings.</br>
+
+<li>
+<img alt="Menu NetworkManager" src="https://lusy.fri.uni-lj.si/kpov-public-svn/kpov-public/kpov_judge/tasks/set_ip_static_dhcp/howtos/images/11.png" style="width: 800px; height: 600px;" /><br/>
+Choose "Edit Connections"</li>
+
+<li>
+<img alt="Menu NetworkManager" src="https://lusy.fri.uni-lj.si/kpov-public-svn/kpov-public/kpov_judge/tasks/set_ip_static_dhcp/howtos/images/12.png" style="width: 800px; height: 600px;" /><br/>
+Click "Edit"</li>
+
+<li>
+<img alt="Menu NetworkManager" src="https://lusy.fri.uni-lj.si/kpov-public-svn/kpov-public/kpov_judge/tasks/set_ip_static_dhcp/howtos/images/13.png" style="width: 800px; height: 600px;" /><br/>
+In tab "IPv4" change the "Method" to "Manual". Click "Add". Set the SimpleArbiterDhcp's static IP as static IP A.<br/>
+Add Arnes DNS: 193.2.1.66 to DNS servers.
+</li>
+<li>Click "Save"</li>
+
+<li>Switch to SimpleArbiterDhcp. Click "Enter" or "OK".</li>
+
+<li>Read maliBrezNetworkManager's IP . Click "OK". Read the DNS server's address .</li>
+
+<li> Switch to maliBrezNetworkManager. Switch to first console using combination CTRL+ALT+F1. Sign in as root (su) with password "kaboom".</li>
+
+<li> Open the file /etc/network/interfaces. Edit the settings according to the information you got on SimpleArbiter. Entry for network interface should look something like this:<br/>
+<pre>
+allow-hotplug eth0
+iface eth0 inet static
+ 10.0.1.2
+ netmask 255.255.255.128
+ dns-nameservers 10.0.1.5
+</pre>
+</li>
+
+<li> Save the settings. Use the command <pre>reboot</pre> to restart maliBrezNetworkManager. On boot the NetworkManager reads which network interfaces are configured in /etc/network/interfaces. After that NetworkManager doesn't manage these interfaces anymore.</li>
+
+
+</li>Press OK on SimpleArbiterDhcp. If all went ok, you have completed this assignment.</li>
+</ol>
+</p>
diff --git a/tasks/set_ip_static_dhcp/howtos/images/04.png b/tasks/set_ip_static_dhcp/howtos/images/04.png
new file mode 100644
index 0000000..754c200
--- /dev/null
+++ b/tasks/set_ip_static_dhcp/howtos/images/04.png
Binary files differ
diff --git a/tasks/set_ip_static_dhcp/howtos/images/09.png b/tasks/set_ip_static_dhcp/howtos/images/09.png
new file mode 100644
index 0000000..866a51d
--- /dev/null
+++ b/tasks/set_ip_static_dhcp/howtos/images/09.png
Binary files differ
diff --git a/tasks/set_ip_static_dhcp/howtos/images/10.png b/tasks/set_ip_static_dhcp/howtos/images/10.png
new file mode 100644
index 0000000..d6ccf42
--- /dev/null
+++ b/tasks/set_ip_static_dhcp/howtos/images/10.png
Binary files differ
diff --git a/tasks/set_ip_static_dhcp/howtos/images/11.png b/tasks/set_ip_static_dhcp/howtos/images/11.png
new file mode 100644
index 0000000..10b5ec7
--- /dev/null
+++ b/tasks/set_ip_static_dhcp/howtos/images/11.png
Binary files differ
diff --git a/tasks/set_ip_static_dhcp/howtos/images/12.png b/tasks/set_ip_static_dhcp/howtos/images/12.png
new file mode 100644
index 0000000..0a87ae6
--- /dev/null
+++ b/tasks/set_ip_static_dhcp/howtos/images/12.png
Binary files differ
diff --git a/tasks/set_ip_static_dhcp/howtos/images/13.png b/tasks/set_ip_static_dhcp/howtos/images/13.png
new file mode 100644
index 0000000..e71474a
--- /dev/null
+++ b/tasks/set_ip_static_dhcp/howtos/images/13.png
Binary files differ
diff --git a/tasks/set_ip_static_dhcp/howtos/images/17.png b/tasks/set_ip_static_dhcp/howtos/images/17.png
new file mode 100644
index 0000000..d4bba87
--- /dev/null
+++ b/tasks/set_ip_static_dhcp/howtos/images/17.png
Binary files differ
diff --git a/tasks/set_ip_static_dhcp/howtos/si/index.html b/tasks/set_ip_static_dhcp/howtos/si/index.html
new file mode 100644
index 0000000..6236245
--- /dev/null
+++ b/tasks/set_ip_static_dhcp/howtos/si/index.html
@@ -0,0 +1,74 @@
+<p>
+<h2>Namen vaje</h2>
+Naučite se, kako se nastavljajo omrežni vmesniki v večini sodobnih Linux distribucij (NetworkManager).
+</p>
+<p>
+<h2>Naloga na hitro</h2>
+Nastavi statičen IP v NetworkManager-ju, nastavi statični IP in DNS strežnik v /etc/network/interfaces. Oba naslova računalnikov in DNS strežnikov dobite ob zagonu run_test.py.
+</p>
+<p>
+<h2>Navodila</p>
+<ol>
+<li>Z imenika s slikami virtualnih računalnikov povlecite slike maliNetworkManager, maliBrezNetworkManager, SimpleArbiterGW</li>
+
+<li>Nastavite omrežja navideznih računalnikov tako, da bo<br/>1. omrežni vmesnik SimpleArbiterGW povezan na isto omrežje kot edini omrežni vmesnik maliNetworkManager in maliBrezNetworkManager,<br/>
+ 2. vmesnik SimpleArbiterGW bo povezan na NAT ali fizično omrežje, kjer prek DHCP dobi naslov in pot (prehod, gateway) do Interneta.</li>
+
+<li>Zaženite SimpleArbiterGW. Prijavite se kot uporabnik tester z geslom SedemKrogovPekla</li>
+<li>
+<img alt="slika-04" src="../images/04.png" style="width: 800px; height: 600px;" /><br/>
+Z ukazom <pre>ping 8.8.8.8 </pre> preverite, ali je SimpleArbiterGW na Internetu. Če je, boste približno vsako sekundo dobili odziv. Ping prekinete
+s kombinacijo tipk CTRL+C.<br/>
+ Če SimpleArbiterGW ne pride do Interneta, v VirtualBox zamenjajte nastavitve 1. in 2. omrežni vmesnik ter ponovno zaženite navidezni računalnik.
+</li>
+<li>Poženite run_test.py.</li>
+
+<li>Kot ime naloge vpišite preparation</li>
+
+<li>Preberite statični IP maliNetworkManager. Pustite SimpleArbiterGW da teče v ozadju, dokler niste nastavili maliNetworkManager</li>
+
+<li>Zaženite maliNetworkManager.</li>
+
+<li>
+Prijavite se v grafično okolje z uporabniškim imenom student, geslom vaje</li>
+<li><img alt="ikona network manager" src="../images/10.png" style="width: 800px; height: 600px;" /><br/>
+Desno-kliknite na ikono za mrežne nastavitve.</br>
+
+<li>
+<img alt="Menu NetworkManager" src="../images/11.png" style="width: 800px; height: 600px;" /><br/>
+Izberite "Edit Connections".</li>
+
+<li>
+<img alt="Menu NetworkManager" src="../images/12.png" style="width: 800px; height: 600px;" /><br/>
+Kliknite "Edit"</li>
+
+<li>
+<img alt="Menu NetworkManager" src="../images/13.png" style="width: 800px; height: 600px;" /><br/>
+V zavihku "IPv4" spremenite "Method" na "Manual". Kliknite na "Add". Nastavite statični IP, ki ste ga prebrali na SimpleArbiterGW kot statični I.<br/>
+V DNS servers dodajte naslov DNSja, ki van ha poda run_test.py. Kot gateway dodaj IP SimpleArbiterGW.
+</li>
+<li>Kliknite "Save".</li>
+
+<li>Preklopite na SimpleArbiterGW. Pritisnite "Enter" oz. "OK".</li>
+
+<li>Preberite IP maliBrezNetworkManager. Pritisnite "OK". Preberite naslov DNS strežnika.</li>
+
+<li> Preklopite na maliBrezNetworkManager. Preklopite na prvo konzolo s kombinacijo CTRL+ALT+F1. Prijavite se kot root z geslom kaboom.</li>
+
+<li> Odprite datoteko /etc/network/interfaces. Popravite nastavitve v skladu s podatki, ki ste jih dobili na SimpleArbiter. Vnos za omrežni vmesnik mora izgledati približno takole:<br/>
+<pre>
+allow-hotplug eth0
+iface eth0 inet static
+ address "Podan IP"
+ netmask 255.255.255.0
+ dns-nameservers "Podan DNS"
+ getway "IP SimpleArbiterGW"
+</pre>
+</li>
+
+<li> Shranite nastavitve. Z ukazoma "ifdown eth0", in ifup eth0" posodobite NetworkManager ki prebere
+kateri omrežni vmesniki so nastavljeni v /etc/network/interfaces. Za te vmesnike potem ne skrbi več.</li>
+
+</li>Na SimpleArbiterGW pritisnite OK. Če je šlo vse po sreči, ste opravili tokratno nalogo.</li>
+</ol>
+</p>